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

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::DLM::GetLifecyclePolicies;
3 use Moose;
4 has PolicyIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['ParamInQuery'], query_name => 'policyIds');
5 has ResourceTypes => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['ParamInQuery'], query_name => 'resourceTypes');
6 has State => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'state');
7 has TagsToAdd => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['ParamInQuery'], query_name => 'tagsToAdd');
8 has TargetTags => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['ParamInQuery'], query_name => 'targetTags');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetLifecyclePolicies');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/policies');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'GET');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::DLM::GetLifecyclePoliciesResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::DLM::GetLifecyclePolicies - Arguments for method GetLifecyclePolicies on L<Paws::DLM>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method GetLifecyclePolicies on the
27 L<Amazon Data Lifecycle Manager|Paws::DLM> service. Use the attributes of this class
28 as arguments to method GetLifecyclePolicies.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetLifecyclePolicies.
31  
32 =head1 SYNOPSIS
33  
34 my $dlm = Paws->service('DLM');
35 my $GetLifecyclePoliciesResponse = $dlm->GetLifecyclePolicies(
36 PolicyIds => [
37 'MyPolicyId', ... # max: 64
38 ], # OPTIONAL
39 ResourceTypes => [
40 'VOLUME', ... # values: VOLUME, INSTANCE
41 ], # OPTIONAL
42 State => 'ENABLED', # OPTIONAL
43 TagsToAdd => [
44 'MyTagFilter', ... # max: 256
45 ], # OPTIONAL
46 TargetTags => [
47 'MyTagFilter', ... # max: 256
48 ], # OPTIONAL
49 );
50  
51 # Results:
52 my $Policies = $GetLifecyclePoliciesResponse->Policies;
53  
54 # Returns a L<Paws::DLM::GetLifecyclePoliciesResponse> 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/dlm/GetLifecyclePolicies>
58  
59 =head1 ATTRIBUTES
60  
61  
62 =head2 PolicyIds => ArrayRef[Str|Undef]
63  
64 The identifiers of the data lifecycle policies.
65  
66  
67  
68 =head2 ResourceTypes => ArrayRef[Str|Undef]
69  
70 The resource type.
71  
72  
73  
74 =head2 State => Str
75  
76 The activation state.
77  
78 Valid values are: C<"ENABLED">, C<"DISABLED">, C<"ERROR">
79  
80 =head2 TagsToAdd => ArrayRef[Str|Undef]
81  
82 The tags to add to objects created by the policy.
83  
84 Tags are strings in the format C<key=value>.
85  
86 These user-defined tags are added in addition to the AWS-added
87 lifecycle tags.
88  
89  
90  
91 =head2 TargetTags => ArrayRef[Str|Undef]
92  
93 The target tag for a policy.
94  
95 Tags are strings in the format C<key=value>.
96  
97  
98  
99  
100 =head1 SEE ALSO
101  
102 This class forms part of L<Paws>, documenting arguments for method GetLifecyclePolicies in L<Paws::DLM>
103  
104 =head1 BUGS and CONTRIBUTIONS
105  
106 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
107  
108 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
109  
110 =cut
111