Struct aws_sdk_ec2::model::spot_market_options::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for SpotMarketOptions
Implementations
The maximum hourly price you're willing to pay for the Spot Instances. The default is the On-Demand price.
The maximum hourly price you're willing to pay for the Spot Instances. The default is the On-Demand price.
The Spot Instance request type. For RunInstances, persistent Spot Instance requests are only supported when the instance interruption behavior is either hibernate or stop.
The Spot Instance request type. For RunInstances, persistent Spot Instance requests are only supported when the instance interruption behavior is either hibernate or stop.
Deprecated.
Deprecated.
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.
-
For a persistent request, the request remains active until the
ValidUntildate and time is reached. Otherwise, the request remains active until you cancel it. -
For a one-time request,
ValidUntilis not supported. The request remains active until all instances launch or you cancel the request.
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.
-
For a persistent request, the request remains active until the
ValidUntildate and time is reached. Otherwise, the request remains active until you cancel it. -
For a one-time request,
ValidUntilis not supported. The request remains active until all instances launch or you cancel the request.
The behavior when a Spot Instance is interrupted. The default is terminate.
pub fn set_instance_interruption_behavior(
self,
input: Option<InstanceInterruptionBehavior>
) -> Self
pub fn set_instance_interruption_behavior(
self,
input: Option<InstanceInterruptionBehavior>
) -> Self
The behavior when a Spot Instance is interrupted. The default is terminate.
Consumes the builder and constructs a SpotMarketOptions
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more
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