LaunchTemplateDataArgs

data class LaunchTemplateDataArgs(val blockDeviceMappings: Output<List<LaunchTemplateBlockDeviceMappingArgs>>? = null, val capacityReservationSpecification: Output<LaunchTemplateCapacityReservationSpecificationArgs>? = null, val cpuOptions: Output<LaunchTemplateCpuOptionsArgs>? = null, val creditSpecification: Output<LaunchTemplateCreditSpecificationArgs>? = null, val disableApiStop: Output<Boolean>? = null, val disableApiTermination: Output<Boolean>? = null, val ebsOptimized: Output<Boolean>? = null, val elasticGpuSpecifications: Output<List<LaunchTemplateElasticGpuSpecificationArgs>>? = null, val elasticInferenceAccelerators: Output<List<LaunchTemplateElasticInferenceAcceleratorArgs>>? = null, val enclaveOptions: Output<LaunchTemplateEnclaveOptionsArgs>? = null, val hibernationOptions: Output<LaunchTemplateHibernationOptionsArgs>? = null, val iamInstanceProfile: Output<LaunchTemplateIamInstanceProfileArgs>? = null, val imageId: Output<String>? = null, val instanceInitiatedShutdownBehavior: Output<String>? = null, val instanceMarketOptions: Output<LaunchTemplateInstanceMarketOptionsArgs>? = null, val instanceRequirements: Output<LaunchTemplateInstanceRequirementsArgs>? = null, val instanceType: Output<String>? = null, val kernelId: Output<String>? = null, val keyName: Output<String>? = null, val licenseSpecifications: Output<List<LaunchTemplateLicenseSpecificationArgs>>? = null, val maintenanceOptions: Output<LaunchTemplateMaintenanceOptionsArgs>? = null, val metadataOptions: Output<LaunchTemplateMetadataOptionsArgs>? = null, val monitoring: Output<LaunchTemplateMonitoringArgs>? = null, val networkInterfaces: Output<List<LaunchTemplateNetworkInterfaceArgs>>? = null, val networkPerformanceOptions: Output<LaunchTemplateNetworkPerformanceOptionsArgs>? = null, val placement: Output<LaunchTemplatePlacementArgs>? = null, val privateDnsNameOptions: Output<LaunchTemplatePrivateDnsNameOptionsArgs>? = null, val ramDiskId: Output<String>? = null, val securityGroupIds: Output<List<String>>? = null, val securityGroups: Output<List<String>>? = null, val tagSpecifications: Output<List<TagSpecificationArgs>>? = null, val userData: Output<String>? = null) : ConvertibleToJava<LaunchTemplateDataArgs>

The information to include in the launch template. You must specify at least one parameter for the launch template data.

Constructors

Link copied to clipboard
constructor(blockDeviceMappings: Output<List<LaunchTemplateBlockDeviceMappingArgs>>? = null, capacityReservationSpecification: Output<LaunchTemplateCapacityReservationSpecificationArgs>? = null, cpuOptions: Output<LaunchTemplateCpuOptionsArgs>? = null, creditSpecification: Output<LaunchTemplateCreditSpecificationArgs>? = null, disableApiStop: Output<Boolean>? = null, disableApiTermination: Output<Boolean>? = null, ebsOptimized: Output<Boolean>? = null, elasticGpuSpecifications: Output<List<LaunchTemplateElasticGpuSpecificationArgs>>? = null, elasticInferenceAccelerators: Output<List<LaunchTemplateElasticInferenceAcceleratorArgs>>? = null, enclaveOptions: Output<LaunchTemplateEnclaveOptionsArgs>? = null, hibernationOptions: Output<LaunchTemplateHibernationOptionsArgs>? = null, iamInstanceProfile: Output<LaunchTemplateIamInstanceProfileArgs>? = null, imageId: Output<String>? = null, instanceInitiatedShutdownBehavior: Output<String>? = null, instanceMarketOptions: Output<LaunchTemplateInstanceMarketOptionsArgs>? = null, instanceRequirements: Output<LaunchTemplateInstanceRequirementsArgs>? = null, instanceType: Output<String>? = null, kernelId: Output<String>? = null, keyName: Output<String>? = null, licenseSpecifications: Output<List<LaunchTemplateLicenseSpecificationArgs>>? = null, maintenanceOptions: Output<LaunchTemplateMaintenanceOptionsArgs>? = null, metadataOptions: Output<LaunchTemplateMetadataOptionsArgs>? = null, monitoring: Output<LaunchTemplateMonitoringArgs>? = null, networkInterfaces: Output<List<LaunchTemplateNetworkInterfaceArgs>>? = null, networkPerformanceOptions: Output<LaunchTemplateNetworkPerformanceOptionsArgs>? = null, placement: Output<LaunchTemplatePlacementArgs>? = null, privateDnsNameOptions: Output<LaunchTemplatePrivateDnsNameOptionsArgs>? = null, ramDiskId: Output<String>? = null, securityGroupIds: Output<List<String>>? = null, securityGroups: Output<List<String>>? = null, tagSpecifications: Output<List<TagSpecificationArgs>>? = null, userData: Output<String>? = null)

Properties

Link copied to clipboard

The block device mapping.

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 CPU options for Amazon EC2 instances in the Amazon EC2 User Guide.

Link copied to clipboard

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

Link copied to clipboard
val disableApiStop: Output<Boolean>? = null

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.

Link copied to clipboard
val disableApiTermination: Output<Boolean>? = null

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.

Link copied to clipboard
val ebsOptimized: Output<Boolean>? = null

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

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

Link copied to clipboard

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.

Link copied to clipboard

Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, see What is Nitro Enclaves? in the Nitro Enclaves User Guide. You can't enable AWS Nitro Enclaves and hibernation on the same instance.

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 Amazon EC2 instance in the Amazon EC2 User Guide.

Link copied to clipboard

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

Link copied to clipboard
val imageId: Output<String>? = null

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

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). Default: `stop`

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. You must specify `VCpuCount` and `MemoryMiB`. All other attributes are optional. Any unspecified optional attribute is set to its default. When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values. To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:

Link copied to clipboard
val instanceType: Output<String>? = null

The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide. If you specify `InstanceType`, you can't specify `InstanceRequirements`.

Link copied to clipboard
val kernelId: Output<String>? = null

The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon EC2 User Guide.

Link copied to clipboard
val keyName: Output<String>? = null

The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair. If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.

Link copied to clipboard

The license configurations.

Link copied to clipboard

The maintenance options of your instance.

Link copied to clipboard

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

Link copied to clipboard

The monitoring for the instance.

Link copied to clipboard

The network interfaces for the instance.

Link copied to clipboard

The settings for the network performance options for the instance. For more information, see EC2 instance bandwidth weighting configuration.

Link copied to clipboard

The placement for the instance.

Link copied to clipboard

The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries should be handled. For more information, see Amazon EC2 instance hostname types in the User Guide.

Link copied to clipboard
val ramDiskId: Output<String>? = null

The ID of the RAM disk. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in the Amazon EC2 User Guide.

Link copied to clipboard
val securityGroupIds: Output<List<String>>? = null

The IDs of the security groups. You can specify the IDs of existing security groups and references to resources created by the stack template. If you specify a network interface, you must specify any security groups as part of the network interface instead.

Link copied to clipboard
val securityGroups: Output<List<String>>? = null

The names of the security groups. For a nondefault VPC, you must use security group IDs instead. If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.

Link copied to clipboard

The tags to apply to resources that are created during instance launch. To tag the launch template itself, use TagSpecifications.

Link copied to clipboard
val userData: Output<String>? = null

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. If you are creating the launch template for use with BATCH, the user data must be provided in the MIME multi-part archive format. For more information, see Amazon EC2 user data in launch templates in the User Guide.

Functions

Link copied to clipboard
open override fun toJava(): LaunchTemplateDataArgs