| 1 | package Paws::DLM; | ||
| 2 | use Moose; | ||
| 3 | sub service { 'dlm' } | ||
| 4 | sub signing_name { 'dlm' } | ||
| 5 | sub version { '2018-01-12' } | ||
| 6 | sub flattened_arrays { 0 } | ||
| 7 | has max_attempts => (is => 'ro', isa => 'Int', default => 5); | ||
| 8 | has retry => (is => 'ro', isa => 'HashRef', default => sub { | ||
| 9 | { base => 'rand', type => 'exponential', growth_factor => 2 } | ||
| 10 | }); | ||
| 11 | has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ | ||
| 12 | ] }); | ||
| 13 | |||
| 14 | with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller'; | ||
| 15 | |||
| 16 | |||
| 17 | sub CreateLifecyclePolicy { | ||
| 18 | my $self = shift; | ||
| 19 | my $call_object = $self->new_with_coercions('Paws::DLM::CreateLifecyclePolicy', @_); | ||
| 20 | return $self->caller->do_call($self, $call_object); | ||
| 21 | } | ||
| 22 | sub DeleteLifecyclePolicy { | ||
| 23 | my $self = shift; | ||
| 24 | my $call_object = $self->new_with_coercions('Paws::DLM::DeleteLifecyclePolicy', @_); | ||
| 25 | return $self->caller->do_call($self, $call_object); | ||
| 26 | } | ||
| 27 | sub GetLifecyclePolicies { | ||
| 28 | my $self = shift; | ||
| 29 | my $call_object = $self->new_with_coercions('Paws::DLM::GetLifecyclePolicies', @_); | ||
| 30 | return $self->caller->do_call($self, $call_object); | ||
| 31 | } | ||
| 32 | sub GetLifecyclePolicy { | ||
| 33 | my $self = shift; | ||
| 34 | my $call_object = $self->new_with_coercions('Paws::DLM::GetLifecyclePolicy', @_); | ||
| 35 | return $self->caller->do_call($self, $call_object); | ||
| 36 | } | ||
| 37 | sub ListTagsForResource { | ||
| 38 | my $self = shift; | ||
| 39 | my $call_object = $self->new_with_coercions('Paws::DLM::ListTagsForResource', @_); | ||
| 40 | return $self->caller->do_call($self, $call_object); | ||
| 41 | } | ||
| 42 | sub TagResource { | ||
| 43 | my $self = shift; | ||
| 44 | my $call_object = $self->new_with_coercions('Paws::DLM::TagResource', @_); | ||
| 45 | return $self->caller->do_call($self, $call_object); | ||
| 46 | } | ||
| 47 | sub UntagResource { | ||
| 48 | my $self = shift; | ||
| 49 | my $call_object = $self->new_with_coercions('Paws::DLM::UntagResource', @_); | ||
| 50 | return $self->caller->do_call($self, $call_object); | ||
| 51 | } | ||
| 52 | sub UpdateLifecyclePolicy { | ||
| 53 | my $self = shift; | ||
| 54 | my $call_object = $self->new_with_coercions('Paws::DLM::UpdateLifecyclePolicy', @_); | ||
| 55 | return $self->caller->do_call($self, $call_object); | ||
| 56 | } | ||
| 57 | |||
| 58 | |||
| 59 | |||
| 60 | sub operations { qw/CreateLifecyclePolicy DeleteLifecyclePolicy GetLifecyclePolicies GetLifecyclePolicy ListTagsForResource TagResource UntagResource UpdateLifecyclePolicy / } | ||
| 61 | |||
| 62 | 1; | ||
| 63 | |||
| 64 | ### main pod documentation begin ### | ||
| 65 | |||
| 66 | =head1 NAME | ||
| 67 | |||
| 68 | Paws::DLM - Perl Interface to AWS Amazon Data Lifecycle Manager | ||
| 69 | |||
| 70 | =head1 SYNOPSIS | ||
| 71 | |||
| 72 | use Paws; | ||
| 73 | |||
| 74 | my $obj = Paws->service('DLM'); | ||
| 75 | my $res = $obj->Method( | ||
| 76 | Arg1 => $val1, | ||
| 77 | Arg2 => [ 'V1', 'V2' ], | ||
| 78 | # if Arg3 is an object, the HashRef will be used as arguments to the constructor | ||
| 79 | # of the arguments type | ||
| 80 | Arg3 => { Att1 => 'Val1' }, | ||
| 81 | # if Arg4 is an array of objects, the HashRefs will be passed as arguments to | ||
| 82 | # the constructor of the arguments type | ||
| 83 | Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], | ||
| 84 | ); | ||
| 85 | |||
| 86 | =head1 DESCRIPTION | ||
| 87 | |||
| 88 | Amazon Data Lifecycle Manager | ||
| 89 | |||
| 90 | With Amazon Data Lifecycle Manager, you can manage the lifecycle of | ||
| 91 | your AWS resources. You create lifecycle policies, which are used to | ||
| 92 | automate operations on the specified resources. | ||
| 93 | |||
| 94 | Amazon DLM supports Amazon EBS volumes and snapshots. For information | ||
| 95 | about using Amazon DLM with Amazon EBS, see Automating the Amazon EBS | ||
| 96 | Snapshot Lifecycle | ||
| 97 | (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-lifecycle.html) | ||
| 98 | in the I<Amazon EC2 User Guide>. | ||
| 99 | |||
| 100 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12> | ||
| 101 | |||
| 102 | |||
| 103 | =head1 METHODS | ||
| 104 | |||
| 105 | =head2 CreateLifecyclePolicy | ||
| 106 | |||
| 107 | =over | ||
| 108 | |||
| 109 | =item Description => Str | ||
| 110 | |||
| 111 | =item ExecutionRoleArn => Str | ||
| 112 | |||
| 113 | =item PolicyDetails => L<Paws::DLM::PolicyDetails> | ||
| 114 | |||
| 115 | =item State => Str | ||
| 116 | |||
| 117 | =item [Tags => L<Paws::DLM::TagMap>] | ||
| 118 | |||
| 119 | |||
| 120 | =back | ||
| 121 | |||
| 122 | Each argument is described in detail in: L<Paws::DLM::CreateLifecyclePolicy> | ||
| 123 | |||
| 124 | Returns: a L<Paws::DLM::CreateLifecyclePolicyResponse> instance | ||
| 125 | |||
| 126 | Creates a policy to manage the lifecycle of the specified AWS | ||
| 127 | resources. You can create up to 100 lifecycle policies. | ||
| 128 | |||
| 129 | |||
| 130 | =head2 DeleteLifecyclePolicy | ||
| 131 | |||
| 132 | =over | ||
| 133 | |||
| 134 | =item PolicyId => Str | ||
| 135 | |||
| 136 | |||
| 137 | =back | ||
| 138 | |||
| 139 | Each argument is described in detail in: L<Paws::DLM::DeleteLifecyclePolicy> | ||
| 140 | |||
| 141 | Returns: a L<Paws::DLM::DeleteLifecyclePolicyResponse> instance | ||
| 142 | |||
| 143 | Deletes the specified lifecycle policy and halts the automated | ||
| 144 | operations that the policy specified. | ||
| 145 | |||
| 146 | |||
| 147 | =head2 GetLifecyclePolicies | ||
| 148 | |||
| 149 | =over | ||
| 150 | |||
| 151 | =item [PolicyIds => ArrayRef[Str|Undef]] | ||
| 152 | |||
| 153 | =item [ResourceTypes => ArrayRef[Str|Undef]] | ||
| 154 | |||
| 155 | =item [State => Str] | ||
| 156 | |||
| 157 | =item [TagsToAdd => ArrayRef[Str|Undef]] | ||
| 158 | |||
| 159 | =item [TargetTags => ArrayRef[Str|Undef]] | ||
| 160 | |||
| 161 | |||
| 162 | =back | ||
| 163 | |||
| 164 | Each argument is described in detail in: L<Paws::DLM::GetLifecyclePolicies> | ||
| 165 | |||
| 166 | Returns: a L<Paws::DLM::GetLifecyclePoliciesResponse> instance | ||
| 167 | |||
| 168 | Gets summary information about all or the specified data lifecycle | ||
| 169 | policies. | ||
| 170 | |||
| 171 | To get complete information about a policy, use GetLifecyclePolicy. | ||
| 172 | |||
| 173 | |||
| 174 | =head2 GetLifecyclePolicy | ||
| 175 | |||
| 176 | =over | ||
| 177 | |||
| 178 | =item PolicyId => Str | ||
| 179 | |||
| 180 | |||
| 181 | =back | ||
| 182 | |||
| 183 | Each argument is described in detail in: L<Paws::DLM::GetLifecyclePolicy> | ||
| 184 | |||
| 185 | Returns: a L<Paws::DLM::GetLifecyclePolicyResponse> instance | ||
| 186 | |||
| 187 | Gets detailed information about the specified lifecycle policy. | ||
| 188 | |||
| 189 | |||
| 190 | =head2 ListTagsForResource | ||
| 191 | |||
| 192 | =over | ||
| 193 | |||
| 194 | =item ResourceArn => Str | ||
| 195 | |||
| 196 | |||
| 197 | =back | ||
| 198 | |||
| 199 | Each argument is described in detail in: L<Paws::DLM::ListTagsForResource> | ||
| 200 | |||
| 201 | Returns: a L<Paws::DLM::ListTagsForResourceResponse> instance | ||
| 202 | |||
| 203 | Lists the tags for the specified resource. | ||
| 204 | |||
| 205 | |||
| 206 | =head2 TagResource | ||
| 207 | |||
| 208 | =over | ||
| 209 | |||
| 210 | =item ResourceArn => Str | ||
| 211 | |||
| 212 | =item Tags => L<Paws::DLM::TagMap> | ||
| 213 | |||
| 214 | |||
| 215 | =back | ||
| 216 | |||
| 217 | Each argument is described in detail in: L<Paws::DLM::TagResource> | ||
| 218 | |||
| 219 | Returns: a L<Paws::DLM::TagResourceResponse> instance | ||
| 220 | |||
| 221 | Adds the specified tags to the specified resource. | ||
| 222 | |||
| 223 | |||
| 224 | =head2 UntagResource | ||
| 225 | |||
| 226 | =over | ||
| 227 | |||
| 228 | =item ResourceArn => Str | ||
| 229 | |||
| 230 | =item TagKeys => ArrayRef[Str|Undef] | ||
| 231 | |||
| 232 | |||
| 233 | =back | ||
| 234 | |||
| 235 | Each argument is described in detail in: L<Paws::DLM::UntagResource> | ||
| 236 | |||
| 237 | Returns: a L<Paws::DLM::UntagResourceResponse> instance | ||
| 238 | |||
| 239 | Removes the specified tags from the specified resource. | ||
| 240 | |||
| 241 | |||
| 242 | =head2 UpdateLifecyclePolicy | ||
| 243 | |||
| 244 | =over | ||
| 245 | |||
| 246 | =item PolicyId => Str | ||
| 247 | |||
| 248 | =item [Description => Str] | ||
| 249 | |||
| 250 | =item [ExecutionRoleArn => Str] | ||
| 251 | |||
| 252 | =item [PolicyDetails => L<Paws::DLM::PolicyDetails>] | ||
| 253 | |||
| 254 | =item [State => Str] | ||
| 255 | |||
| 256 | |||
| 257 | =back | ||
| 258 | |||
| 259 | Each argument is described in detail in: L<Paws::DLM::UpdateLifecyclePolicy> | ||
| 260 | |||
| 261 | Returns: a L<Paws::DLM::UpdateLifecyclePolicyResponse> instance | ||
| 262 | |||
| 263 | Updates the specified lifecycle policy. | ||
| 264 | |||
| 265 | |||
| 266 | |||
| 267 | |||
| 268 | =head1 PAGINATORS | ||
| 269 | |||
| 270 | Paginator methods are helpers that repetively call methods that return partial results | ||
| 271 | |||
| 272 | |||
| 273 | |||
| 274 | |||
| 275 | =head1 SEE ALSO | ||
| 276 | |||
| 277 | This service class forms part of L<Paws> | ||
| 278 | |||
| 279 | =head1 BUGS and CONTRIBUTIONS | ||
| 280 | |||
| 281 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 282 | |||
| 283 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 284 | |||
| 285 | =cut | ||
| 286 |