1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::describe_spot_instance_requests::_describe_spot_instance_requests_output::DescribeSpotInstanceRequestsOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::describe_spot_instance_requests::_describe_spot_instance_requests_input::DescribeSpotInstanceRequestsInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::describe_spot_instance_requests::_describe_spot_instance_requests_output::DescribeSpotInstanceRequestsOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::describe_spot_instance_requests::builders::DescribeSpotInstanceRequestsInputBuilder {
|
7 7 | /// Sends a request with this input using the given client.
|
8 8 | pub async fn send_with(
|
9 9 | self,
|
10 10 | client: &crate::Client,
|
11 11 | ) -> ::std::result::Result<
|
12 12 | crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.describe_spot_instance_requests();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `DescribeSpotInstanceRequests`.
|
24 24 | ///
|
25 25 | /// <p>Describes the specified Spot Instance requests.</p>
|
26 26 | /// <p>You can use <code>DescribeSpotInstanceRequests</code> to find a running Spot Instance by examining the response. If the status of the Spot Instance is <code>fulfilled</code>, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances">DescribeInstances</a> with a filter to look for instances where the instance lifecycle is <code>spot</code>.</p>
|
27 27 | /// <p>We recommend that you set <code>MaxResults</code> to a value between 5 and 1000 to limit the number of items returned. This paginates the output, which makes the list more manageable and returns the items faster. If the list of items exceeds your <code>MaxResults</code> value, then that number of items is returned along with a <code>NextToken</code> value that can be passed to a subsequent <code>DescribeSpotInstanceRequests</code> request to retrieve the remaining items.</p>
|
28 28 | /// <p>Spot Instance requests are deleted four hours after they are canceled and their instances are terminated.</p>
|
29 29 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
30 30 | pub struct DescribeSpotInstanceRequestsFluentBuilder {
|
31 31 | handle: ::std::sync::Arc<crate::client::Handle>,
|
32 32 | inner: crate::operation::describe_spot_instance_requests::builders::DescribeSpotInstanceRequestsInputBuilder,
|
33 33 | config_override: ::std::option::Option<crate::config::Builder>,
|
34 34 | }
|
35 35 | impl
|