blib/lib/Paws/DLM/UpdateLifecyclePolicy.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::DLM::UpdateLifecyclePolicy;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str');
5 has ExecutionRoleArn => (is => 'ro', isa => 'Str');
6 has PolicyDetails => (is => 'ro', isa => 'Paws::DLM::PolicyDetails');
7 has PolicyId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'policyId', required => 1);
8 has State => (is => 'ro', isa => 'Str');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateLifecyclePolicy');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/policies/{policyId}');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PATCH');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::DLM::UpdateLifecyclePolicyResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::DLM::UpdateLifecyclePolicy - Arguments for method UpdateLifecyclePolicy on L<Paws::DLM>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method UpdateLifecyclePolicy on the
27 L<Amazon Data Lifecycle Manager|Paws::DLM> service. Use the attributes of this class
28 as arguments to method UpdateLifecyclePolicy.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateLifecyclePolicy.
31  
32 =head1 SYNOPSIS
33  
34 my $dlm = Paws->service('DLM');
35 my $UpdateLifecyclePolicyResponse = $dlm->UpdateLifecyclePolicy(
36 PolicyId => 'MyPolicyId',
37 Description => 'MyPolicyDescription', # OPTIONAL
38 ExecutionRoleArn => 'MyExecutionRoleArn', # OPTIONAL
39 PolicyDetails => {
40 Actions => [
41 {
42 CrossRegionCopy => [
43 {
44 EncryptionConfiguration => {
45 Encrypted => 1,
46 CmkArn => 'MyCmkArn', # max: 2048; OPTIONAL
47 },
48 Target => 'MyTarget', # max: 2048
49 RetainRule => {
50 Interval => 1, # min: 1; OPTIONAL
51 IntervalUnit =>
52 'DAYS', # values: DAYS, WEEKS, MONTHS, YEARS; OPTIONAL
53 }, # OPTIONAL
54 },
55 ...
56 ], # max: 3
57 Name => 'MyActionName', # max: 120
58  
59 },
60 ...
61 ], # min: 1, max: 1; OPTIONAL
62 EventSource => {
63 Type => 'MANAGED_CWE', # values: MANAGED_CWE
64 Parameters => {
65 DescriptionRegex => 'MyDescriptionRegex', # max: 1000
66 EventType => 'shareSnapshot', # values: shareSnapshot
67 SnapshotOwner => [
68 'MyAwsAccountId', ... # min: 12, max: 12
69 ], # max: 50
70  
71 }, # OPTIONAL
72 }, # OPTIONAL
73 Parameters => {
74 ExcludeBootVolume => 1, # OPTIONAL
75 NoReboot => 1, # OPTIONAL
76 }, # OPTIONAL
77 PolicyType => 'EBS_SNAPSHOT_MANAGEMENT'
78 , # values: EBS_SNAPSHOT_MANAGEMENT, IMAGE_MANAGEMENT, EVENT_BASED_POLICY; OPTIONAL
79 ResourceLocations => [
80 'CLOUD', ... # values: CLOUD, OUTPOST
81 ], # min: 1, max: 1; OPTIONAL
82 ResourceTypes => [
83 'VOLUME', ... # values: VOLUME, INSTANCE
84 ], # min: 1, max: 1; OPTIONAL
85 Schedules => [
86 {
87 CopyTags => 1, # OPTIONAL
88 CreateRule => {
89 CronExpression =>
90 'MyCronExpression', # min: 17, max: 106; OPTIONAL
91 Interval => 1, # min: 1; OPTIONAL
92 IntervalUnit => 'HOURS', # values: HOURS; OPTIONAL
93 Location => 'CLOUD', # values: CLOUD, OUTPOST_LOCAL; OPTIONAL
94 Times => [
95 'MyTime', ... # min: 5, max: 5
96 ], # max: 1; OPTIONAL
97 }, # OPTIONAL
98 CrossRegionCopyRules => [
99 {
100 Encrypted => 1,
101 CmkArn => 'MyCmkArn', # max: 2048; OPTIONAL
102 CopyTags => 1, # OPTIONAL
103 RetainRule => {
104 Interval => 1, # min: 1; OPTIONAL
105 IntervalUnit =>
106 'DAYS', # values: DAYS, WEEKS, MONTHS, YEARS; OPTIONAL
107 }, # OPTIONAL
108 Target => 'MyTarget', # max: 2048
109 TargetRegion => 'MyTargetRegion', # max: 16; OPTIONAL
110 },
111 ...
112 ], # max: 3; OPTIONAL
113 FastRestoreRule => {
114 AvailabilityZones => [
115 'MyAvailabilityZone', ... # max: 16
116 ], # min: 1, max: 10
117 Count => 1, # min: 1, max: 1000; OPTIONAL
118 Interval => 1, # min: 1; OPTIONAL
119 IntervalUnit =>
120 'DAYS', # values: DAYS, WEEKS, MONTHS, YEARS; OPTIONAL
121 }, # OPTIONAL
122 Name => 'MyScheduleName', # max: 120; OPTIONAL
123 RetainRule => {
124 Count => 1, # min: 1, max: 1000; OPTIONAL
125 Interval => 1, # min: 1; OPTIONAL
126 IntervalUnit =>
127 'DAYS', # values: DAYS, WEEKS, MONTHS, YEARS; OPTIONAL
128 }, # OPTIONAL
129 ShareRules => [
130 {
131 TargetAccounts => [
132 'MyAwsAccountId', ... # min: 12, max: 12
133 ], # min: 1
134 UnshareInterval => 1, # min: 1; OPTIONAL
135 UnshareIntervalUnit =>
136 'DAYS', # values: DAYS, WEEKS, MONTHS, YEARS; OPTIONAL
137 },
138 ...
139 ], # max: 1; OPTIONAL
140 TagsToAdd => [
141 {
142 Key => 'MyString', # max: 500
143 Value => 'MyString', # max: 500
144  
145 },
146 ...
147 ], # max: 45; OPTIONAL
148 VariableTags => [
149 {
150 Key => 'MyString', # max: 500
151 Value => 'MyString', # max: 500
152  
153 },
154 ...
155 ], # max: 45; OPTIONAL
156 },
157 ...
158 ], # min: 1, max: 4; OPTIONAL
159 TargetTags => [
160 {
161 Key => 'MyString', # max: 500
162 Value => 'MyString', # max: 500
163  
164 },
165 ...
166 ], # min: 1, max: 50; OPTIONAL
167 }, # OPTIONAL
168 State => 'ENABLED', # OPTIONAL
169 );
170  
171 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.
172 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/dlm/UpdateLifecyclePolicy>
173  
174 =head1 ATTRIBUTES
175  
176  
177 =head2 Description => Str
178  
179 A description of the lifecycle policy.
180  
181  
182  
183 =head2 ExecutionRoleArn => Str
184  
185 The Amazon Resource Name (ARN) of the IAM role used to run the
186 operations specified by the lifecycle policy.
187  
188  
189  
190 =head2 PolicyDetails => L<Paws::DLM::PolicyDetails>
191  
192 The configuration of the lifecycle policy. You cannot update the policy
193 type or the resource type.
194  
195  
196  
197 =head2 B<REQUIRED> PolicyId => Str
198  
199 The identifier of the lifecycle policy.
200  
201  
202  
203 =head2 State => Str
204  
205 The desired activation state of the lifecycle policy after creation.
206  
207 Valid values are: C<"ENABLED">, C<"DISABLED">
208  
209  
210 =head1 SEE ALSO
211  
212 This class forms part of L<Paws>, documenting arguments for method UpdateLifecyclePolicy in L<Paws::DLM>
213  
214 =head1 BUGS and CONTRIBUTIONS
215  
216 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
217  
218 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
219  
220 =cut
221