RequestLaunchTemplateData
The information to include in the launch template.
You must specify at least one parameter for the launch template data.
Types
Properties
The block device mapping.
The Capacity Reservation targeting option. If you do not specify this parameter, the instance's Capacity Reservation preference defaults to open
, which enables it to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).
The CPU options for the instance. For more information, see CPU options for Amazon EC2 instances in the Amazon EC2 User Guide.
The credit option for CPU usage of the instance. Valid only for T instances.
Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection for your EC2 instances in the Amazon EC2 User Guide.
Indicates whether termination protection is enabled for the instance. The default is false
, which means that you can terminate the instance using the Amazon EC2 console, command line tools, or API. You can enable termination protection when you launch an instance, while the instance is running, or while the instance is stopped.
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
Deprecated.
Amazon Elastic Inference is no longer available.
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information, see What is Nitro Enclaves? in the Amazon Web Services Nitro Enclaves User Guide.
Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.
The name or Amazon Resource Name (ARN) of an IAM instance profile.
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
The market (purchasing) option for the instances.
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.
The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide.
The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.
The license configurations.
The maintenance options for the instance.
The metadata options for the instance. For more information, see Configure the Instance Metadata Service options in the Amazon EC2 User Guide.
The monitoring for the instance.
The network interfaces for the instance.
Contains launch template settings to boost network performance for the type of workload that runs on your instance.
The entity that manages the launch template.
The placement for the instance.
The options for the instance hostname. The default values are inherited from the subnet.
The IDs of the security groups.
The names of the security groups. For a nondefault VPC, you must use security group IDs instead.
The tags to apply to the resources that are created during instance launch. These tags are not applied to the launch template.
The user data to make available to the instance. You must provide base64-encoded text. User data is limited to 16 KB. For more information, see Run commands when you launch an EC2 instance with user data input in the Amazon EC2 User Guide.