pulumi_wasm_providers_aws_mini::ec2::spot_fleet_request

Struct SpotFleetRequestArgs

source
pub struct SpotFleetRequestArgs {
Show 25 fields pub allocation_strategy: Output<Option<String>>, pub context: Output<Option<String>>, pub excess_capacity_termination_policy: Output<Option<String>>, pub fleet_type: Output<Option<String>>, pub iam_fleet_role: Output<String>, pub instance_interruption_behaviour: Output<Option<String>>, pub instance_pools_to_use_count: Output<Option<i32>>, pub launch_specifications: Output<Option<Vec<SpotFleetRequestLaunchSpecification>>>, pub launch_template_configs: Output<Option<Vec<SpotFleetRequestLaunchTemplateConfig>>>, pub load_balancers: Output<Option<Vec<String>>>, pub on_demand_allocation_strategy: Output<Option<String>>, pub on_demand_max_total_price: Output<Option<String>>, pub on_demand_target_capacity: Output<Option<i32>>, pub replace_unhealthy_instances: Output<Option<bool>>, pub spot_maintenance_strategies: Output<Option<SpotFleetRequestSpotMaintenanceStrategies>>, pub spot_price: Output<Option<String>>, pub tags: Output<Option<HashMap<String, String>>>, pub target_capacity: Output<i32>, pub target_capacity_unit_type: Output<Option<String>>, pub target_group_arns: Output<Option<Vec<String>>>, pub terminate_instances_on_delete: Output<Option<String>>, pub terminate_instances_with_expiration: Output<Option<bool>>, pub valid_from: Output<Option<String>>, pub valid_until: Output<Option<String>>, pub wait_for_fulfillment: Output<Option<bool>>,
}

Fields§

§allocation_strategy: Output<Option<String>>

Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. Valid values: lowestPrice, diversified, capacityOptimized, capacityOptimizedPrioritized, and priceCapacityOptimized. The default is lowestPrice.

§context: Output<Option<String>>

Reserved.

§excess_capacity_termination_policy: Output<Option<String>>

Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

§fleet_type: Output<Option<String>>

The type of fleet request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. Default is maintain.

§iam_fleet_role: Output<String>

Grants the Spot fleet permission to terminate Spot instances on your behalf when you cancel its Spot fleet request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set terminateInstancesWithExpiration.

§instance_interruption_behaviour: Output<Option<String>>

Indicates whether a Spot instance stops or terminates when it is interrupted. Default is terminate.

§instance_pools_to_use_count: Output<Option<i32>>

The number of Spot pools across which to allocate your target Spot capacity. Valid only when allocation_strategy is set to lowestPrice. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

§launch_specifications: Output<Option<Vec<SpotFleetRequestLaunchSpecification>>>

Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required.

Note: This takes in similar but not identical inputs as aws.ec2.Instance. There are limitations on what you can specify. See the list of officially supported inputs in the reference documentation. Any normal aws.ec2.Instance parameter that corresponds to those inputs may be used and it have a additional parameter iam_instance_profile_arn takes aws.iam.InstanceProfile attribute arn as input.

§launch_template_configs: Output<Option<Vec<SpotFleetRequestLaunchTemplateConfig>>>

Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required.

§load_balancers: Output<Option<Vec<String>>>

A list of elastic load balancer names to add to the Spot fleet.

§on_demand_allocation_strategy: Output<Option<String>>

The order of the launch template overrides to use in fulfilling On-Demand capacity. the possible values are: lowestPrice and prioritized. the default is lowestPrice.

§on_demand_max_total_price: Output<Option<String>>

The maximum amount per hour for On-Demand Instances that you’re willing to pay. When the maximum amount you’re willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.

§on_demand_target_capacity: Output<Option<i32>>

The number of On-Demand units to request. If the request type is maintain, you can specify a target capacity of 0 and add capacity later.

§replace_unhealthy_instances: Output<Option<bool>>

Indicates whether Spot fleet should replace unhealthy instances. Default false.

§spot_maintenance_strategies: Output<Option<SpotFleetRequestSpotMaintenanceStrategies>>

Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.

§spot_price: Output<Option<String>>

The maximum bid price per unit hour.

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

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

§target_capacity: Output<i32>

The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O.

§target_capacity_unit_type: Output<Option<String>>

The unit for the target capacity. This can only be done with instance_requirements defined

§target_group_arns: Output<Option<Vec<String>>>

A list of aws.alb.TargetGroup ARNs, for use with Application Load Balancing.

§terminate_instances_on_delete: Output<Option<String>>

Indicates whether running Spot instances should be terminated when the resource is deleted (and the Spot fleet request cancelled). If no value is specified, the value of the terminate_instances_with_expiration argument is used.

§terminate_instances_with_expiration: Output<Option<bool>>

Indicates whether running Spot instances should be terminated when the Spot fleet request expires.

§valid_from: Output<Option<String>>

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.

§valid_until: Output<Option<String>>

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.

§wait_for_fulfillment: Output<Option<bool>>

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.

Implementations§

source§

impl SpotFleetRequestArgs

source

pub fn builder() -> SpotFleetRequestArgsBuilder

Create an instance of SpotFleetRequestArgs using the builder syntax

Trait Implementations§

source§

impl Clone for SpotFleetRequestArgs

source§

fn clone(&self) -> SpotFleetRequestArgs

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.