blib/lib/Paws/EC2/RequestLaunchTemplateData.pm untested

filter: Statementstmt 0.0% 0 / 38 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 39 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package Paws::EC2::RequestLaunchTemplateData;
2 use Moose;
3 has BlockDeviceMappings => (is => 'ro', isa => 'ArrayRef[Paws::EC2::LaunchTemplateBlockDeviceMappingRequest]', request_name => 'BlockDeviceMapping', traits => ['NameInRequest']);
4 has CapacityReservationSpecification => (is => 'ro', isa => 'Paws::EC2::LaunchTemplateCapacityReservationSpecificationRequest');
5 has CpuOptions => (is => 'ro', isa => 'Paws::EC2::LaunchTemplateCpuOptionsRequest');
6 has CreditSpecification => (is => 'ro', isa => 'Paws::EC2::CreditSpecificationRequest');
7 has DisableApiTermination => (is => 'ro', isa => 'Bool');
8 has EbsOptimized => (is => 'ro', isa => 'Bool');
9 has ElasticGpuSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::ElasticGpuSpecification]', request_name => 'ElasticGpuSpecification', traits => ['NameInRequest']);
10 has ElasticInferenceAccelerators => (is => 'ro', isa => 'ArrayRef[Paws::EC2::LaunchTemplateElasticInferenceAccelerator]', request_name => 'ElasticInferenceAccelerator', traits => ['NameInRequest']);
11 has EnclaveOptions => (is => 'ro', isa => 'Paws::EC2::LaunchTemplateEnclaveOptionsRequest');
12 has HibernationOptions => (is => 'ro', isa => 'Paws::EC2::LaunchTemplateHibernationOptionsRequest');
13 has IamInstanceProfile => (is => 'ro', isa => 'Paws::EC2::LaunchTemplateIamInstanceProfileSpecificationRequest');
14 has ImageId => (is => 'ro', isa => 'Str');
15 has InstanceInitiatedShutdownBehavior => (is => 'ro', isa => 'Str');
16 has InstanceMarketOptions => (is => 'ro', isa => 'Paws::EC2::LaunchTemplateInstanceMarketOptionsRequest');
17 has InstanceType => (is => 'ro', isa => 'Str');
18 has KernelId => (is => 'ro', isa => 'Str');
19 has KeyName => (is => 'ro', isa => 'Str');
20 has LicenseSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::LaunchTemplateLicenseConfigurationRequest]', request_name => 'LicenseSpecification', traits => ['NameInRequest']);
21 has MetadataOptions => (is => 'ro', isa => 'Paws::EC2::LaunchTemplateInstanceMetadataOptionsRequest');
22 has Monitoring => (is => 'ro', isa => 'Paws::EC2::LaunchTemplatesMonitoringRequest');
23 has NetworkInterfaces => (is => 'ro', isa => 'ArrayRef[Paws::EC2::LaunchTemplateInstanceNetworkInterfaceSpecificationRequest]', request_name => 'NetworkInterface', traits => ['NameInRequest']);
24 has Placement => (is => 'ro', isa => 'Paws::EC2::LaunchTemplatePlacementRequest');
25 has RamDiskId => (is => 'ro', isa => 'Str');
26 has SecurityGroupIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'SecurityGroupId', traits => ['NameInRequest']);
27 has SecurityGroups => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'SecurityGroup', traits => ['NameInRequest']);
28 has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::LaunchTemplateTagSpecificationRequest]', request_name => 'TagSpecification', traits => ['NameInRequest']);
29 has UserData => (is => 'ro', isa => 'Str');
30 1;
31  
32 ### main pod documentation begin ###
33  
34 =head1 NAME
35  
36 Paws::EC2::RequestLaunchTemplateData
37  
38 =head1 USAGE
39  
40 This class represents one of two things:
41  
42 =head3 Arguments in a call to a service
43  
44 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
45 Each attribute should be used as a named argument in the calls that expect this type of object.
46  
47 As an example, if Att1 is expected to be a Paws::EC2::RequestLaunchTemplateData object:
48  
49 $service_obj->Method(Att1 => { BlockDeviceMappings => $value, ..., UserData => $value });
50  
51 =head3 Results returned from an API call
52  
53 Use accessors for each attribute. If Att1 is expected to be an Paws::EC2::RequestLaunchTemplateData object:
54  
55 $result = $service_obj->Method(...);
56 $result->Att1->BlockDeviceMappings
57  
58 =head1 DESCRIPTION
59  
60 This class has no description
61  
62 =head1 ATTRIBUTES
63  
64  
65 =head2 BlockDeviceMappings => ArrayRef[L<Paws::EC2::LaunchTemplateBlockDeviceMappingRequest>]
66  
67 The block device mapping.
68  
69  
70 =head2 CapacityReservationSpecification => L<Paws::EC2::LaunchTemplateCapacityReservationSpecificationRequest>
71  
72 The Capacity Reservation targeting option. If you do not specify this
73 parameter, the instance's Capacity Reservation preference defaults to
74 C<open>, which enables it to run in any open Capacity Reservation that
75 has matching attributes (instance type, platform, Availability Zone).
76  
77  
78 =head2 CpuOptions => L<Paws::EC2::LaunchTemplateCpuOptionsRequest>
79  
80 The CPU options for the instance. For more information, see Optimizing
81 CPU Options
82 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html)
83 in the I<Amazon Elastic Compute Cloud User Guide>.
84  
85  
86 =head2 CreditSpecification => L<Paws::EC2::CreditSpecificationRequest>
87  
88 The credit option for CPU usage of the instance. Valid for T2, T3, or
89 T3a instances only.
90  
91  
92 =head2 DisableApiTermination => Bool
93  
94 If you set this parameter to C<true>, you can't terminate the instance
95 using the Amazon EC2 console, CLI, or API; otherwise, you can. To
96 change this attribute after launch, use ModifyInstanceAttribute
97 (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceAttribute.html).
98 Alternatively, if you set C<InstanceInitiatedShutdownBehavior> to
99 C<terminate>, you can terminate the instance by running the shutdown
100 command from the instance.
101  
102  
103 =head2 EbsOptimized => Bool
104  
105 Indicates whether the instance is optimized for Amazon EBS I/O. This
106 optimization provides dedicated throughput to Amazon EBS and an
107 optimized configuration stack to provide optimal Amazon EBS I/O
108 performance. This optimization isn't available with all instance types.
109 Additional usage charges apply when using an EBS-optimized instance.
110  
111  
112 =head2 ElasticGpuSpecifications => ArrayRef[L<Paws::EC2::ElasticGpuSpecification>]
113  
114 An elastic GPU to associate with the instance.
115  
116  
117 =head2 ElasticInferenceAccelerators => ArrayRef[L<Paws::EC2::LaunchTemplateElasticInferenceAccelerator>]
118  
119 The elastic inference accelerator for the instance.
120  
121  
122 =head2 EnclaveOptions => L<Paws::EC2::LaunchTemplateEnclaveOptionsRequest>
123  
124 Indicates whether the instance is enabled for AWS Nitro Enclaves. For
125 more information, see What is AWS Nitro Enclaves?
126 (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html)
127 in the I<AWS Nitro Enclaves User Guide>.
128  
129 You can't enable AWS Nitro Enclaves and hibernation on the same
130 instance.
131  
132  
133 =head2 HibernationOptions => L<Paws::EC2::LaunchTemplateHibernationOptionsRequest>
134  
135 Indicates whether an instance is enabled for hibernation. This
136 parameter is valid only if the instance meets the hibernation
137 prerequisites
138 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites).
139 For more information, see Hibernate Your Instance
140 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in
141 the I<Amazon Elastic Compute Cloud User Guide>.
142  
143  
144 =head2 IamInstanceProfile => L<Paws::EC2::LaunchTemplateIamInstanceProfileSpecificationRequest>
145  
146 The name or Amazon Resource Name (ARN) of an IAM instance profile.
147  
148  
149 =head2 ImageId => Str
150  
151 The ID of the AMI.
152  
153  
154 =head2 InstanceInitiatedShutdownBehavior => Str
155  
156 Indicates whether an instance stops or terminates when you initiate
157 shutdown from the instance (using the operating system command for
158 system shutdown).
159  
160 Default: C<stop>
161  
162  
163 =head2 InstanceMarketOptions => L<Paws::EC2::LaunchTemplateInstanceMarketOptionsRequest>
164  
165 The market (purchasing) option for the instances.
166  
167  
168 =head2 InstanceType => Str
169  
170 The instance type. For more information, see Instance Types
171 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
172 in the I<Amazon Elastic Compute Cloud User Guide>.
173  
174  
175 =head2 KernelId => Str
176  
177 The ID of the kernel.
178  
179 We recommend that you use PV-GRUB instead of kernels and RAM disks. For
180 more information, see User Provided Kernels
181 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
182 in the I<Amazon Elastic Compute Cloud User Guide>.
183  
184  
185 =head2 KeyName => Str
186  
187 The name of the key pair. You can create a key pair using CreateKeyPair
188 (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateKeyPair.html)
189 or ImportKeyPair
190 (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html).
191  
192 If you do not specify a key pair, you can't connect to the instance
193 unless you choose an AMI that is configured to allow users another way
194 to log in.
195  
196  
197 =head2 LicenseSpecifications => ArrayRef[L<Paws::EC2::LaunchTemplateLicenseConfigurationRequest>]
198  
199 The license configurations.
200  
201  
202 =head2 MetadataOptions => L<Paws::EC2::LaunchTemplateInstanceMetadataOptionsRequest>
203  
204 The metadata options for the instance. For more information, see
205 Instance Metadata and User Data
206 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html)
207 in the I<Amazon Elastic Compute Cloud User Guide>.
208  
209  
210 =head2 Monitoring => L<Paws::EC2::LaunchTemplatesMonitoringRequest>
211  
212 The monitoring for the instance.
213  
214  
215 =head2 NetworkInterfaces => ArrayRef[L<Paws::EC2::LaunchTemplateInstanceNetworkInterfaceSpecificationRequest>]
216  
217 One or more network interfaces. If you specify a network interface, you
218 must specify any security groups and subnets as part of the network
219 interface.
220  
221  
222 =head2 Placement => L<Paws::EC2::LaunchTemplatePlacementRequest>
223  
224 The placement for the instance.
225  
226  
227 =head2 RamDiskId => Str
228  
229 The ID of the RAM disk.
230  
231 We recommend that you use PV-GRUB instead of kernels and RAM disks. For
232 more information, see User Provided Kernels
233 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
234 in the I<Amazon Elastic Compute Cloud User Guide>.
235  
236  
237 =head2 SecurityGroupIds => ArrayRef[Str|Undef]
238  
239 One or more security group IDs. You can create a security group using
240 CreateSecurityGroup
241 (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html).
242 You cannot specify both a security group ID and security name in the
243 same request.
244  
245  
246 =head2 SecurityGroups => ArrayRef[Str|Undef]
247  
248 [EC2-Classic, default VPC] One or more security group names. For a
249 nondefault VPC, you must use security group IDs instead. You cannot
250 specify both a security group ID and security name in the same request.
251  
252  
253 =head2 TagSpecifications => ArrayRef[L<Paws::EC2::LaunchTemplateTagSpecificationRequest>]
254  
255 The tags to apply to the resources during launch. You can only tag
256 instances and volumes on launch. The specified tags are applied to all
257 instances or volumes that are created during launch. To tag a resource
258 after it has been created, see CreateTags
259 (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html).
260  
261  
262 =head2 UserData => Str
263  
264 The Base64-encoded user data to make available to the instance. For
265 more information, see Running Commands on Your Linux Instance at Launch
266 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html)
267 (Linux) and Adding User Data
268 (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data)
269 (Windows).
270  
271  
272  
273 =head1 SEE ALSO
274  
275 This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
276  
277 =head1 BUGS and CONTRIBUTIONS
278  
279 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
280  
281 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
282  
283 =cut