blib/lib/Paws/FSX/CopyBackup.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::FSX::CopyBackup;
3 use Moose;
4 has ClientRequestToken => (is => 'ro', isa => 'Str');
5 has CopyTags => (is => 'ro', isa => 'Bool');
6 has KmsKeyId => (is => 'ro', isa => 'Str');
7 has SourceBackupId => (is => 'ro', isa => 'Str', required => 1);
8 has SourceRegion => (is => 'ro', isa => 'Str');
9 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::FSX::Tag]');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CopyBackup');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::FSX::CopyBackupResponse');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::FSX::CopyBackup - Arguments for method CopyBackup on L<Paws::FSX>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CopyBackup on the
27 L<Amazon FSx|Paws::FSX> service. Use the attributes of this class
28 as arguments to method CopyBackup.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CopyBackup.
31  
32 =head1 SYNOPSIS
33  
34 my $fsx = Paws->service('FSX');
35 my $CopyBackupResponse = $fsx->CopyBackup(
36 SourceBackupId => 'MySourceBackupId',
37 ClientRequestToken => 'MyClientRequestToken', # OPTIONAL
38 CopyTags => 1, # OPTIONAL
39 KmsKeyId => 'MyKmsKeyId', # OPTIONAL
40 SourceRegion => 'MyRegion', # OPTIONAL
41 Tags => [
42 {
43 Key => 'MyTagKey', # min: 1, max: 128
44 Value => 'MyTagValue', # max: 256
45  
46 },
47 ...
48 ], # OPTIONAL
49 );
50  
51 # Results:
52 my $Backup = $CopyBackupResponse->Backup;
53  
54 # Returns a L<Paws::FSX::CopyBackupResponse> object.
55  
56 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
57 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/fsx/CopyBackup>
58  
59 =head1 ATTRIBUTES
60  
61  
62 =head2 ClientRequestToken => Str
63  
64  
65  
66  
67  
68 =head2 CopyTags => Bool
69  
70 A boolean flag indicating whether tags from the source backup should be
71 copied to the backup copy. This value defaults to false.
72  
73 If you set C<CopyTags> to true and the source backup has existing tags,
74 you can use the C<Tags> parameter to create new tags, provided that the
75 sum of the source backup tags and the new tags doesn't exceed 50. Both
76 sets of tags are merged. If there are tag conflicts (for example, two
77 tags with the same key but different values), the tags created with the
78 C<Tags> parameter take precedence.
79  
80  
81  
82 =head2 KmsKeyId => Str
83  
84  
85  
86  
87  
88 =head2 B<REQUIRED> SourceBackupId => Str
89  
90 The ID of the source backup. Specifies the ID of the backup that is
91 being copied.
92  
93  
94  
95 =head2 SourceRegion => Str
96  
97 The source AWS Region of the backup. Specifies the AWS Region from
98 which the backup is being copied. The source and destination Regions
99 must be in the same AWS partition. If you don't specify a Region, it
100 defaults to the Region where the request is sent from (in-Region copy).
101  
102  
103  
104 =head2 Tags => ArrayRef[L<Paws::FSX::Tag>]
105  
106  
107  
108  
109  
110  
111 =head1 SEE ALSO
112  
113 This class forms part of L<Paws>, documenting arguments for method CopyBackup in L<Paws::FSX>
114  
115 =head1 BUGS and CONTRIBUTIONS
116  
117 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
118  
119 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
120  
121 =cut
122