[−][src]Struct rusoto_ec2::SpotMarketOptions
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 InstanceInterruptionBehavior is set to 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
impl Clone for SpotMarketOptions
[src]
pub fn clone(&self) -> SpotMarketOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SpotMarketOptions
[src]
impl Default for SpotMarketOptions
[src]
pub fn default() -> SpotMarketOptions
[src]
impl PartialEq<SpotMarketOptions> for SpotMarketOptions
[src]
pub fn eq(&self, other: &SpotMarketOptions) -> bool
[src]
pub fn ne(&self, other: &SpotMarketOptions) -> bool
[src]
impl StructuralPartialEq for SpotMarketOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for SpotMarketOptions
[src]
impl Send for SpotMarketOptions
[src]
impl Sync for SpotMarketOptions
[src]
impl Unpin for SpotMarketOptions
[src]
impl UnwindSafe for SpotMarketOptions
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,