AwsEc2LaunchTemplateDataDetails
The information to include in an Amazon Elastic Compute Cloud (Amazon EC2) launch template.
Contents
- BlockDeviceMappingSet
-
Information about a block device mapping for an Amazon EC2 launch template.
Type: Array of AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails objects
Required: No
- CapacityReservationSpecification
-
Specifies an instance's Capacity Reservation targeting option. You can specify only one option at a time.
Type: AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails object
Required: No
- CpuOptions
-
Specifies the CPU options for an instance. For more information, see Optimize CPU options in the Amazon Elastic Compute Cloud User Guide.
Type: AwsEc2LaunchTemplateDataCpuOptionsDetails object
Required: No
- CreditSpecification
-
Specifies the credit option for CPU usage of a T2, T3, or T3a instance.
Type: AwsEc2LaunchTemplateDataCreditSpecificationDetails object
Required: No
- DisableApiStop
-
Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection in the Amazon EC2 User Guide.
Type: Boolean
Required: No
- DisableApiTermination
-
If you set this parameter to
true
, you can't terminate the instance using the Amazon EC2 console, AWS CLI, or API. If set totrue
, you can.Type: Boolean
Required: No
- EbsOptimized
-
Indicates whether the instance is optimized for Amazon EBS I/O.
Type: Boolean
Required: No
- ElasticGpuSpecificationSet
-
Provides details about Elastic Graphics accelerators to associate with the instance.
Type: Array of AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails objects
Required: No
- ElasticInferenceAcceleratorSet
-
The Amazon Elastic Inference accelerator for the instance.
Type: Array of AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails objects
Required: No
- EnclaveOptions
-
Indicates whether the Amazon EC2 instance is enabled for AWS Nitro Enclaves.
Type: AwsEc2LaunchTemplateDataEnclaveOptionsDetails object
Required: No
- HibernationOptions
-
Specifies whether your Amazon EC2 instance is configured for hibernation.
Type: AwsEc2LaunchTemplateDataHibernationOptionsDetails object
Required: No
- IamInstanceProfile
-
The name or Amazon Resource Name (ARN) of an IAM instance profile.
Type: AwsEc2LaunchTemplateDataIamInstanceProfileDetails object
Required: No
- ImageId
-
The ID of the Amazon Machine Image (AMI).
Type: String
Pattern:
.*\S.*
Required: No
- InstanceInitiatedShutdownBehavior
-
Provides the options for specifying the instance initiated shutdown behavior.
Type: String
Pattern:
.*\S.*
Required: No
- InstanceMarketOptions
-
Specifies the market (purchasing) option for an instance.
Type: AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails object
Required: No
- InstanceRequirements
-
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes. If you specify
InstanceRequirements
, you can't specifyInstanceType
.Type: AwsEc2LaunchTemplateDataInstanceRequirementsDetails object
Required: No
- InstanceType
-
The instance type. For more information, see Instance types in the Amazon EC2 User Guide. If you specify
InstanceType
, you can't specifyInstanceRequirements
.Type: String
Pattern:
.*\S.*
Required: No
- KernelId
-
The ID of the kernel.
Type: String
Pattern:
.*\S.*
Required: No
- KeyName
-
The name of the key pair that allows users to connect to the instance.
Type: String
Pattern:
.*\S.*
Required: No
- LicenseSet
-
Specifies a license configuration for an instance.
Type: Array of AwsEc2LaunchTemplateDataLicenseSetDetails objects
Required: No
- MaintenanceOptions
-
The maintenance options of your instance.
Type: AwsEc2LaunchTemplateDataMaintenanceOptionsDetails object
Required: No
- MetadataOptions
-
The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
Type: AwsEc2LaunchTemplateDataMetadataOptionsDetails object
Required: No
- Monitoring
-
The monitoring for the instance.
Type: AwsEc2LaunchTemplateDataMonitoringDetails object
Required: No
- NetworkInterfaceSet
-
Specifies the parameters for a network interface that is attached to the instance.
Type: Array of AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails objects
Required: No
- Placement
-
Specifies the placement of an instance.
Type: AwsEc2LaunchTemplateDataPlacementDetails object
Required: No
- PrivateDnsNameOptions
-
The options for the instance hostname.
Type: AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails object
Required: No
- RamDiskId
-
The ID of the RAM disk.
Type: String
Pattern:
.*\S.*
Required: No
- SecurityGroupIdSet
-
One or more security group IDs.
Type: Array of strings
Pattern:
.*\S.*
Required: No
- SecurityGroupSet
-
One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.
Type: Array of strings
Pattern:
.*\S.*
Required: No
- UserData
-
The user data to make available to the instance.
Type: String
Pattern:
.*\S.*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: