RequestLaunchTemplateData

The information to include in the launch template.

You must specify at least one parameter for the launch template data.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

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).

Link copied to clipboard

The CPU options for the instance. For more information, see Optimizing CPU Options in the Amazon Elastic Compute Cloud User Guide.

Link copied to clipboard

The credit option for CPU usage of the instance. Valid only for T instances.

Link copied to clipboard

Indicates whether to enable the instance for stop protection. For more information, see Stop protection in the Amazon Elastic Compute Cloud User Guide.

Link copied to clipboard

If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information, see What is Amazon Web Services Nitro Enclaves? in the Amazon Web Services Nitro Enclaves User Guide.

Link copied to clipboard

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 instance in the Amazon Elastic Compute Cloud User Guide.

Link copied to clipboard

The name or Amazon Resource Name (ARN) of an IAM instance profile.

Link copied to clipboard

The ID of the AMI. Alternatively, you can specify a Systems Manager parameter, which will resolve to an AMI ID on launch.

Link copied to clipboard

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

Link copied to clipboard

The market (purchasing) option for the instances.

Link copied to clipboard

The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.

Link copied to clipboard

The instance type. For more information, see Instance types in the Amazon Elastic Compute Cloud User Guide.

Link copied to clipboard

The ID of the kernel.

Link copied to clipboard

The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.

Link copied to clipboard
Link copied to clipboard

The maintenance options for the instance.

Link copied to clipboard

The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon Elastic Compute Cloud User Guide.

Link copied to clipboard

The monitoring for the instance.

Link copied to clipboard

One or more network interfaces. If you specify a network interface, you must specify any security groups and subnets as part of the network interface.

Link copied to clipboard

The placement for the instance.

Link copied to clipboard

The options for the instance hostname. The default values are inherited from the subnet.

Link copied to clipboard

The ID of the RAM disk.

Link copied to clipboard

One or more security group IDs. You can create a security group using CreateSecurityGroup.

Link copied to clipboard

One or more security group names. For a nondefault VPC, you must use security group IDs instead.

Link copied to clipboard

The tags to apply to the resources that are created during instance launch. These tags are not applied to the launch template.

Link copied to clipboard

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 on your Linux instance at launch (Linux) or Work with instance user data (Windows) in the Amazon Elastic Compute Cloud User Guide.

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String