Struct aws_sdk_ec2::model::SpotInstanceRequest
source · #[non_exhaustive]pub struct SpotInstanceRequest { /* private fields */ }
Expand description
Describes a Spot Instance request.
Implementations§
source§impl SpotInstanceRequest
impl SpotInstanceRequest
sourcepub fn actual_block_hourly_price(&self) -> Option<&str>
pub fn actual_block_hourly_price(&self) -> Option<&str>
Deprecated.
sourcepub fn availability_zone_group(&self) -> Option<&str>
pub fn availability_zone_group(&self) -> Option<&str>
The Availability Zone group. If you specify the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone.
sourcepub fn block_duration_minutes(&self) -> Option<i32>
pub fn block_duration_minutes(&self) -> Option<i32>
Deprecated.
sourcepub fn create_time(&self) -> Option<&DateTime>
pub fn create_time(&self) -> Option<&DateTime>
The date and time when the Spot Instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
sourcepub fn fault(&self) -> Option<&SpotInstanceStateFault>
pub fn fault(&self) -> Option<&SpotInstanceStateFault>
The fault codes for the Spot Instance request, if any.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The instance ID, if an instance has been launched to fulfill the Spot Instance request.
sourcepub fn launch_group(&self) -> Option<&str>
pub fn launch_group(&self) -> Option<&str>
The instance launch group. Launch groups are Spot Instances that launch together and terminate together.
sourcepub fn launch_specification(&self) -> Option<&LaunchSpecification>
pub fn launch_specification(&self) -> Option<&LaunchSpecification>
Additional information for launching instances.
sourcepub fn launched_availability_zone(&self) -> Option<&str>
pub fn launched_availability_zone(&self) -> Option<&str>
The Availability Zone in which the request is launched.
sourcepub fn product_description(&self) -> Option<&RiProductDescription>
pub fn product_description(&self) -> Option<&RiProductDescription>
The product description associated with the Spot Instance.
sourcepub fn spot_instance_request_id(&self) -> Option<&str>
pub fn spot_instance_request_id(&self) -> Option<&str>
The ID of the Spot Instance request.
sourcepub fn spot_price(&self) -> Option<&str>
pub fn spot_price(&self) -> Option<&str>
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
sourcepub fn state(&self) -> Option<&SpotInstanceState>
pub fn state(&self) -> Option<&SpotInstanceState>
The state of the Spot Instance request. Spot request status information helps track your Spot Instance requests. For more information, see Spot request status in the Amazon EC2 User Guide for Linux Instances.
sourcepub fn status(&self) -> Option<&SpotInstanceStatus>
pub fn status(&self) -> Option<&SpotInstanceStatus>
The status code and status message describing the Spot Instance request.
Any tags assigned to the resource.
sourcepub fn type(&self) -> Option<&SpotInstanceType>
pub fn type(&self) -> Option<&SpotInstanceType>
The Spot Instance request type.
sourcepub fn valid_from(&self) -> Option<&DateTime>
pub fn valid_from(&self) -> Option<&DateTime>
The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The request becomes active at this date and time.
sourcepub fn valid_until(&self) -> Option<&DateTime>
pub fn valid_until(&self) -> Option<&DateTime>
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.
sourcepub fn instance_interruption_behavior(
&self
) -> Option<&InstanceInterruptionBehavior>
pub fn instance_interruption_behavior(
&self
) -> Option<&InstanceInterruptionBehavior>
The behavior when a Spot Instance is interrupted.
source§impl SpotInstanceRequest
impl SpotInstanceRequest
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SpotInstanceRequest
.
Trait Implementations§
source§impl Clone for SpotInstanceRequest
impl Clone for SpotInstanceRequest
source§fn clone(&self) -> SpotInstanceRequest
fn clone(&self) -> SpotInstanceRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SpotInstanceRequest
impl Debug for SpotInstanceRequest
source§impl PartialEq<SpotInstanceRequest> for SpotInstanceRequest
impl PartialEq<SpotInstanceRequest> for SpotInstanceRequest
source§fn eq(&self, other: &SpotInstanceRequest) -> bool
fn eq(&self, other: &SpotInstanceRequest) -> bool
self
and other
values to be equal, and is used
by ==
.