Struct aws_sdk_ec2::input::RequestSpotInstancesInput[][src]

#[non_exhaustive]
pub struct RequestSpotInstancesInput {
Show 13 fields pub availability_zone_group: Option<String>, pub block_duration_minutes: Option<i32>, pub client_token: Option<String>, pub dry_run: Option<bool>, pub instance_count: Option<i32>, pub launch_group: Option<String>, pub launch_specification: Option<RequestSpotLaunchSpecification>, pub spot_price: Option<String>, pub type: Option<SpotInstanceType>, pub valid_from: Option<Instant>, pub valid_until: Option<Instant>, pub tag_specifications: Option<Vec<TagSpecification>>, pub instance_interruption_behavior: Option<InstanceInterruptionBehavior>,
}
Expand description

Contains the parameters for RequestSpotInstances.

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
availability_zone_group: Option<String>

The user-specified name for a logical grouping of requests.

When you specify an Availability Zone group in a Spot Instance request, all Spot Instances in the request are launched in the same Availability Zone. Instance proximity is maintained with this parameter, but the choice of Availability Zone is not. The group applies only to requests for Spot Instances of the same instance type. Any additional Spot Instance requests that are specified with the same Availability Zone group name are launched in that same Availability Zone, as long as at least one instance from the group is still active.

If there is no active instance running in the Availability Zone group that you specify for a new Spot Instance request (all instances are terminated, the request is expired, or the maximum price you specified falls below current Spot price), then Amazon EC2 launches the instance in any Availability Zone where the constraint can be met. Consequently, the subsequent set of Spot Instances could be placed in a different zone from the original request, even if you specified the same Availability Zone group.

Default: Instances are launched in any available Availability Zone.

block_duration_minutes: Option<i32>

Deprecated.

client_token: Option<String>

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon EC2 User Guide for Linux Instances.

dry_run: Option<bool>

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

instance_count: Option<i32>

The maximum number of Spot Instances to launch.

Default: 1

launch_group: Option<String>

The instance launch group. Launch groups are Spot Instances that launch together and terminate together.

Default: Instances are launched and terminated individually

launch_specification: Option<RequestSpotLaunchSpecification>

The launch specification.

spot_price: Option<String>

The maximum price per hour that you are willing to pay for a Spot Instance. The default is the On-Demand price.

type: Option<SpotInstanceType>

The Spot Instance request type.

Default: one-time

valid_from: Option<Instant>

The start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled.

The specified start date and time cannot be equal to the current date and time. You must specify a start date and time that occurs after the current date and time.

valid_until: Option<Instant>

The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ).

  • For a persistent request, the request remains active until the ValidUntil date and time is reached. Otherwise, the request remains active until you cancel it.

  • For a one-time request, the request remains active until all instances launch, the request is canceled, or the ValidUntil date and time is reached. By default, the request is valid for 7 days from the date the request was created.

tag_specifications: Option<Vec<TagSpecification>>

The key-value pair for tagging the Spot Instance request on creation. The value for ResourceType must be spot-instances-request, otherwise the Spot Instance request fails. To tag the Spot Instance request after it has been created, see CreateTags.

instance_interruption_behavior: Option<InstanceInterruptionBehavior>

The behavior when a Spot Instance is interrupted. The default is terminate.

Implementations

Consumes the builder and constructs an Operation<RequestSpotInstances>

Creates a new builder-style object to manufacture RequestSpotInstancesInput

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more