Skip to content

EC2  >  Structures  >  ResponseLaunchTemplateData

ResponseLaunchTemplateData

Structure Class

ResponseLaunchTemplateData dataclass

Bases: _SerdeShape

The information for a launch template.

Attributes

block_device_mappings class-attribute instance-attribute
block_device_mappings: list[LaunchTemplateBlockDeviceMapping] | None = ...

The block device mappings.

capacity_reservation_specification class-attribute instance-attribute
capacity_reservation_specification: LaunchTemplateCapacityReservationSpecificationResponse | None = ...

Information about the Capacity Reservation targeting option.

cpu_options class-attribute instance-attribute
cpu_options: LaunchTemplateCpuOptions | None = ...

The CPU options for the instance. For more information, see CPU options for Amazon EC2 instances in the Amazon EC2 User Guide.

credit_specification class-attribute instance-attribute
credit_specification: CreditSpecification | None = ...

The credit option for CPU usage of the instance.

disable_api_stop class-attribute instance-attribute
disable_api_stop: bool | None = ...

Indicates whether the instance is enabled for stop protection. For more information, see Enable stop protection for your EC2 instances in the Amazon EC2 User Guide.

disable_api_termination class-attribute instance-attribute
disable_api_termination: bool | None = ...

If set to true, indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API.

ebs_optimized class-attribute instance-attribute
ebs_optimized: bool | None = ...

Indicates whether the instance is optimized for Amazon EBS I/O.

elastic_gpu_specifications class-attribute instance-attribute
elastic_gpu_specifications: list[ElasticGpuSpecificationResponse] | None = ...

Deprecated.

Note

Amazon Elastic Graphics reached end of life on January 8, 2024.

elastic_inference_accelerators class-attribute instance-attribute
elastic_inference_accelerators: list[LaunchTemplateElasticInferenceAcceleratorResponse] | None = ...
Note

Amazon Elastic Inference is no longer available.

An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads.

You cannot specify accelerators from different generations in the same request.

enclave_options class-attribute instance-attribute
enclave_options: LaunchTemplateEnclaveOptions | None = ...

Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.

hibernation_options class-attribute instance-attribute
hibernation_options: LaunchTemplateHibernationOptions | None = ...

Indicates whether an instance is configured for hibernation. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.

iam_instance_profile class-attribute instance-attribute
iam_instance_profile: LaunchTemplateIamInstanceProfileSpecification | None = ...

The IAM instance profile.

image_id class-attribute instance-attribute
image_id: str | None = ...

The ID of the AMI or a Systems Manager parameter. The Systems Manager parameter will resolve to the ID of the AMI at instance launch.

The value depends on what you specified in the request. The possible values are:

  • If an AMI ID was specified in the request, then this is the AMI ID.

  • If a Systems Manager parameter was specified in the request, and ResolveAlias was configured as true, then this is the AMI ID that the parameter is mapped to in the Parameter Store.

  • If a Systems Manager parameter was specified in the request, and ResolveAlias was configured as false, then this is the parameter value.

For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon EC2 User Guide.

instance_initiated_shutdown_behavior class-attribute instance-attribute
instance_initiated_shutdown_behavior: str | None = ...

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

instance_market_options class-attribute instance-attribute
instance_market_options: LaunchTemplateInstanceMarketOptions | None = ...

The market (purchasing) option for the instances.

instance_requirements class-attribute instance-attribute
instance_requirements: InstanceRequirements | None = ...

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 specify InstanceTypes.

instance_type class-attribute instance-attribute
instance_type: str | None = ...

The instance type.

kernel_id class-attribute instance-attribute
kernel_id: str | None = ...

The ID of the kernel, if applicable.

key_name class-attribute instance-attribute
key_name: str | None = ...

The name of the key pair.

license_specifications class-attribute instance-attribute
license_specifications: list[LaunchTemplateLicenseConfiguration] | None = ...

The license configurations.

maintenance_options class-attribute instance-attribute
maintenance_options: LaunchTemplateInstanceMaintenanceOptions | None = ...

The maintenance options for your instance.

metadata_options class-attribute instance-attribute
metadata_options: LaunchTemplateInstanceMetadataOptions | None = ...

The metadata options for the instance. For more information, see Configure the Instance Metadata Service options in the Amazon EC2 User Guide.

monitoring class-attribute instance-attribute
monitoring: LaunchTemplatesMonitoring | None = ...

The monitoring for the instance.

network_interfaces class-attribute instance-attribute

The network interfaces.

network_performance_options class-attribute instance-attribute
network_performance_options: LaunchTemplateNetworkPerformanceOptions | None = ...

Contains the launch template settings for network performance options for your instance.

operator class-attribute instance-attribute
operator: OperatorResponse | None = ...

The entity that manages the launch template.

placement class-attribute instance-attribute
placement: LaunchTemplatePlacement | None = ...

The placement of the instance.

private_dns_name_options class-attribute instance-attribute
private_dns_name_options: LaunchTemplatePrivateDnsNameOptions | None = ...

The options for the instance hostname.

ram_disk_id class-attribute instance-attribute
ram_disk_id: str | None = ...

The ID of the RAM disk, if applicable.

secondary_interfaces class-attribute instance-attribute
secondary_interfaces: list[LaunchTemplateInstanceSecondaryInterfaceSpecification] | None = ...

The secondary interfaces associated with the launch template.

security_group_ids class-attribute instance-attribute
security_group_ids: list[str] | None = ...

The security group IDs.

security_groups class-attribute instance-attribute
security_groups: list[str] | None = ...

The security group names.

tag_specifications class-attribute instance-attribute
tag_specifications: list[LaunchTemplateTagSpecification] | None = ...

The tags that are applied to the resources that are created during instance launch.

user_data class-attribute instance-attribute
user_data: str | None = ...

The user data for the instance.