pulumi_wasm_providers_aws_mini::ec2::launch_template

Struct LaunchTemplateArgs

source
pub struct LaunchTemplateArgs {
Show 37 fields 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<Option<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 license_specifications: Output<Option<Vec<LaunchTemplateLicenseSpecification>>>, pub maintenance_options: Output<Option<LaunchTemplateMaintenanceOptions>>, pub metadata_options: Output<Option<LaunchTemplateMetadataOptions>>, pub monitoring: Output<Option<LaunchTemplateMonitoring>>, pub name: Output<Option<String>>, pub name_prefix: Output<Option<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 update_default_version: Output<Option<bool>>, pub user_data: Output<Option<String>>, pub vpc_security_group_ids: Output<Option<Vec<String>>>,
}

Fields§

§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<Option<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>>§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.

§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<Option<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<Option<String>>

The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.

§name_prefix: Output<Option<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.

§tags: Output<Option<HashMap<String, String>>>

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.

§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

Implementations§

source§

impl LaunchTemplateArgs

source

pub fn builder() -> LaunchTemplateArgsBuilder

Create an instance of LaunchTemplateArgs using the builder syntax

Trait Implementations§

source§

impl Clone for LaunchTemplateArgs

source§

fn clone(&self) -> LaunchTemplateArgs

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.