blib/lib/Paws/EC2/DescribeLaunchTemplateVersions.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::EC2::DescribeLaunchTemplateVersions;
3 use Moose;
4 has DryRun => (is => 'ro', isa => 'Bool');
5 has Filters => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Filter]', traits => ['NameInRequest'], request_name => 'Filter' );
6 has LaunchTemplateId => (is => 'ro', isa => 'Str');
7 has LaunchTemplateName => (is => 'ro', isa => 'Str');
8 has MaxResults => (is => 'ro', isa => 'Int');
9 has MaxVersion => (is => 'ro', isa => 'Str');
10 has MinVersion => (is => 'ro', isa => 'Str');
11 has NextToken => (is => 'ro', isa => 'Str');
12 has Versions => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'LaunchTemplateVersion' );
13  
14 use MooseX::ClassAttribute;
15  
16 class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeLaunchTemplateVersions');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::DescribeLaunchTemplateVersionsResult');
18 class_has _result_key => (isa => 'Str', is => 'ro');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::EC2::DescribeLaunchTemplateVersions - Arguments for method DescribeLaunchTemplateVersions on L<Paws::EC2>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method DescribeLaunchTemplateVersions on the
30 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
31 as arguments to method DescribeLaunchTemplateVersions.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeLaunchTemplateVersions.
34  
35 =head1 SYNOPSIS
36  
37 my $ec2 = Paws->service('EC2');
38 # To describe the versions for a launch template
39 # This example describes the versions for the specified launch template.
40 my $DescribeLaunchTemplateVersionsResult =
41 $ec2->DescribeLaunchTemplateVersions(
42 'LaunchTemplateId' => '068f72b72934aff71' );
43  
44 # Results:
45 my $LaunchTemplateVersions =
46 $DescribeLaunchTemplateVersionsResult->LaunchTemplateVersions;
47  
48 # Returns a L<Paws::EC2::DescribeLaunchTemplateVersionsResult> object.
49  
50 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.
51 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/DescribeLaunchTemplateVersions>
52  
53 =head1 ATTRIBUTES
54  
55  
56 =head2 DryRun => Bool
57  
58 Checks whether you have the required permissions for the action,
59 without actually making the request, and provides an error response. If
60 you have the required permissions, the error response is
61 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
62  
63  
64  
65 =head2 Filters => ArrayRef[L<Paws::EC2::Filter>]
66  
67 One or more filters.
68  
69 =over
70  
71 =item *
72  
73 C<create-time> - The time the launch template version was created.
74  
75 =item *
76  
77 C<ebs-optimized> - A boolean that indicates whether the instance is
78 optimized for Amazon EBS I/O.
79  
80 =item *
81  
82 C<iam-instance-profile> - The ARN of the IAM instance profile.
83  
84 =item *
85  
86 C<image-id> - The ID of the AMI.
87  
88 =item *
89  
90 C<instance-type> - The instance type.
91  
92 =item *
93  
94 C<is-default-version> - A boolean that indicates whether the launch
95 template version is the default version.
96  
97 =item *
98  
99 C<kernel-id> - The kernel ID.
100  
101 =item *
102  
103 C<ram-disk-id> - The RAM disk ID.
104  
105 =back
106  
107  
108  
109  
110 =head2 LaunchTemplateId => Str
111  
112 The ID of the launch template. To describe one or more versions of a
113 specified launch template, you must specify either the launch template
114 ID or the launch template name in the request. To describe all the
115 latest or default launch template versions in your account, you must
116 omit this parameter.
117  
118  
119  
120 =head2 LaunchTemplateName => Str
121  
122 The name of the launch template. To describe one or more versions of a
123 specified launch template, you must specify either the launch template
124 ID or the launch template name in the request. To describe all the
125 latest or default launch template versions in your account, you must
126 omit this parameter.
127  
128  
129  
130 =head2 MaxResults => Int
131  
132 The maximum number of results to return in a single call. To retrieve
133 the remaining results, make another call with the returned C<NextToken>
134 value. This value can be between 1 and 200.
135  
136  
137  
138 =head2 MaxVersion => Str
139  
140 The version number up to which to describe launch template versions.
141  
142  
143  
144 =head2 MinVersion => Str
145  
146 The version number after which to describe launch template versions.
147  
148  
149  
150 =head2 NextToken => Str
151  
152 The token to request the next page of results.
153  
154  
155  
156 =head2 Versions => ArrayRef[Str|Undef]
157  
158 One or more versions of the launch template. Valid values depend on
159 whether you are describing a specified launch template (by ID or name)
160 or all launch templates in your account.
161  
162 To describe one or more versions of a specified launch template, valid
163 values are C<$Latest>, C<$Default>, and numbers.
164  
165 To describe all launch templates in your account that are defined as
166 the latest version, the valid value is C<$Latest>. To describe all
167 launch templates in your account that are defined as the default
168 version, the valid value is C<$Default>. You can specify C<$Latest> and
169 C<$Default> in the same call. You cannot specify numbers.
170  
171  
172  
173  
174 =head1 SEE ALSO
175  
176 This class forms part of L<Paws>, documenting arguments for method DescribeLaunchTemplateVersions in L<Paws::EC2>
177  
178 =head1 BUGS and CONTRIBUTIONS
179  
180 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
181  
182 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
183  
184 =cut
185