line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::AutoScaling::CreateLaunchConfiguration; |
3
|
1
|
|
|
1
|
|
365
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
4
|
|
|
|
|
|
|
has AssociatePublicIpAddress => (is => 'ro', isa => 'Bool'); |
5
|
|
|
|
|
|
|
has BlockDeviceMappings => (is => 'ro', isa => 'ArrayRef[Paws::AutoScaling::BlockDeviceMapping]'); |
6
|
|
|
|
|
|
|
has ClassicLinkVPCId => (is => 'ro', isa => 'Str'); |
7
|
|
|
|
|
|
|
has ClassicLinkVPCSecurityGroups => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); |
8
|
|
|
|
|
|
|
has EbsOptimized => (is => 'ro', isa => 'Bool'); |
9
|
|
|
|
|
|
|
has IamInstanceProfile => (is => 'ro', isa => 'Str'); |
10
|
|
|
|
|
|
|
has ImageId => (is => 'ro', isa => 'Str'); |
11
|
|
|
|
|
|
|
has InstanceId => (is => 'ro', isa => 'Str'); |
12
|
|
|
|
|
|
|
has InstanceMonitoring => (is => 'ro', isa => 'Paws::AutoScaling::InstanceMonitoring'); |
13
|
|
|
|
|
|
|
has InstanceType => (is => 'ro', isa => 'Str'); |
14
|
|
|
|
|
|
|
has KernelId => (is => 'ro', isa => 'Str'); |
15
|
|
|
|
|
|
|
has KeyName => (is => 'ro', isa => 'Str'); |
16
|
|
|
|
|
|
|
has LaunchConfigurationName => (is => 'ro', isa => 'Str', required => 1); |
17
|
|
|
|
|
|
|
has PlacementTenancy => (is => 'ro', isa => 'Str'); |
18
|
|
|
|
|
|
|
has RamdiskId => (is => 'ro', isa => 'Str'); |
19
|
|
|
|
|
|
|
has SecurityGroups => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); |
20
|
|
|
|
|
|
|
has SpotPrice => (is => 'ro', isa => 'Str'); |
21
|
|
|
|
|
|
|
has UserData => (is => 'ro', isa => 'Str'); |
22
|
|
|
|
|
|
|
|
23
|
1
|
|
|
1
|
|
5985
|
use MooseX::ClassAttribute; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
9
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLaunchConfiguration'); |
26
|
|
|
|
|
|
|
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response'); |
27
|
|
|
|
|
|
|
class_has _result_key => (isa => 'Str', is => 'ro'); |
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
### main pod documentation begin ### |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Paws::AutoScaling::CreateLaunchConfiguration - Arguments for method CreateLaunchConfiguration on Paws::AutoScaling |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 DESCRIPTION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
This class represents the parameters used for calling the method CreateLaunchConfiguration on the |
39
|
|
|
|
|
|
|
Auto Scaling service. Use the attributes of this class |
40
|
|
|
|
|
|
|
as arguments to method CreateLaunchConfiguration. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLaunchConfiguration. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
As an example: |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
$service_obj->CreateLaunchConfiguration(Att1 => $value1, Att2 => $value2, ...); |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
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. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 AssociatePublicIpAddress => Bool |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Used for groups that launch instances into a virtual private cloud |
56
|
|
|
|
|
|
|
(VPC). Specifies whether to assign a public IP address to each |
57
|
|
|
|
|
|
|
instance. For more information, see Launching Auto Scaling Instances in |
58
|
|
|
|
|
|
|
a VPC in the I<Auto Scaling User Guide>. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
If you specify this parameter, be sure to specify at least one subnet |
61
|
|
|
|
|
|
|
when you create your group. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Default: If the instance is launched into a default subnet, the default |
64
|
|
|
|
|
|
|
is C<true>. If the instance is launched into a nondefault subnet, the |
65
|
|
|
|
|
|
|
default is C<false>. For more information, see Supported Platforms in |
66
|
|
|
|
|
|
|
the I<Amazon Elastic Compute Cloud User Guide>. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head2 BlockDeviceMappings => ArrayRef[L<Paws::AutoScaling::BlockDeviceMapping>] |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
One or more mappings that specify how block devices are exposed to the |
73
|
|
|
|
|
|
|
instance. For more information, see Block Device Mapping in the |
74
|
|
|
|
|
|
|
I<Amazon Elastic Compute Cloud User Guide>. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 ClassicLinkVPCId => Str |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances |
81
|
|
|
|
|
|
|
to. This parameter is supported only if you are launching EC2-Classic |
82
|
|
|
|
|
|
|
instances. For more information, see ClassicLink in the I<Amazon |
83
|
|
|
|
|
|
|
Elastic Compute Cloud User Guide>. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head2 ClassicLinkVPCSecurityGroups => ArrayRef[Str|Undef] |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
The IDs of one or more security groups for the specified |
90
|
|
|
|
|
|
|
ClassicLink-enabled VPC. This parameter is required if you specify a |
91
|
|
|
|
|
|
|
ClassicLink-enabled VPC, and is not supported otherwise. For more |
92
|
|
|
|
|
|
|
information, see ClassicLink in the I<Amazon Elastic Compute Cloud User |
93
|
|
|
|
|
|
|
Guide>. |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head2 EbsOptimized => Bool |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Indicates whether the instance is optimized for Amazon EBS I/O. By |
100
|
|
|
|
|
|
|
default, the instance is not optimized for EBS I/O. The optimization |
101
|
|
|
|
|
|
|
provides dedicated throughput to Amazon EBS and an optimized |
102
|
|
|
|
|
|
|
configuration stack to provide optimal I/O performance. This |
103
|
|
|
|
|
|
|
optimization is not available with all instance types. Additional usage |
104
|
|
|
|
|
|
|
charges apply. For more information, see Amazon EBS-Optimized Instances |
105
|
|
|
|
|
|
|
in the I<Amazon Elastic Compute Cloud User Guide>. |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head2 IamInstanceProfile => Str |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
The name or the Amazon Resource Name (ARN) of the instance profile |
112
|
|
|
|
|
|
|
associated with the IAM role for the instance. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
EC2 instances launched with an IAM role will automatically have AWS |
115
|
|
|
|
|
|
|
security credentials available. You can use IAM roles with Auto Scaling |
116
|
|
|
|
|
|
|
to automatically enable applications running on your EC2 instances to |
117
|
|
|
|
|
|
|
securely access other AWS resources. For more information, see Launch |
118
|
|
|
|
|
|
|
Auto Scaling Instances with an IAM Role in the I<Auto Scaling User |
119
|
|
|
|
|
|
|
Guide>. |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=head2 ImageId => Str |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 |
126
|
|
|
|
|
|
|
instances. |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
If you do not specify C<InstanceId>, you must specify C<ImageId>. |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
For more information, see Finding an AMI in the I<Amazon Elastic |
131
|
|
|
|
|
|
|
Compute Cloud User Guide>. |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=head2 InstanceId => Str |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
The ID of the instance to use to create the launch configuration. The |
138
|
|
|
|
|
|
|
new launch configuration derives attributes from the instance, with the |
139
|
|
|
|
|
|
|
exception of the block device mapping. |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
If you do not specify C<InstanceId>, you must specify both C<ImageId> |
142
|
|
|
|
|
|
|
and C<InstanceType>. |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
To create a launch configuration with a block device mapping or |
145
|
|
|
|
|
|
|
override any other instance attributes, specify them as part of the |
146
|
|
|
|
|
|
|
same request. |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
For more information, see Create a Launch Configuration Using an EC2 |
149
|
|
|
|
|
|
|
Instance in the I<Auto Scaling User Guide>. |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=head2 InstanceMonitoring => L<Paws::AutoScaling::InstanceMonitoring> |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
Enables detailed monitoring (C<true>) or basic monitoring (C<false>) |
156
|
|
|
|
|
|
|
for the Auto Scaling instances. The default is C<true>. |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
=head2 InstanceType => Str |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
The instance type of the EC2 instance. |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
If you do not specify C<InstanceId>, you must specify C<InstanceType>. |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
For information about available instance types, see Available Instance |
167
|
|
|
|
|
|
|
Types in the I<Amazon Elastic Compute Cloud User Guide.> |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
=head2 KernelId => Str |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
The ID of the kernel associated with the AMI. |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
=head2 KeyName => Str |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
The name of the key pair. For more information, see Amazon EC2 Key |
180
|
|
|
|
|
|
|
Pairs in the I<Amazon Elastic Compute Cloud User Guide>. |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
=head2 B<REQUIRED> LaunchConfigurationName => Str |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
The name of the launch configuration. This name must be unique within |
187
|
|
|
|
|
|
|
the scope of your AWS account. |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
=head2 PlacementTenancy => Str |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
The tenancy of the instance. An instance with a tenancy of C<dedicated> |
194
|
|
|
|
|
|
|
runs on single-tenant hardware and can only be launched into a VPC. |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
You must set the value of this parameter to C<dedicated> if want to |
197
|
|
|
|
|
|
|
launch Dedicated Instances into a shared tenancy VPC (VPC with instance |
198
|
|
|
|
|
|
|
placement tenancy attribute set to C<default>). |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
If you specify this parameter, be sure to specify at least one subnet |
201
|
|
|
|
|
|
|
when you create your group. |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
For more information, see Launching Auto Scaling Instances in a VPC in |
204
|
|
|
|
|
|
|
the I<Auto Scaling User Guide>. |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
Valid values: C<default> | C<dedicated> |
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
=head2 RamdiskId => Str |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
The ID of the RAM disk associated with the AMI. |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
=head2 SecurityGroups => ArrayRef[Str|Undef] |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
One or more security groups with which to associate the instances. |
219
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
If your instances are launched in EC2-Classic, you can either specify |
221
|
|
|
|
|
|
|
security group names or the security group IDs. For more information |
222
|
|
|
|
|
|
|
about security groups for EC2-Classic, see Amazon EC2 Security Groups |
223
|
|
|
|
|
|
|
in the I<Amazon Elastic Compute Cloud User Guide>. |
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
If your instances are launched into a VPC, specify security group IDs. |
226
|
|
|
|
|
|
|
For more information, see Security Groups for Your VPC in the I<Amazon |
227
|
|
|
|
|
|
|
Virtual Private Cloud User Guide>. |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
=head2 SpotPrice => Str |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
The maximum hourly price to be paid for any Spot Instance launched to |
234
|
|
|
|
|
|
|
fulfill the request. Spot Instances are launched when the price you |
235
|
|
|
|
|
|
|
specify exceeds the current Spot market price. For more information, |
236
|
|
|
|
|
|
|
see Launching Spot Instances in Your Auto Scaling Group in the I<Auto |
237
|
|
|
|
|
|
|
Scaling User Guide>. |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
=head2 UserData => Str |
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
The user data to make available to the launched EC2 instances. For more |
244
|
|
|
|
|
|
|
information, see Instance Metadata and User Data in the I<Amazon |
245
|
|
|
|
|
|
|
Elastic Compute Cloud User Guide>. |
246
|
|
|
|
|
|
|
|
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
=head1 SEE ALSO |
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
This class forms part of L<Paws>, documenting arguments for method CreateLaunchConfiguration in L<Paws::AutoScaling> |
253
|
|
|
|
|
|
|
|
254
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
255
|
|
|
|
|
|
|
|
256
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
257
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
=cut |
261
|
|
|
|
|
|
|
|