pulumi_wasm_providers_aws_mini::ec2::spot_instance_request

Struct SpotInstanceRequestArgsBuilder

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

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

Implementations§

source§

impl<S: State> SpotInstanceRequestArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn ami( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetAmi<S>>
where S::Ami: IsUnset,

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

AMI to use for the instance. Required unless launch_template is specified and the Launch Template specifes an AMI. If an AMI is specified in the Launch Template, setting ami will override the AMI specified in the Launch Template.

source

pub fn maybe_ami( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetAmi<S>>
where S::Ami: IsUnset,

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

AMI to use for the instance. Required unless launch_template is specified and the Launch Template specifes an AMI. If an AMI is specified in the Launch Template, setting ami will override the AMI specified in the Launch Template.

source

pub fn associate_public_ip_address( self, value: impl Into<Output<Option<bool>>>, ) -> SpotInstanceRequestArgsBuilder<SetAssociatePublicIpAddress<S>>
where S::AssociatePublicIpAddress: IsUnset,

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

Whether to associate a public IP address with an instance in a VPC.

source

pub fn maybe_associate_public_ip_address( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SpotInstanceRequestArgsBuilder<SetAssociatePublicIpAddress<S>>
where S::AssociatePublicIpAddress: IsUnset,

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

Whether to associate a public IP address with an instance in a VPC.

source

pub fn availability_zone( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetAvailabilityZone<S>>
where S::AvailabilityZone: IsUnset,

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

AZ to start the instance in.

source

pub fn maybe_availability_zone( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetAvailabilityZone<S>>
where S::AvailabilityZone: IsUnset,

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

AZ to start the instance in.

source

pub fn block_duration_minutes( self, value: impl Into<Output<Option<i32>>>, ) -> SpotInstanceRequestArgsBuilder<SetBlockDurationMinutes<S>>
where S::BlockDurationMinutes: IsUnset,

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

The required duration for the Spot instances, in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360). The duration period starts as soon as your Spot instance receives its instance ID. At the end of the duration period, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates. Note that you can’t specify an Availability Zone group or a launch group if you specify a duration.

source

pub fn maybe_block_duration_minutes( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> SpotInstanceRequestArgsBuilder<SetBlockDurationMinutes<S>>
where S::BlockDurationMinutes: IsUnset,

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

The required duration for the Spot instances, in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360). The duration period starts as soon as your Spot instance receives its instance ID. At the end of the duration period, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates. Note that you can’t specify an Availability Zone group or a launch group if you specify a duration.

source

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

Optional (Some / Option setters). Default:

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

Describes an instance’s Capacity Reservation targeting option. See Capacity Reservation Specification below for more details.

NOTE: Changing cpu_core_count and/or cpu_threads_per_core will cause the resource to be destroyed and re-created.

source

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

Optional (Some / Option setters). Default:

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

Describes an instance’s Capacity Reservation targeting option. See Capacity Reservation Specification below for more details.

NOTE: Changing cpu_core_count and/or cpu_threads_per_core will cause the resource to be destroyed and re-created.

source

pub fn cpu_core_count( self, value: impl Into<Output<Option<i32>>>, ) -> SpotInstanceRequestArgsBuilder<SetCpuCoreCount<S>>
where S::CpuCoreCount: IsUnset,

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

Sets the number of CPU cores for an instance. This option is only supported on creation of instance type that support CPU Options CPU Cores and Threads Per CPU Core Per Instance Type - specifying this option for unsupported instance types will return an error from the EC2 API.

source

pub fn maybe_cpu_core_count( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> SpotInstanceRequestArgsBuilder<SetCpuCoreCount<S>>
where S::CpuCoreCount: IsUnset,

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

Sets the number of CPU cores for an instance. This option is only supported on creation of instance type that support CPU Options CPU Cores and Threads Per CPU Core Per Instance Type - specifying this option for unsupported instance types will return an error from the EC2 API.

source

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

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::SpotInstanceRequestCpuOptions>,
> 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<SpotInstanceRequestCpuOptions>>>>, ) -> SpotInstanceRequestArgsBuilder<SetCpuOptions<S>>
where S::CpuOptions: IsUnset,

Optional (Some / Option setters). Default:

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

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

source

pub fn cpu_threads_per_core( self, value: impl Into<Output<Option<i32>>>, ) -> SpotInstanceRequestArgsBuilder<SetCpuThreadsPerCore<S>>
where S::CpuThreadsPerCore: IsUnset,

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

If set to 1, hyperthreading is disabled on the launched instance. Defaults to 2 if not set. See Optimizing CPU Options for more information.

source

pub fn maybe_cpu_threads_per_core( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> SpotInstanceRequestArgsBuilder<SetCpuThreadsPerCore<S>>
where S::CpuThreadsPerCore: IsUnset,

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

If set to 1, hyperthreading is disabled on the launched instance. Defaults to 2 if not set. See Optimizing CPU Options for more information.

source

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

Optional (Some / Option setters). Default:

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

Configuration block for customizing the credit specification of the instance. See Credit Specification below for more details. This provider will only perform drift detection of its value when present in a configuration. Removing this configuration on existing instances will only stop managing it. It will not change the configuration back to the default for the instance type.

source

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

Optional (Some / Option setters). Default:

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

Configuration block for customizing the credit specification of the instance. See Credit Specification below for more details. This provider will only perform drift detection of its value when present in a configuration. Removing this configuration on existing instances will only stop managing it. It will not change the configuration back to the default for the instance type.

source

pub fn disable_api_stop( self, value: impl Into<Output<Option<bool>>>, ) -> SpotInstanceRequestArgsBuilder<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>>>>, ) -> SpotInstanceRequestArgsBuilder<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>>>, ) -> SpotInstanceRequestArgsBuilder<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>>>>, ) -> SpotInstanceRequestArgsBuilder<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_block_devices( self, value: impl Into<Output<Option<Vec<SpotInstanceRequestEbsBlockDevice>>>>, ) -> SpotInstanceRequestArgsBuilder<SetEbsBlockDevices<S>>
where S::EbsBlockDevices: IsUnset,

Optional (Some / Option setters). Default:

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

One or more configuration blocks with additional EBS block devices to attach to the instance. Block device configurations only apply on resource creation. See Block Devices below for details on attributes and drift detection. When accessing this as an attribute reference, it is a set of objects.

source

pub fn maybe_ebs_block_devices( self, value: Option<impl Into<Output<Option<Vec<SpotInstanceRequestEbsBlockDevice>>>>>, ) -> SpotInstanceRequestArgsBuilder<SetEbsBlockDevices<S>>
where S::EbsBlockDevices: IsUnset,

Optional (Some / Option setters). Default:

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

One or more configuration blocks with additional EBS block devices to attach to the instance. Block device configurations only apply on resource creation. See Block Devices below for details on attributes and drift detection. When accessing this as an attribute reference, it is a set of objects.

source

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

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

If true, the launched EC2 instance will be EBS-optimized. Note that if this is not set on an instance type that is optimized by default then this will show as disabled but if the instance type is optimized by default then there is no need to set this and there is no effect to disabling it. See the EBS Optimized section of the AWS User Guide for more information.

source

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

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

If true, the launched EC2 instance will be EBS-optimized. Note that if this is not set on an instance type that is optimized by default then this will show as disabled but if the instance type is optimized by default then there is no need to set this and there is no effect to disabling it. See the EBS Optimized section of the AWS User Guide for more information.

source

pub fn enable_primary_ipv6( self, value: impl Into<Output<Option<bool>>>, ) -> SpotInstanceRequestArgsBuilder<SetEnablePrimaryIpv6<S>>
where S::EnablePrimaryIpv6: IsUnset,

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

Whether to assign a primary IPv6 Global Unicast Address (GUA) to the instance when launched in a dual-stack or IPv6-only subnet. A primary IPv6 address ensures a consistent IPv6 address for the instance and is automatically assigned by AWS to the ENI. Once enabled, the first IPv6 GUA becomes the primary IPv6 address and cannot be disabled. The primary IPv6 address remains until the instance is terminated or the ENI is detached. Disabling enable_primary_ipv6 after it has been enabled forces recreation of the instance.

source

pub fn maybe_enable_primary_ipv6( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SpotInstanceRequestArgsBuilder<SetEnablePrimaryIpv6<S>>
where S::EnablePrimaryIpv6: IsUnset,

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

Whether to assign a primary IPv6 Global Unicast Address (GUA) to the instance when launched in a dual-stack or IPv6-only subnet. A primary IPv6 address ensures a consistent IPv6 address for the instance and is automatically assigned by AWS to the ENI. Once enabled, the first IPv6 GUA becomes the primary IPv6 address and cannot be disabled. The primary IPv6 address remains until the instance is terminated or the ENI is detached. Disabling enable_primary_ipv6 after it has been enabled forces recreation of the instance.

source

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

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::SpotInstanceRequestEnclaveOptions>,
> 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<SpotInstanceRequestEnclaveOptions>>>>, ) -> SpotInstanceRequestArgsBuilder<SetEnclaveOptions<S>>
where S::EnclaveOptions: IsUnset,

Optional (Some / Option setters). Default:

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

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

source

pub fn ephemeral_block_devices( self, value: impl Into<Output<Option<Vec<SpotInstanceRequestEphemeralBlockDevice>>>>, ) -> SpotInstanceRequestArgsBuilder<SetEphemeralBlockDevices<S>>
where S::EphemeralBlockDevices: IsUnset,

Optional (Some / Option setters). Default:

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

One or more configuration blocks to customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a set of objects.

source

pub fn maybe_ephemeral_block_devices( self, value: Option<impl Into<Output<Option<Vec<SpotInstanceRequestEphemeralBlockDevice>>>>>, ) -> SpotInstanceRequestArgsBuilder<SetEphemeralBlockDevices<S>>
where S::EphemeralBlockDevices: IsUnset,

Optional (Some / Option setters). Default:

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

One or more configuration blocks to customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a set of objects.

source

pub fn get_password_data( self, value: impl Into<Output<Option<bool>>>, ) -> SpotInstanceRequestArgsBuilder<SetGetPasswordData<S>>
where S::GetPasswordData: IsUnset,

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

If true, wait for password data to become available and retrieve it. Useful for getting the administrator password for instances running Microsoft Windows. The password data is exported to the password_data attribute. See GetPasswordData for more information.

source

pub fn maybe_get_password_data( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SpotInstanceRequestArgsBuilder<SetGetPasswordData<S>>
where S::GetPasswordData: IsUnset,

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

If true, wait for password data to become available and retrieve it. Useful for getting the administrator password for instances running Microsoft Windows. The password data is exported to the password_data attribute. See GetPasswordData for more information.

source

pub fn hibernation( self, value: impl Into<Output<Option<bool>>>, ) -> SpotInstanceRequestArgsBuilder<SetHibernation<S>>
where S::Hibernation: IsUnset,

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

If true, the launched EC2 instance will support hibernation.

source

pub fn maybe_hibernation( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SpotInstanceRequestArgsBuilder<SetHibernation<S>>
where S::Hibernation: IsUnset,

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

If true, the launched EC2 instance will support hibernation.

source

pub fn host_id( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetHostId<S>>
where S::HostId: IsUnset,

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

ID of a dedicated host that the instance will be assigned to. Use when an instance is to be launched on a specific dedicated host.

source

pub fn maybe_host_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetHostId<S>>
where S::HostId: IsUnset,

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

ID of a dedicated host that the instance will be assigned to. Use when an instance is to be launched on a specific dedicated host.

source

pub fn host_resource_group_arn( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetHostResourceGroupArn<S>>
where S::HostResourceGroupArn: IsUnset,

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

ARN of the host resource group in which to launch the instances. If you specify an ARN, omit the tenancy parameter or set it to host.

source

pub fn maybe_host_resource_group_arn( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetHostResourceGroupArn<S>>
where S::HostResourceGroupArn: IsUnset,

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

ARN of the host resource group in which to launch the instances. If you specify an ARN, omit the tenancy parameter or set it to host.

source

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

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

IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile. Ensure your credentials have the correct permission to assign the instance profile according to the EC2 documentation, notably iam:PassRole.

source

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

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

IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile. Ensure your credentials have the correct permission to assign the instance profile according to the EC2 documentation, notably iam:PassRole.

source

pub fn instance_initiated_shutdown_behavior( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<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. Amazon defaults this to stop for EBS-backed instances and terminate for instance-store instances. Cannot be set on instance-store instances. See Shutdown Behavior for more information.

source

pub fn maybe_instance_initiated_shutdown_behavior( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<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. Amazon defaults this to stop for EBS-backed instances and terminate for instance-store instances. Cannot be set on instance-store instances. See Shutdown Behavior for more information.

source

pub fn instance_interruption_behavior( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetInstanceInterruptionBehavior<S>>
where S::InstanceInterruptionBehavior: IsUnset,

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

Indicates Spot instance behavior when it is interrupted. Valid values are terminate, stop, or hibernate. Default value is terminate.

source

pub fn maybe_instance_interruption_behavior( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetInstanceInterruptionBehavior<S>>
where S::InstanceInterruptionBehavior: IsUnset,

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

Indicates Spot instance behavior when it is interrupted. Valid values are terminate, stop, or hibernate. Default value is terminate.

source

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

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

Instance type to use for the instance. Required unless launch_template is specified and the Launch Template specifies an instance type. If an instance type is specified in the Launch Template, setting instance_type will override the instance type specified in the Launch Template. Updates to this field will trigger a stop/start of the EC2 instance.

source

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

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

Instance type to use for the instance. Required unless launch_template is specified and the Launch Template specifies an instance type. If an instance type is specified in the Launch Template, setting instance_type will override the instance type specified in the Launch Template. Updates to this field will trigger a stop/start of the EC2 instance.

source

pub fn ipv6_address_count( self, value: impl Into<Output<Option<i32>>>, ) -> SpotInstanceRequestArgsBuilder<SetIpv6AddressCount<S>>
where S::Ipv6AddressCount: IsUnset,

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

Number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.

source

pub fn maybe_ipv6_address_count( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> SpotInstanceRequestArgsBuilder<SetIpv6AddressCount<S>>
where S::Ipv6AddressCount: IsUnset,

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

Number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.

source

pub fn ipv6_addresses( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetIpv6Addresses<S>>
where S::Ipv6Addresses: IsUnset,

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

Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface

source

pub fn maybe_ipv6_addresses( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> SpotInstanceRequestArgsBuilder<SetIpv6Addresses<S>>
where S::Ipv6Addresses: IsUnset,

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

Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface

source

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

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

Key name of the Key Pair to use for the instance; which can be managed using the aws.ec2.KeyPair resource.

source

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

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

Key name of the Key Pair to use for the instance; which can be managed using the aws.ec2.KeyPair resource.

source

pub fn launch_group( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetLaunchGroup<S>>
where S::LaunchGroup: IsUnset,

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

A launch group is a group of spot instances that launch together and terminate together. If left empty instances are launched and terminated individually.

source

pub fn maybe_launch_group( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetLaunchGroup<S>>
where S::LaunchGroup: IsUnset,

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

A launch group is a group of spot instances that launch together and terminate together. If left empty instances are launched and terminated individually.

source

pub fn launch_template( self, value: impl Into<Output<Option<SpotInstanceRequestLaunchTemplate>>>, ) -> SpotInstanceRequestArgsBuilder<SetLaunchTemplate<S>>
where S::LaunchTemplate: IsUnset,

Optional (Some / Option setters). Default:

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

Specifies a Launch Template to configure the instance. Parameters configured on this resource will override the corresponding parameters in the Launch Template. See Launch Template Specification below for more details.

source

pub fn maybe_launch_template( self, value: Option<impl Into<Output<Option<SpotInstanceRequestLaunchTemplate>>>>, ) -> SpotInstanceRequestArgsBuilder<SetLaunchTemplate<S>>
where S::LaunchTemplate: IsUnset,

Optional (Some / Option setters). Default:

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

Specifies a Launch Template to configure the instance. Parameters configured on this resource will override the corresponding parameters in the Launch Template. See Launch Template Specification below for more details.

source

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

Optional (Some / Option setters). Default:

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

Maintenance and recovery options for the instance. See Maintenance Options below for more details.

source

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

Optional (Some / Option setters). Default:

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

Maintenance and recovery options for the instance. See Maintenance Options below for more details.

source

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

Optional (Some / Option setters). Default:

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

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

source

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

Optional (Some / Option setters). Default:

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

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

source

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

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

If true, the launched EC2 instance will have detailed monitoring enabled. (Available since v0.6.0)

source

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

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

If true, the launched EC2 instance will have detailed monitoring enabled. (Available since v0.6.0)

source

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

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::SpotInstanceRequestNetworkInterface>>,
> 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<SpotInstanceRequestNetworkInterface>>>>>, ) -> SpotInstanceRequestArgsBuilder<SetNetworkInterfaces<S>>
where S::NetworkInterfaces: IsUnset,

Optional (Some / Option setters). Default:

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

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

source

pub fn placement_group( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetPlacementGroup<S>>
where S::PlacementGroup: IsUnset,

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

Placement Group to start the instance in.

source

pub fn maybe_placement_group( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetPlacementGroup<S>>
where S::PlacementGroup: IsUnset,

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

Placement Group to start the instance in.

source

pub fn placement_partition_number( self, value: impl Into<Output<Option<i32>>>, ) -> SpotInstanceRequestArgsBuilder<SetPlacementPartitionNumber<S>>
where S::PlacementPartitionNumber: IsUnset,

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

Number of the partition the instance is in. Valid only if the aws.ec2.PlacementGroup resource’s strategy argument is set to "partition".

source

pub fn maybe_placement_partition_number( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> SpotInstanceRequestArgsBuilder<SetPlacementPartitionNumber<S>>
where S::PlacementPartitionNumber: IsUnset,

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

Number of the partition the instance is in. Valid only if the aws.ec2.PlacementGroup resource’s strategy argument is set to "partition".

source

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

Optional (Some / Option setters). Default:

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

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<SpotInstanceRequestPrivateDnsNameOptions>>>>, ) -> SpotInstanceRequestArgsBuilder<SetPrivateDnsNameOptions<S>>
where S::PrivateDnsNameOptions: IsUnset,

Optional (Some / Option setters). Default:

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

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 private_ip( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetPrivateIp<S>>
where S::PrivateIp: IsUnset,

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

Private IP address to associate with the instance in a VPC.

source

pub fn maybe_private_ip( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetPrivateIp<S>>
where S::PrivateIp: IsUnset,

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

Private IP address to associate with the instance in a VPC.

source

pub fn root_block_device( self, value: impl Into<Output<Option<SpotInstanceRequestRootBlockDevice>>>, ) -> SpotInstanceRequestArgsBuilder<SetRootBlockDevice<S>>
where S::RootBlockDevice: IsUnset,

Optional (Some / Option setters). Default:

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

Configuration block to customize details about the root block device of the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a list containing one object.

source

pub fn maybe_root_block_device( self, value: Option<impl Into<Output<Option<SpotInstanceRequestRootBlockDevice>>>>, ) -> SpotInstanceRequestArgsBuilder<SetRootBlockDevice<S>>
where S::RootBlockDevice: IsUnset,

Optional (Some / Option setters). Default:

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

Configuration block to customize details about the root block device of the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a list containing one object.

source

pub fn secondary_private_ips( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetSecondaryPrivateIps<S>>
where S::SecondaryPrivateIps: IsUnset,

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

List of secondary private IPv4 addresses to assign to the instance’s primary network interface (eth0) in a VPC. Can only be assigned to the primary network interface (eth0) attached at instance creation, not a pre-existing network interface i.e., referenced in a network_interface block. Refer to the Elastic network interfaces documentation to see the maximum number of private IP addresses allowed per instance type.

source

pub fn maybe_secondary_private_ips( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> SpotInstanceRequestArgsBuilder<SetSecondaryPrivateIps<S>>
where S::SecondaryPrivateIps: IsUnset,

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

List of secondary private IPv4 addresses to assign to the instance’s primary network interface (eth0) in a VPC. Can only be assigned to the primary network interface (eth0) attached at instance creation, not a pre-existing network interface i.e., referenced in a network_interface block. Refer to the Elastic network interfaces documentation to see the maximum number of private IP addresses allowed per instance type.

source

pub fn security_groups( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetSecurityGroups<S>>
where S::SecurityGroups: IsUnset,

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

List of security group names to associate with.

NOTE: If you are creating Instances in a VPC, use vpc_security_group_ids instead.

source

pub fn maybe_security_groups( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> SpotInstanceRequestArgsBuilder<SetSecurityGroups<S>>
where S::SecurityGroups: IsUnset,

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

List of security group names to associate with.

NOTE: If you are creating Instances in a VPC, use vpc_security_group_ids instead.

source

pub fn source_dest_check( self, value: impl Into<Output<Option<bool>>>, ) -> SpotInstanceRequestArgsBuilder<SetSourceDestCheck<S>>
where S::SourceDestCheck: IsUnset,

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

Controls if traffic is routed to the instance when the destination address does not match the instance. Used for NAT or VPNs. Defaults true.

source

pub fn maybe_source_dest_check( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SpotInstanceRequestArgsBuilder<SetSourceDestCheck<S>>
where S::SourceDestCheck: IsUnset,

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

Controls if traffic is routed to the instance when the destination address does not match the instance. Used for NAT or VPNs. Defaults true.

source

pub fn spot_price( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetSpotPrice<S>>
where S::SpotPrice: IsUnset,

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

The maximum price to request on the spot market.

source

pub fn maybe_spot_price( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetSpotPrice<S>>
where S::SpotPrice: IsUnset,

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

The maximum price to request on the spot market.

source

pub fn spot_type( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetSpotType<S>>
where S::SpotType: IsUnset,

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

If set to one-time, after the instance is terminated, the spot request will be closed.

source

pub fn maybe_spot_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetSpotType<S>>
where S::SpotType: IsUnset,

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

If set to one-time, after the instance is terminated, the spot request will be closed.

source

pub fn subnet_id( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetSubnetId<S>>
where S::SubnetId: IsUnset,

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

VPC Subnet ID to launch in.

source

pub fn maybe_subnet_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetSubnetId<S>>
where S::SubnetId: IsUnset,

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

VPC Subnet ID to launch in.

source

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

Optional (Some / Option setters). Default:

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

Map of tags to assign to the resource. Note that these tags apply to the instance and not block storage devices. 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>>>>>, ) -> SpotInstanceRequestArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

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

Map of tags to assign to the resource. Note that these tags apply to the instance and not block storage devices. 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 tenancy( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetTenancy<S>>
where S::Tenancy: IsUnset,

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

Tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the import-instance command. Valid values are default, dedicated, and host.

source

pub fn maybe_tenancy( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetTenancy<S>>
where S::Tenancy: IsUnset,

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

Tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the import-instance command. Valid values are default, dedicated, and host.

source

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

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

User data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead. Updates to this field will trigger a stop/start of the EC2 instance by default. If the user_data_replace_on_change is set then updates to this field will trigger a destroy and recreate of the EC2 instance.

source

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

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

User data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead. Updates to this field will trigger a stop/start of the EC2 instance by default. If the user_data_replace_on_change is set then updates to this field will trigger a destroy and recreate of the EC2 instance.

source

pub fn user_data_base64( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetUserDataBase64<S>>
where S::UserDataBase64: IsUnset,

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

Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption. Updates to this field will trigger a stop/start of the EC2 instance by default. If the user_data_replace_on_change is set then updates to this field will trigger a destroy and recreate of the EC2 instance.

source

pub fn maybe_user_data_base64( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetUserDataBase64<S>>
where S::UserDataBase64: IsUnset,

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

Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption. Updates to this field will trigger a stop/start of the EC2 instance by default. If the user_data_replace_on_change is set then updates to this field will trigger a destroy and recreate of the EC2 instance.

source

pub fn user_data_replace_on_change( self, value: impl Into<Output<Option<bool>>>, ) -> SpotInstanceRequestArgsBuilder<SetUserDataReplaceOnChange<S>>
where S::UserDataReplaceOnChange: IsUnset,

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

When used in combination with user_data or user_data_base64 will trigger a destroy and recreate of the EC2 instance when set to true. Defaults to false if not set.

source

pub fn maybe_user_data_replace_on_change( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SpotInstanceRequestArgsBuilder<SetUserDataReplaceOnChange<S>>
where S::UserDataReplaceOnChange: IsUnset,

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

When used in combination with user_data or user_data_base64 will trigger a destroy and recreate of the EC2 instance when set to true. Defaults to false if not set.

source

pub fn valid_from( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetValidFrom<S>>
where S::ValidFrom: IsUnset,

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

The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

source

pub fn maybe_valid_from( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetValidFrom<S>>
where S::ValidFrom: IsUnset,

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

The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

source

pub fn valid_until( self, value: impl Into<Output<Option<String>>>, ) -> SpotInstanceRequestArgsBuilder<SetValidUntil<S>>
where S::ValidUntil: IsUnset,

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

The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. The default end date is 7 days from the current date.

source

pub fn maybe_valid_until( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetValidUntil<S>>
where S::ValidUntil: IsUnset,

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

The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. The default end date is 7 days from the current date.

source

pub fn volume_tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> SpotInstanceRequestArgsBuilder<SetVolumeTags<S>>
where S::VolumeTags: IsUnset,

Optional (Some / Option setters). Default:

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

Map of tags to assign, at instance-creation time, to root and EBS volumes.

NOTE: Do not use volume_tags if you plan to manage block device tags outside the aws.ec2.Instance configuration, such as using tags in an aws.ebs.Volume resource attached via aws.ec2.VolumeAttachment. Doing so will result in resource cycling and inconsistent behavior.

source

pub fn maybe_volume_tags( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> SpotInstanceRequestArgsBuilder<SetVolumeTags<S>>
where S::VolumeTags: IsUnset,

Optional (Some / Option setters). Default:

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

Map of tags to assign, at instance-creation time, to root and EBS volumes.

NOTE: Do not use volume_tags if you plan to manage block device tags outside the aws.ec2.Instance configuration, such as using tags in an aws.ebs.Volume resource attached via aws.ec2.VolumeAttachment. Doing so will result in resource cycling and inconsistent behavior.

source

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

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

List of security group IDs to associate with.

source

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

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

List of security group IDs to associate with.

source

pub fn wait_for_fulfillment( self, value: impl Into<Output<Option<bool>>>, ) -> SpotInstanceRequestArgsBuilder<SetWaitForFulfillment<S>>
where S::WaitForFulfillment: IsUnset,

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

If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.

source

pub fn maybe_wait_for_fulfillment( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SpotInstanceRequestArgsBuilder<SetWaitForFulfillment<S>>
where S::WaitForFulfillment: IsUnset,

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

If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.

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.