pulumi_wasm_providers_aws_mini::ec2::launch_template

Struct LaunchTemplateArgsBuilder

source
pub struct LaunchTemplateArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> LaunchTemplateArgsBuilder<S>

source

pub fn build_struct(self) -> LaunchTemplateArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn block_device_mappings( self, value: impl Into<Output<Option<Vec<LaunchTemplateBlockDeviceMapping>>>>, ) -> LaunchTemplateArgsBuilder<SetBlockDeviceMappings<S>>
where S::BlockDeviceMappings: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::LaunchTemplateBlockDeviceMapping>>,
> as Default>::default()

Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.

source

pub fn maybe_block_device_mappings( self, value: Option<impl Into<Output<Option<Vec<LaunchTemplateBlockDeviceMapping>>>>>, ) -> LaunchTemplateArgsBuilder<SetBlockDeviceMappings<S>>
where S::BlockDeviceMappings: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::LaunchTemplateBlockDeviceMapping>>,
> as Default>::default()

Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.

source

pub fn capacity_reservation_specification( self, value: impl Into<Output<Option<LaunchTemplateCapacityReservationSpecification>>>, ) -> LaunchTemplateArgsBuilder<SetCapacityReservationSpecification<S>>
where S::CapacityReservationSpecification: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateCapacityReservationSpecification>,
> as Default>::default()

Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.

source

pub fn maybe_capacity_reservation_specification( self, value: Option<impl Into<Output<Option<LaunchTemplateCapacityReservationSpecification>>>>, ) -> LaunchTemplateArgsBuilder<SetCapacityReservationSpecification<S>>
where S::CapacityReservationSpecification: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateCapacityReservationSpecification>,
> as Default>::default()

Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.

source

pub fn cpu_options( self, value: impl Into<Output<Option<LaunchTemplateCpuOptions>>>, ) -> LaunchTemplateArgsBuilder<SetCpuOptions<S>>
where S::CpuOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateCpuOptions>,
> as Default>::default()

The CPU options for the instance. See CPU Options below for more details.

source

pub fn maybe_cpu_options( self, value: Option<impl Into<Output<Option<LaunchTemplateCpuOptions>>>>, ) -> LaunchTemplateArgsBuilder<SetCpuOptions<S>>
where S::CpuOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateCpuOptions>,
> as Default>::default()

The CPU options for the instance. See CPU Options below for more details.

source

pub fn credit_specification( self, value: impl Into<Output<Option<LaunchTemplateCreditSpecification>>>, ) -> LaunchTemplateArgsBuilder<SetCreditSpecification<S>>
where S::CreditSpecification: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateCreditSpecification>,
> as Default>::default()

Customize the credit specification of the instance. See Credit Specification below for more details.

source

pub fn maybe_credit_specification( self, value: Option<impl Into<Output<Option<LaunchTemplateCreditSpecification>>>>, ) -> LaunchTemplateArgsBuilder<SetCreditSpecification<S>>
where S::CreditSpecification: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateCreditSpecification>,
> as Default>::default()

Customize the credit specification of the instance. See Credit Specification below for more details.

source

pub fn default_version( self, value: impl Into<Output<Option<i32>>>, ) -> LaunchTemplateArgsBuilder<SetDefaultVersion<S>>
where S::DefaultVersion: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

Default Version of the launch template.

source

pub fn maybe_default_version( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> LaunchTemplateArgsBuilder<SetDefaultVersion<S>>
where S::DefaultVersion: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

Default Version of the launch template.

source

pub fn description( self, value: impl Into<Output<Option<String>>>, ) -> LaunchTemplateArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Description of the launch template.

source

pub fn maybe_description( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchTemplateArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Description of the launch template.

source

pub fn disable_api_stop( self, value: impl Into<Output<Option<bool>>>, ) -> LaunchTemplateArgsBuilder<SetDisableApiStop<S>>
where S::DisableApiStop: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

If true, enables EC2 Instance Stop Protection.

source

pub fn maybe_disable_api_stop( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> LaunchTemplateArgsBuilder<SetDisableApiStop<S>>
where S::DisableApiStop: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

If true, enables EC2 Instance Stop Protection.

source

pub fn disable_api_termination( self, value: impl Into<Output<Option<bool>>>, ) -> LaunchTemplateArgsBuilder<SetDisableApiTermination<S>>
where S::DisableApiTermination: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

If true, enables EC2 Instance Termination Protection

source

pub fn maybe_disable_api_termination( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> LaunchTemplateArgsBuilder<SetDisableApiTermination<S>>
where S::DisableApiTermination: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

If true, enables EC2 Instance Termination Protection

source

pub fn ebs_optimized( self, value: impl Into<Output<Option<String>>>, ) -> LaunchTemplateArgsBuilder<SetEbsOptimized<S>>
where S::EbsOptimized: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

If true, the launched EC2 instance will be EBS-optimized.

source

pub fn maybe_ebs_optimized( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchTemplateArgsBuilder<SetEbsOptimized<S>>
where S::EbsOptimized: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

If true, the launched EC2 instance will be EBS-optimized.

source

pub fn elastic_gpu_specifications( self, value: impl Into<Output<Option<Vec<LaunchTemplateElasticGpuSpecification>>>>, ) -> LaunchTemplateArgsBuilder<SetElasticGpuSpecifications<S>>
where S::ElasticGpuSpecifications: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::LaunchTemplateElasticGpuSpecification>>,
> as Default>::default()

The elastic GPU to attach to the instance. See Elastic GPU below for more details.

source

pub fn maybe_elastic_gpu_specifications( self, value: Option<impl Into<Output<Option<Vec<LaunchTemplateElasticGpuSpecification>>>>>, ) -> LaunchTemplateArgsBuilder<SetElasticGpuSpecifications<S>>
where S::ElasticGpuSpecifications: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::LaunchTemplateElasticGpuSpecification>>,
> as Default>::default()

The elastic GPU to attach to the instance. See Elastic GPU below for more details.

source

pub fn elastic_inference_accelerator( self, value: impl Into<Output<Option<LaunchTemplateElasticInferenceAccelerator>>>, ) -> LaunchTemplateArgsBuilder<SetElasticInferenceAccelerator<S>>
where S::ElasticInferenceAccelerator: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateElasticInferenceAccelerator>,
> as Default>::default()

Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.

source

pub fn maybe_elastic_inference_accelerator( self, value: Option<impl Into<Output<Option<LaunchTemplateElasticInferenceAccelerator>>>>, ) -> LaunchTemplateArgsBuilder<SetElasticInferenceAccelerator<S>>
where S::ElasticInferenceAccelerator: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateElasticInferenceAccelerator>,
> as Default>::default()

Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.

source

pub fn enclave_options( self, value: impl Into<Output<Option<LaunchTemplateEnclaveOptions>>>, ) -> LaunchTemplateArgsBuilder<SetEnclaveOptions<S>>
where S::EnclaveOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateEnclaveOptions>,
> as Default>::default()

Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.

source

pub fn maybe_enclave_options( self, value: Option<impl Into<Output<Option<LaunchTemplateEnclaveOptions>>>>, ) -> LaunchTemplateArgsBuilder<SetEnclaveOptions<S>>
where S::EnclaveOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateEnclaveOptions>,
> as Default>::default()

Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.

source

pub fn hibernation_options( self, value: impl Into<Output<Option<LaunchTemplateHibernationOptions>>>, ) -> LaunchTemplateArgsBuilder<SetHibernationOptions<S>>
where S::HibernationOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateHibernationOptions>,
> as Default>::default()

The hibernation options for the instance. See Hibernation Options below for more details.

source

pub fn maybe_hibernation_options( self, value: Option<impl Into<Output<Option<LaunchTemplateHibernationOptions>>>>, ) -> LaunchTemplateArgsBuilder<SetHibernationOptions<S>>
where S::HibernationOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateHibernationOptions>,
> as Default>::default()

The hibernation options for the instance. See Hibernation Options below for more details.

source

pub fn iam_instance_profile( self, value: impl Into<Output<Option<LaunchTemplateIamInstanceProfile>>>, ) -> LaunchTemplateArgsBuilder<SetIamInstanceProfile<S>>
where S::IamInstanceProfile: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateIamInstanceProfile>,
> as Default>::default()

The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.

source

pub fn maybe_iam_instance_profile( self, value: Option<impl Into<Output<Option<LaunchTemplateIamInstanceProfile>>>>, ) -> LaunchTemplateArgsBuilder<SetIamInstanceProfile<S>>
where S::IamInstanceProfile: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateIamInstanceProfile>,
> as Default>::default()

The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.

source

pub fn image_id( self, value: impl Into<Output<Option<String>>>, ) -> LaunchTemplateArgsBuilder<SetImageId<S>>
where S::ImageId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_image_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchTemplateArgsBuilder<SetImageId<S>>
where S::ImageId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn instance_initiated_shutdown_behavior( self, value: impl Into<Output<Option<String>>>, ) -> LaunchTemplateArgsBuilder<SetInstanceInitiatedShutdownBehavior<S>>
where S::InstanceInitiatedShutdownBehavior: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Shutdown behavior for the instance. Can be stop or terminate. (Default: stop).

source

pub fn maybe_instance_initiated_shutdown_behavior( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchTemplateArgsBuilder<SetInstanceInitiatedShutdownBehavior<S>>
where S::InstanceInitiatedShutdownBehavior: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Shutdown behavior for the instance. Can be stop or terminate. (Default: stop).

source

pub fn instance_market_options( self, value: impl Into<Output<Option<LaunchTemplateInstanceMarketOptions>>>, ) -> LaunchTemplateArgsBuilder<SetInstanceMarketOptions<S>>
where S::InstanceMarketOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateInstanceMarketOptions>,
> as Default>::default()

The market (purchasing) option for the instance. See Market Options below for details.

source

pub fn maybe_instance_market_options( self, value: Option<impl Into<Output<Option<LaunchTemplateInstanceMarketOptions>>>>, ) -> LaunchTemplateArgsBuilder<SetInstanceMarketOptions<S>>
where S::InstanceMarketOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateInstanceMarketOptions>,
> as Default>::default()

The market (purchasing) option for the instance. See Market Options below for details.

source

pub fn instance_requirements( self, value: impl Into<Output<Option<LaunchTemplateInstanceRequirements>>>, ) -> LaunchTemplateArgsBuilder<SetInstanceRequirements<S>>
where S::InstanceRequirements: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateInstanceRequirements>,
> as Default>::default()

The attribute requirements for the type of instance. If present then instance_type cannot be present.

source

pub fn maybe_instance_requirements( self, value: Option<impl Into<Output<Option<LaunchTemplateInstanceRequirements>>>>, ) -> LaunchTemplateArgsBuilder<SetInstanceRequirements<S>>
where S::InstanceRequirements: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateInstanceRequirements>,
> as Default>::default()

The attribute requirements for the type of instance. If present then instance_type cannot be present.

source

pub fn instance_type( self, value: impl Into<Output<Option<String>>>, ) -> LaunchTemplateArgsBuilder<SetInstanceType<S>>
where S::InstanceType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The type of the instance. If present then instance_requirements cannot be present.

source

pub fn maybe_instance_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchTemplateArgsBuilder<SetInstanceType<S>>
where S::InstanceType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The type of the instance. If present then instance_requirements cannot be present.

source

pub fn kernel_id( self, value: impl Into<Output<Option<String>>>, ) -> LaunchTemplateArgsBuilder<SetKernelId<S>>
where S::KernelId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The kernel ID.

source

pub fn maybe_kernel_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchTemplateArgsBuilder<SetKernelId<S>>
where S::KernelId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The kernel ID.

source

pub fn key_name( self, value: impl Into<Output<Option<String>>>, ) -> LaunchTemplateArgsBuilder<SetKeyName<S>>
where S::KeyName: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The key name to use for the instance.

source

pub fn maybe_key_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchTemplateArgsBuilder<SetKeyName<S>>
where S::KeyName: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The key name to use for the instance.

source

pub fn license_specifications( self, value: impl Into<Output<Option<Vec<LaunchTemplateLicenseSpecification>>>>, ) -> LaunchTemplateArgsBuilder<SetLicenseSpecifications<S>>
where S::LicenseSpecifications: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::LaunchTemplateLicenseSpecification>>,
> as Default>::default()

A list of license specifications to associate with. See License Specification below for more details.

source

pub fn maybe_license_specifications( self, value: Option<impl Into<Output<Option<Vec<LaunchTemplateLicenseSpecification>>>>>, ) -> LaunchTemplateArgsBuilder<SetLicenseSpecifications<S>>
where S::LicenseSpecifications: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::LaunchTemplateLicenseSpecification>>,
> as Default>::default()

A list of license specifications to associate with. See License Specification below for more details.

source

pub fn maintenance_options( self, value: impl Into<Output<Option<LaunchTemplateMaintenanceOptions>>>, ) -> LaunchTemplateArgsBuilder<SetMaintenanceOptions<S>>
where S::MaintenanceOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateMaintenanceOptions>,
> as Default>::default()

The maintenance options for the instance. See Maintenance Options below for more details.

source

pub fn maybe_maintenance_options( self, value: Option<impl Into<Output<Option<LaunchTemplateMaintenanceOptions>>>>, ) -> LaunchTemplateArgsBuilder<SetMaintenanceOptions<S>>
where S::MaintenanceOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateMaintenanceOptions>,
> as Default>::default()

The maintenance options for the instance. See Maintenance Options below for more details.

source

pub fn metadata_options( self, value: impl Into<Output<Option<LaunchTemplateMetadataOptions>>>, ) -> LaunchTemplateArgsBuilder<SetMetadataOptions<S>>
where S::MetadataOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateMetadataOptions>,
> as Default>::default()

Customize the metadata options for the instance. See Metadata Options below for more details.

source

pub fn maybe_metadata_options( self, value: Option<impl Into<Output<Option<LaunchTemplateMetadataOptions>>>>, ) -> LaunchTemplateArgsBuilder<SetMetadataOptions<S>>
where S::MetadataOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateMetadataOptions>,
> as Default>::default()

Customize the metadata options for the instance. See Metadata Options below for more details.

source

pub fn monitoring( self, value: impl Into<Output<Option<LaunchTemplateMonitoring>>>, ) -> LaunchTemplateArgsBuilder<SetMonitoring<S>>
where S::Monitoring: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateMonitoring>,
> as Default>::default()

The monitoring option for the instance. See Monitoring below for more details.

source

pub fn maybe_monitoring( self, value: Option<impl Into<Output<Option<LaunchTemplateMonitoring>>>>, ) -> LaunchTemplateArgsBuilder<SetMonitoring<S>>
where S::Monitoring: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplateMonitoring>,
> as Default>::default()

The monitoring option for the instance. See Monitoring below for more details.

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> LaunchTemplateArgsBuilder<SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchTemplateArgsBuilder<SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn name_prefix( self, value: impl Into<Output<Option<String>>>, ) -> LaunchTemplateArgsBuilder<SetNamePrefix<S>>
where S::NamePrefix: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Creates a unique name beginning with the specified prefix. Conflicts with name.

source

pub fn maybe_name_prefix( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchTemplateArgsBuilder<SetNamePrefix<S>>
where S::NamePrefix: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Creates a unique name beginning with the specified prefix. Conflicts with name.

source

pub fn network_interfaces( self, value: impl Into<Output<Option<Vec<LaunchTemplateNetworkInterface>>>>, ) -> LaunchTemplateArgsBuilder<SetNetworkInterfaces<S>>
where S::NetworkInterfaces: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::LaunchTemplateNetworkInterface>>,
> as Default>::default()

Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.

source

pub fn maybe_network_interfaces( self, value: Option<impl Into<Output<Option<Vec<LaunchTemplateNetworkInterface>>>>>, ) -> LaunchTemplateArgsBuilder<SetNetworkInterfaces<S>>
where S::NetworkInterfaces: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::LaunchTemplateNetworkInterface>>,
> as Default>::default()

Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.

source

pub fn placement( self, value: impl Into<Output<Option<LaunchTemplatePlacement>>>, ) -> LaunchTemplateArgsBuilder<SetPlacement<S>>
where S::Placement: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplatePlacement>,
> as Default>::default()

The placement of the instance. See Placement below for more details.

source

pub fn maybe_placement( self, value: Option<impl Into<Output<Option<LaunchTemplatePlacement>>>>, ) -> LaunchTemplateArgsBuilder<SetPlacement<S>>
where S::Placement: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplatePlacement>,
> as Default>::default()

The placement of the instance. See Placement below for more details.

source

pub fn private_dns_name_options( self, value: impl Into<Output<Option<LaunchTemplatePrivateDnsNameOptions>>>, ) -> LaunchTemplateArgsBuilder<SetPrivateDnsNameOptions<S>>
where S::PrivateDnsNameOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplatePrivateDnsNameOptions>,
> as Default>::default()

The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.

source

pub fn maybe_private_dns_name_options( self, value: Option<impl Into<Output<Option<LaunchTemplatePrivateDnsNameOptions>>>>, ) -> LaunchTemplateArgsBuilder<SetPrivateDnsNameOptions<S>>
where S::PrivateDnsNameOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchTemplatePrivateDnsNameOptions>,
> as Default>::default()

The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.

source

pub fn ram_disk_id( self, value: impl Into<Output<Option<String>>>, ) -> LaunchTemplateArgsBuilder<SetRamDiskId<S>>
where S::RamDiskId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ID of the RAM disk.

source

pub fn maybe_ram_disk_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchTemplateArgsBuilder<SetRamDiskId<S>>
where S::RamDiskId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ID of the RAM disk.

source

pub fn security_group_names( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> LaunchTemplateArgsBuilder<SetSecurityGroupNames<S>>
where S::SecurityGroupNames: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

A list of security group names to associate with. If you are creating Instances in a VPC, use vpc_security_group_ids instead.

source

pub fn maybe_security_group_names( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> LaunchTemplateArgsBuilder<SetSecurityGroupNames<S>>
where S::SecurityGroupNames: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

A list of security group names to associate with. If you are creating Instances in a VPC, use vpc_security_group_ids instead.

source

pub fn tag_specifications( self, value: impl Into<Output<Option<Vec<LaunchTemplateTagSpecification>>>>, ) -> LaunchTemplateArgsBuilder<SetTagSpecifications<S>>
where S::TagSpecifications: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::LaunchTemplateTagSpecification>>,
> as Default>::default()

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.

source

pub fn maybe_tag_specifications( self, value: Option<impl Into<Output<Option<Vec<LaunchTemplateTagSpecification>>>>>, ) -> LaunchTemplateArgsBuilder<SetTagSpecifications<S>>
where S::TagSpecifications: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::LaunchTemplateTagSpecification>>,
> as Default>::default()

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.

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> LaunchTemplateArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

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.

source

pub fn maybe_tags( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> LaunchTemplateArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

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.

source

pub fn update_default_version( self, value: impl Into<Output<Option<bool>>>, ) -> LaunchTemplateArgsBuilder<SetUpdateDefaultVersion<S>>
where S::UpdateDefaultVersion: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Whether to update Default Version each update. Conflicts with default_version.

source

pub fn maybe_update_default_version( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> LaunchTemplateArgsBuilder<SetUpdateDefaultVersion<S>>
where S::UpdateDefaultVersion: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Whether to update Default Version each update. Conflicts with default_version.

source

pub fn user_data( self, value: impl Into<Output<Option<String>>>, ) -> LaunchTemplateArgsBuilder<SetUserData<S>>
where S::UserData: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The base64-encoded user data to provide when launching the instance.

source

pub fn maybe_user_data( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchTemplateArgsBuilder<SetUserData<S>>
where S::UserData: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The base64-encoded user data to provide when launching the instance.

source

pub fn vpc_security_group_ids( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> LaunchTemplateArgsBuilder<SetVpcSecurityGroupIds<S>>
where S::VpcSecurityGroupIds: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups

source

pub fn maybe_vpc_security_group_ids( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> LaunchTemplateArgsBuilder<SetVpcSecurityGroupIds<S>>
where S::VpcSecurityGroupIds: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups

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