pub struct LaunchTemplateResult {Show 40 fields
pub arn: Output<String>,
pub block_device_mappings: Output<Option<Vec<LaunchTemplateBlockDeviceMapping>>>,
pub capacity_reservation_specification: Output<Option<LaunchTemplateCapacityReservationSpecification>>,
pub cpu_options: Output<Option<LaunchTemplateCpuOptions>>,
pub credit_specification: Output<Option<LaunchTemplateCreditSpecification>>,
pub default_version: Output<i32>,
pub description: Output<Option<String>>,
pub disable_api_stop: Output<Option<bool>>,
pub disable_api_termination: Output<Option<bool>>,
pub ebs_optimized: Output<Option<String>>,
pub elastic_gpu_specifications: Output<Option<Vec<LaunchTemplateElasticGpuSpecification>>>,
pub elastic_inference_accelerator: Output<Option<LaunchTemplateElasticInferenceAccelerator>>,
pub enclave_options: Output<Option<LaunchTemplateEnclaveOptions>>,
pub hibernation_options: Output<Option<LaunchTemplateHibernationOptions>>,
pub iam_instance_profile: Output<Option<LaunchTemplateIamInstanceProfile>>,
pub image_id: Output<Option<String>>,
pub instance_initiated_shutdown_behavior: Output<Option<String>>,
pub instance_market_options: Output<Option<LaunchTemplateInstanceMarketOptions>>,
pub instance_requirements: Output<Option<LaunchTemplateInstanceRequirements>>,
pub instance_type: Output<Option<String>>,
pub kernel_id: Output<Option<String>>,
pub key_name: Output<Option<String>>,
pub latest_version: Output<i32>,
pub license_specifications: Output<Option<Vec<LaunchTemplateLicenseSpecification>>>,
pub maintenance_options: Output<Option<LaunchTemplateMaintenanceOptions>>,
pub metadata_options: Output<LaunchTemplateMetadataOptions>,
pub monitoring: Output<Option<LaunchTemplateMonitoring>>,
pub name: Output<String>,
pub name_prefix: Output<String>,
pub network_interfaces: Output<Option<Vec<LaunchTemplateNetworkInterface>>>,
pub placement: Output<Option<LaunchTemplatePlacement>>,
pub private_dns_name_options: Output<Option<LaunchTemplatePrivateDnsNameOptions>>,
pub ram_disk_id: Output<Option<String>>,
pub security_group_names: Output<Option<Vec<String>>>,
pub tag_specifications: Output<Option<Vec<LaunchTemplateTagSpecification>>>,
pub tags: Output<Option<HashMap<String, String>>>,
pub tags_all: Output<HashMap<String, String>>,
pub update_default_version: Output<Option<bool>>,
pub user_data: Output<Option<String>>,
pub vpc_security_group_ids: Output<Option<Vec<String>>>,
}
Fields§
§arn: Output<String>
Amazon Resource Name (ARN) of the launch template.
block_device_mappings: Output<Option<Vec<LaunchTemplateBlockDeviceMapping>>>
Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
capacity_reservation_specification: Output<Option<LaunchTemplateCapacityReservationSpecification>>
Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
cpu_options: Output<Option<LaunchTemplateCpuOptions>>
The CPU options for the instance. See CPU Options below for more details.
credit_specification: Output<Option<LaunchTemplateCreditSpecification>>
Customize the credit specification of the instance. See Credit Specification below for more details.
default_version: Output<i32>
Default Version of the launch template.
description: Output<Option<String>>
Description of the launch template.
disable_api_stop: Output<Option<bool>>
If true, enables EC2 Instance Stop Protection.
disable_api_termination: Output<Option<bool>>
If true
, enables EC2 Instance
Termination Protection
ebs_optimized: Output<Option<String>>
If true
, the launched EC2 instance will be EBS-optimized.
elastic_gpu_specifications: Output<Option<Vec<LaunchTemplateElasticGpuSpecification>>>
The elastic GPU to attach to the instance. See Elastic GPU below for more details.
elastic_inference_accelerator: Output<Option<LaunchTemplateElasticInferenceAccelerator>>
Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
enclave_options: Output<Option<LaunchTemplateEnclaveOptions>>
Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
hibernation_options: Output<Option<LaunchTemplateHibernationOptions>>
The hibernation options for the instance. See Hibernation Options below for more details.
iam_instance_profile: Output<Option<LaunchTemplateIamInstanceProfile>>
The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.
image_id: Output<Option<String>>
The AMI from which to launch the instance or use a Systems Manager parameter convention e.g. resolve:ssm:parameter-name
. See docs for more details.
instance_initiated_shutdown_behavior: Output<Option<String>>
Shutdown behavior for the instance. Can be stop
or terminate
.
(Default: stop
).
instance_market_options: Output<Option<LaunchTemplateInstanceMarketOptions>>
The market (purchasing) option for the instance. See Market Options below for details.
instance_requirements: Output<Option<LaunchTemplateInstanceRequirements>>
The attribute requirements for the type of instance. If present then instance_type
cannot be present.
instance_type: Output<Option<String>>
The type of the instance. If present then instance_requirements
cannot be present.
kernel_id: Output<Option<String>>
The kernel ID.
key_name: Output<Option<String>>
The key name to use for the instance.
latest_version: Output<i32>
The latest version of the launch template.
license_specifications: Output<Option<Vec<LaunchTemplateLicenseSpecification>>>
A list of license specifications to associate with. See License Specification below for more details.
maintenance_options: Output<Option<LaunchTemplateMaintenanceOptions>>
The maintenance options for the instance. See Maintenance Options below for more details.
metadata_options: Output<LaunchTemplateMetadataOptions>
Customize the metadata options for the instance. See Metadata Options below for more details.
monitoring: Output<Option<LaunchTemplateMonitoring>>
The monitoring option for the instance. See Monitoring below for more details.
name: Output<String>
The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.
name_prefix: Output<String>
Creates a unique name beginning with the specified prefix. Conflicts with name
.
network_interfaces: Output<Option<Vec<LaunchTemplateNetworkInterface>>>
Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.
placement: Output<Option<LaunchTemplatePlacement>>
The placement of the instance. See Placement below for more details.
private_dns_name_options: Output<Option<LaunchTemplatePrivateDnsNameOptions>>
The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.
ram_disk_id: Output<Option<String>>
The ID of the RAM disk.
security_group_names: Output<Option<Vec<String>>>
A list of security group names to associate with. If you are creating Instances in a VPC, use
vpc_security_group_ids
instead.
tag_specifications: Output<Option<Vec<LaunchTemplateTagSpecification>>>
The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
A map of tags to assign to the launch template. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.
update_default_version: Output<Option<bool>>
Whether to update Default Version each update. Conflicts with default_version
.
user_data: Output<Option<String>>
The base64-encoded user data to provide when launching the instance.
vpc_security_group_ids: Output<Option<Vec<String>>>
A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups