Struct rusoto_ec2::SpotMarketOptions
source · [−]pub struct SpotMarketOptions {
pub block_duration_minutes: Option<i64>,
pub instance_interruption_behavior: Option<String>,
pub max_price: Option<String>,
pub spot_instance_type: Option<String>,
pub valid_until: Option<String>,
}
Expand description
The options for Spot Instances.
Fields
block_duration_minutes: Option<i64>
The required duration for the Spot Instances (also known as Spot blocks), 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.
You can't specify an Availability Zone group or a launch group if you specify a duration.
New accounts or accounts with no previous billing history with AWS are not eligible for Spot Instances with a defined duration (also known as Spot blocks).
instance_interruption_behavior: Option<String>
The behavior when a Spot Instance is interrupted. The default is terminate
.
max_price: Option<String>
The maximum hourly price you're willing to pay for the Spot Instances. The default is the On-Demand price.
spot_instance_type: Option<String>
The Spot Instance request type. For RunInstances, persistent Spot Instance requests are only supported when the instance interruption behavior is either hibernate
or stop
.
valid_until: Option<String>
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
ValidUntil
date and time is reached. Otherwise, the request remains active until you cancel it. -
For a one-time request,
ValidUntil
is not supported. The request remains active until all instances launch or you cancel the request.
Trait Implementations
sourceimpl Clone for SpotMarketOptions
impl Clone for SpotMarketOptions
sourcefn clone(&self) -> SpotMarketOptions
fn clone(&self) -> SpotMarketOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SpotMarketOptions
impl Debug for SpotMarketOptions
sourceimpl Default for SpotMarketOptions
impl Default for SpotMarketOptions
sourcefn default() -> SpotMarketOptions
fn default() -> SpotMarketOptions
Returns the “default value” for a type. Read more
sourceimpl PartialEq<SpotMarketOptions> for SpotMarketOptions
impl PartialEq<SpotMarketOptions> for SpotMarketOptions
sourcefn eq(&self, other: &SpotMarketOptions) -> bool
fn eq(&self, other: &SpotMarketOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SpotMarketOptions) -> bool
fn ne(&self, other: &SpotMarketOptions) -> bool
This method tests for !=
.
impl StructuralPartialEq for SpotMarketOptions
Auto Trait Implementations
impl RefUnwindSafe for SpotMarketOptions
impl Send for SpotMarketOptions
impl Sync for SpotMarketOptions
impl Unpin for SpotMarketOptions
impl UnwindSafe for SpotMarketOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more