LaunchTemplateData

data class LaunchTemplateData(val blockDeviceMappings: List<LaunchTemplateBlockDeviceMapping>? = null, val capacityReservationSpecification: LaunchTemplateCapacityReservationSpecification? = null, val cpuOptions: LaunchTemplateCpuOptions? = null, val creditSpecification: LaunchTemplateCreditSpecification? = null, val disableApiStop: Boolean? = null, val disableApiTermination: Boolean? = null, val ebsOptimized: Boolean? = null, val elasticGpuSpecifications: List<LaunchTemplateElasticGpuSpecification>? = null, val elasticInferenceAccelerators: List<LaunchTemplateElasticInferenceAccelerator>? = null, val enclaveOptions: LaunchTemplateEnclaveOptions? = null, val hibernationOptions: LaunchTemplateHibernationOptions? = null, val iamInstanceProfile: LaunchTemplateIamInstanceProfile? = null, val imageId: String? = null, val instanceInitiatedShutdownBehavior: String? = null, val instanceMarketOptions: LaunchTemplateInstanceMarketOptions? = null, val instanceRequirements: LaunchTemplateInstanceRequirements? = null, val instanceType: String? = null, val kernelId: String? = null, val keyName: String? = null, val licenseSpecifications: List<LaunchTemplateLicenseSpecification>? = null, val maintenanceOptions: LaunchTemplateMaintenanceOptions? = null, val metadataOptions: LaunchTemplateMetadataOptions? = null, val monitoring: LaunchTemplateMonitoring? = null, val networkInterfaces: List<LaunchTemplateNetworkInterface>? = null, val placement: LaunchTemplatePlacement? = null, val privateDnsNameOptions: LaunchTemplatePrivateDnsNameOptions? = null, val ramDiskId: String? = null, val securityGroupIds: List<String>? = null, val securityGroups: List<String>? = null, val tagSpecifications: List<TagSpecification>? = null, val userData: String? = null)

The information for the launch template.

Constructors

Link copied to clipboard
fun LaunchTemplateData(blockDeviceMappings: List<LaunchTemplateBlockDeviceMapping>? = null, capacityReservationSpecification: LaunchTemplateCapacityReservationSpecification? = null, cpuOptions: LaunchTemplateCpuOptions? = null, creditSpecification: LaunchTemplateCreditSpecification? = null, disableApiStop: Boolean? = null, disableApiTermination: Boolean? = null, ebsOptimized: Boolean? = null, elasticGpuSpecifications: List<LaunchTemplateElasticGpuSpecification>? = null, elasticInferenceAccelerators: List<LaunchTemplateElasticInferenceAccelerator>? = null, enclaveOptions: LaunchTemplateEnclaveOptions? = null, hibernationOptions: LaunchTemplateHibernationOptions? = null, iamInstanceProfile: LaunchTemplateIamInstanceProfile? = null, imageId: String? = null, instanceInitiatedShutdownBehavior: String? = null, instanceMarketOptions: LaunchTemplateInstanceMarketOptions? = null, instanceRequirements: LaunchTemplateInstanceRequirements? = null, instanceType: String? = null, kernelId: String? = null, keyName: String? = null, licenseSpecifications: List<LaunchTemplateLicenseSpecification>? = null, maintenanceOptions: LaunchTemplateMaintenanceOptions? = null, metadataOptions: LaunchTemplateMetadataOptions? = null, monitoring: LaunchTemplateMonitoring? = null, networkInterfaces: List<LaunchTemplateNetworkInterface>? = null, placement: LaunchTemplatePlacement? = null, privateDnsNameOptions: LaunchTemplatePrivateDnsNameOptions? = null, ramDiskId: String? = null, securityGroupIds: List<String>? = null, securityGroups: List<String>? = null, tagSpecifications: List<TagSpecification>? = null, userData: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The block device mapping.

Link copied to clipboard
Link copied to clipboard
val disableApiStop: Boolean? = null

Indicates whether to enable the instance for stop protection.

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.

Link copied to clipboard
val ebsOptimized: Boolean? = null

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

Link copied to clipboard

An elastic GPU to associate with the instance.

Link copied to clipboard

The elastic inference accelerator for the instance.

Link copied to clipboard
Link copied to clipboard
val imageId: String? = null

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
val instanceType: String? = null
Link copied to clipboard
val kernelId: String? = null

The ID of the kernel.

Link copied to clipboard
val keyName: String? = null

The name of the EC2 key pair

Link copied to clipboard

The license configurations.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard
val ramDiskId: String? = null
Link copied to clipboard

One or more security group IDs.

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

One or more security group names.

Link copied to clipboard

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

Link copied to clipboard
val userData: String? = null

The user data to make available to the instance.