pub struct DescribeSpotInstanceRequestsRequest {
pub dry_run: Option<bool>,
pub filters: Option<Vec<Filter>>,
pub max_results: Option<i64>,
pub next_token: Option<String>,
pub spot_instance_request_ids: Option<Vec<String>>,
}
Expand description
Contains the parameters for DescribeSpotInstanceRequests.
Fields
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
.
filters: Option<Vec<Filter>>
One or more filters.
-
availability-zone-group
- The Availability Zone group. -
create-time
- The time stamp when the Spot Instance request was created. -
fault-code
- The fault code related to the request. -
fault-message
- The fault message related to the request. -
instance-id
- The ID of the instance that fulfilled the request. -
launch-group
- The Spot Instance launch group. -
launch.block-device-mapping.delete-on-termination
- Indicates whether the EBS volume is deleted on instance termination. -
launch.block-device-mapping.device-name
- The device name for the volume in the block device mapping (for example,/dev/sdh
orxvdh
). -
launch.block-device-mapping.snapshot-id
- The ID of the snapshot for the EBS volume. -
launch.block-device-mapping.volume-size
- The size of the EBS volume, in GiB. -
launch.block-device-mapping.volume-type
- The type of EBS volume:gp2
for General Purpose SSD,io1
orio2
for Provisioned IOPS SSD,st1
for Throughput Optimized HDD,sc1
for Cold HDD, orstandard
for Magnetic. -
launch.group-id
- The ID of the security group for the instance. -
launch.group-name
- The name of the security group for the instance. -
launch.image-id
- The ID of the AMI. -
launch.instance-type
- The type of instance (for example,m3.medium
). -
launch.kernel-id
- The kernel ID. -
launch.key-name
- The name of the key pair the instance launched with. -
launch.monitoring-enabled
- Whether detailed monitoring is enabled for the Spot Instance. -
launch.ramdisk-id
- The RAM disk ID. -
launched-availability-zone
- The Availability Zone in which the request is launched. -
network-interface.addresses.primary
- Indicates whether the IP address is the primary private IP address. -
network-interface.delete-on-termination
- Indicates whether the network interface is deleted when the instance is terminated. -
network-interface.description
- A description of the network interface. -
network-interface.device-index
- The index of the device for the network interface attachment on the instance. -
network-interface.group-id
- The ID of the security group associated with the network interface. -
network-interface.network-interface-id
- The ID of the network interface. -
network-interface.private-ip-address
- The primary private IP address of the network interface. -
network-interface.subnet-id
- The ID of the subnet for the instance. -
product-description
- The product description associated with the instance (Linux/UNIX
|Windows
). -
spot-instance-request-id
- The Spot Instance request ID. -
spot-price
- The maximum hourly price for any Spot Instance launched to fulfill the request. -
state
- The state of the Spot Instance request (open
|active
|closed
|cancelled
|failed
). Spot request status information can help you track your Amazon EC2 Spot Instance requests. For more information, see Spot request status in the Amazon EC2 User Guide for Linux Instances. -
status-code
- The short code describing the most recent evaluation of your Spot Instance request. -
status-message
- The message explaining the status of the Spot Instance request. -
tag
:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the keyOwner
and the valueTeamA
, specifytag:Owner
for the filter name andTeamA
for the filter value. -
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value. -
type
- The type of Spot Instance request (one-time
|persistent
). -
valid-from
- The start date of the request. -
valid-until
- The end date of the request.
max_results: Option<i64>
The maximum number of results to return in a single call. Specify a value between 5 and 1000. To retrieve the remaining results, make another call with the returned NextToken
value.
next_token: Option<String>
The token to request the next set of results. This value is null
when there are no more results to return.
spot_instance_request_ids: Option<Vec<String>>
One or more Spot Instance request IDs.
Trait Implementations
sourceimpl Clone for DescribeSpotInstanceRequestsRequest
impl Clone for DescribeSpotInstanceRequestsRequest
sourcefn clone(&self) -> DescribeSpotInstanceRequestsRequest
fn clone(&self) -> DescribeSpotInstanceRequestsRequest
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 Default for DescribeSpotInstanceRequestsRequest
impl Default for DescribeSpotInstanceRequestsRequest
sourcefn default() -> DescribeSpotInstanceRequestsRequest
fn default() -> DescribeSpotInstanceRequestsRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<DescribeSpotInstanceRequestsRequest> for DescribeSpotInstanceRequestsRequest
impl PartialEq<DescribeSpotInstanceRequestsRequest> for DescribeSpotInstanceRequestsRequest
sourcefn eq(&self, other: &DescribeSpotInstanceRequestsRequest) -> bool
fn eq(&self, other: &DescribeSpotInstanceRequestsRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DescribeSpotInstanceRequestsRequest) -> bool
fn ne(&self, other: &DescribeSpotInstanceRequestsRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for DescribeSpotInstanceRequestsRequest
Auto Trait Implementations
impl RefUnwindSafe for DescribeSpotInstanceRequestsRequest
impl Send for DescribeSpotInstanceRequestsRequest
impl Sync for DescribeSpotInstanceRequestsRequest
impl Unpin for DescribeSpotInstanceRequestsRequest
impl UnwindSafe for DescribeSpotInstanceRequestsRequest
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