blib/lib/Paws/Lightsail/CopySnapshot.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Lightsail::CopySnapshot;
3 use Moose;
4 has RestoreDate => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'restoreDate' );
5 has SourceRegion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'sourceRegion' , required => 1);
6 has SourceResourceName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'sourceResourceName' );
7 has SourceSnapshotName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'sourceSnapshotName' );
8 has TargetSnapshotName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'targetSnapshotName' , required => 1);
9 has UseLatestRestorableAutoSnapshot => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'useLatestRestorableAutoSnapshot' );
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CopySnapshot');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lightsail::CopySnapshotResult');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::Lightsail::CopySnapshot - Arguments for method CopySnapshot on L<Paws::Lightsail>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CopySnapshot on the
27 L<Amazon Lightsail|Paws::Lightsail> service. Use the attributes of this class
28 as arguments to method CopySnapshot.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CopySnapshot.
31  
32 =head1 SYNOPSIS
33  
34 my $lightsail = Paws->service('Lightsail');
35 my $CopySnapshotResult = $lightsail->CopySnapshot(
36 SourceRegion => 'us-east-1',
37 TargetSnapshotName => 'MyResourceName',
38 RestoreDate => 'Mystring', # OPTIONAL
39 SourceResourceName => 'Mystring', # OPTIONAL
40 SourceSnapshotName => 'MyResourceName', # OPTIONAL
41 UseLatestRestorableAutoSnapshot => 1, # OPTIONAL
42 );
43  
44 # Results:
45 my $Operations = $CopySnapshotResult->Operations;
46  
47 # Returns a L<Paws::Lightsail::CopySnapshotResult> object.
48  
49 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.
50 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lightsail/CopySnapshot>
51  
52 =head1 ATTRIBUTES
53  
54  
55 =head2 RestoreDate => Str
56  
57 The date of the source automatic snapshot to copy. Use the C<get auto
58 snapshots> operation to identify the dates of the available automatic
59 snapshots.
60  
61 Constraints:
62  
63 =over
64  
65 =item *
66  
67 Must be specified in C<YYYY-MM-DD> format.
68  
69 =item *
70  
71 This parameter cannot be defined together with the C<use latest
72 restorable auto snapshot> parameter. The C<restore date> and C<use
73 latest restorable auto snapshot> parameters are mutually exclusive.
74  
75 =item *
76  
77 Define this parameter only when copying an automatic snapshot as a
78 manual snapshot. For more information, see the Lightsail Dev Guide
79 (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-keeping-automatic-snapshots).
80  
81 =back
82  
83  
84  
85  
86 =head2 B<REQUIRED> SourceRegion => Str
87  
88 The AWS Region where the source manual or automatic snapshot is
89 located.
90  
91 Valid values are: C<"us-east-1">, C<"us-east-2">, C<"us-west-1">, C<"us-west-2">, C<"eu-west-1">, C<"eu-west-2">, C<"eu-west-3">, C<"eu-central-1">, C<"ca-central-1">, C<"ap-south-1">, C<"ap-southeast-1">, C<"ap-southeast-2">, C<"ap-northeast-1">, C<"ap-northeast-2">
92  
93 =head2 SourceResourceName => Str
94  
95 The name of the source instance or disk from which the source automatic
96 snapshot was created.
97  
98 Constraint:
99  
100 =over
101  
102 =item *
103  
104 Define this parameter only when copying an automatic snapshot as a
105 manual snapshot. For more information, see the Lightsail Dev Guide
106 (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-keeping-automatic-snapshots).
107  
108 =back
109  
110  
111  
112  
113 =head2 SourceSnapshotName => Str
114  
115 The name of the source manual snapshot to copy.
116  
117 Constraint:
118  
119 =over
120  
121 =item *
122  
123 Define this parameter only when copying a manual snapshot as another
124 manual snapshot.
125  
126 =back
127  
128  
129  
130  
131 =head2 B<REQUIRED> TargetSnapshotName => Str
132  
133 The name of the new manual snapshot to be created as a copy.
134  
135  
136  
137 =head2 UseLatestRestorableAutoSnapshot => Bool
138  
139 A Boolean value to indicate whether to use the latest available
140 automatic snapshot of the specified source instance or disk.
141  
142 Constraints:
143  
144 =over
145  
146 =item *
147  
148 This parameter cannot be defined together with the C<restore date>
149 parameter. The C<use latest restorable auto snapshot> and C<restore
150 date> parameters are mutually exclusive.
151  
152 =item *
153  
154 Define this parameter only when copying an automatic snapshot as a
155 manual snapshot. For more information, see the Lightsail Dev Guide
156 (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-keeping-automatic-snapshots).
157  
158 =back
159  
160  
161  
162  
163  
164 =head1 SEE ALSO
165  
166 This class forms part of L<Paws>, documenting arguments for method CopySnapshot in L<Paws::Lightsail>
167  
168 =head1 BUGS and CONTRIBUTIONS
169  
170 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
171  
172 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
173  
174 =cut
175