aws_sdk_ec2/waiters/spot_instance_request_fulfilled.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3///
4/// Fluent builder for the `spot_instance_request_fulfilled` waiter.
5///
6/// This builder is intended to be used similar to the other fluent builders for
7/// normal operations on the client. However, instead of a `send` method, it has
8/// a `wait` method that takes a maximum amount of time to wait.
9///
10/// Construct this fluent builder using the client by importing the
11/// [`Waiters`](crate::client::Waiters) trait and calling the methods
12/// prefixed with `wait_until`.
13///
14#[derive(::std::clone::Clone, ::std::fmt::Debug)]
15pub struct SpotInstanceRequestFulfilledFluentBuilder {
16 handle: ::std::sync::Arc<crate::client::Handle>,
17 inner: crate::operation::describe_spot_instance_requests::builders::DescribeSpotInstanceRequestsInputBuilder,
18}
19impl SpotInstanceRequestFulfilledFluentBuilder {
20 /// Creates a new `SpotInstanceRequestFulfilledFluentBuilder`.
21 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
22 Self {
23 handle,
24 inner: ::std::default::Default::default(),
25 }
26 }
27 /// Access the DescribeSpotInstanceRequests as a reference.
28 pub fn as_input(&self) -> &crate::operation::describe_spot_instance_requests::builders::DescribeSpotInstanceRequestsInputBuilder {
29 &self.inner
30 }
31 /// Wait for `spot_instance_request_fulfilled`
32 pub async fn wait(
33 self,
34 max_wait: ::std::time::Duration,
35 ) -> ::std::result::Result<
36 crate::waiters::spot_instance_request_fulfilled::SpotInstanceRequestFulfilledFinalPoll,
37 crate::waiters::spot_instance_request_fulfilled::WaitUntilSpotInstanceRequestFulfilledError,
38 > {
39 let input = self
40 .inner
41 .build()
42 .map_err(::aws_smithy_runtime_api::client::waiters::error::WaiterError::construction_failure)?;
43 let runtime_plugins = crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequests::operation_runtime_plugins(
44 self.handle.runtime_plugins.clone(),
45 &self.handle.conf,
46 ::std::option::Option::None,
47 )
48 .with_operation_plugin(crate::sdk_feature_tracker::waiter::WaiterFeatureTrackerRuntimePlugin::new());
49 let mut cfg = ::aws_smithy_types::config_bag::ConfigBag::base();
50 let runtime_components_builder = runtime_plugins
51 .apply_client_configuration(&mut cfg)
52 .map_err(::aws_smithy_runtime_api::client::waiters::error::WaiterError::construction_failure)?;
53 let time_components = runtime_components_builder.into_time_components();
54 let sleep_impl = time_components.sleep_impl().expect("a sleep impl is required by waiters");
55 let time_source = time_components.time_source().expect("a time source is required by waiters");
56
57 let acceptor = move |result: ::std::result::Result<
58 &crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsOutput,
59 &crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
60 >| {
61 // Matches: {"output":{"path":"SpotInstanceRequests[].Status.Code","expected":"fulfilled","comparator":"allStringEquals"}}
62 if crate::waiters::matchers::match_describe_spot_instance_requests_c2c04d9a4ae5d9629(result) {
63 return ::aws_smithy_runtime::client::waiters::AcceptorState::Success;
64 }
65 // Matches: {"output":{"path":"SpotInstanceRequests[].Status.Code","expected":"request-canceled-and-instance-running","comparator":"allStringEquals"}}
66 if crate::waiters::matchers::match_describe_spot_instance_requests_6b6b51b22ad1d72a8(result) {
67 return ::aws_smithy_runtime::client::waiters::AcceptorState::Success;
68 }
69 // Matches: {"output":{"path":"SpotInstanceRequests[].Status.Code","expected":"schedule-expired","comparator":"anyStringEquals"}}
70 if crate::waiters::matchers::match_describe_spot_instance_requests_809a1f65cfd031d99(result) {
71 return ::aws_smithy_runtime::client::waiters::AcceptorState::Failure;
72 }
73 // Matches: {"output":{"path":"SpotInstanceRequests[].Status.Code","expected":"canceled-before-fulfillment","comparator":"anyStringEquals"}}
74 if crate::waiters::matchers::match_describe_spot_instance_requests_9b4f6f29b66bf320d(result) {
75 return ::aws_smithy_runtime::client::waiters::AcceptorState::Failure;
76 }
77 // Matches: {"output":{"path":"SpotInstanceRequests[].Status.Code","expected":"bad-parameters","comparator":"anyStringEquals"}}
78 if crate::waiters::matchers::match_describe_spot_instance_requests_329c85a5dd6416fdd(result) {
79 return ::aws_smithy_runtime::client::waiters::AcceptorState::Failure;
80 }
81 // Matches: {"output":{"path":"SpotInstanceRequests[].Status.Code","expected":"system-error","comparator":"anyStringEquals"}}
82 if crate::waiters::matchers::match_describe_spot_instance_requests_50622be41ac6539ee(result) {
83 return ::aws_smithy_runtime::client::waiters::AcceptorState::Failure;
84 }
85 // Matches: {"errorType":"InvalidSpotInstanceRequestID.NotFound"}
86 if crate::waiters::matchers::match_describe_spot_instance_requests_6685a381c4413cedb(result) {
87 return ::aws_smithy_runtime::client::waiters::AcceptorState::Retry;
88 }
89 ::aws_smithy_runtime::client::waiters::AcceptorState::NoAcceptorsMatched
90 };
91 let operation = move || {
92 let input = input.clone();
93 let runtime_plugins = runtime_plugins.clone();
94 async move { crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequests::orchestrate(&runtime_plugins, input).await }
95 };
96 let orchestrator = ::aws_smithy_runtime::client::waiters::WaiterOrchestrator::builder()
97 .min_delay(::std::time::Duration::from_secs(15))
98 .max_delay(::std::time::Duration::from_secs(120))
99 .max_wait(max_wait)
100 .time_source(time_source)
101 .sleep_impl(sleep_impl)
102 .acceptor(acceptor)
103 .operation(operation)
104 .build();
105 ::aws_smithy_runtime::client::waiters::attach_waiter_tracing_span(orchestrator.orchestrate()).await
106 }
107 /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
108 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
109 self.inner = self.inner.next_token(input.into());
110 self
111 }
112 /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
113 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
114 self.inner = self.inner.set_next_token(input);
115 self
116 }
117 /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
118 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
119 self.inner.get_next_token()
120 }
121 /// <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
122 pub fn max_results(mut self, input: i32) -> Self {
123 self.inner = self.inner.max_results(input);
124 self
125 }
126 /// <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
127 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
128 self.inner = self.inner.set_max_results(input);
129 self
130 }
131 /// <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
132 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
133 self.inner.get_max_results()
134 }
135 /// <p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
136 pub fn dry_run(mut self, input: bool) -> Self {
137 self.inner = self.inner.dry_run(input);
138 self
139 }
140 /// <p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
141 pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
142 self.inner = self.inner.set_dry_run(input);
143 self
144 }
145 /// <p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
146 pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
147 self.inner.get_dry_run()
148 }
149 ///
150 /// Appends an item to `SpotInstanceRequestIds`.
151 ///
152 /// To override the contents of this collection use [`set_spot_instance_request_ids`](Self::set_spot_instance_request_ids).
153 ///
154 /// <p>The IDs of the Spot Instance requests.</p>
155 pub fn spot_instance_request_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
156 self.inner = self.inner.spot_instance_request_ids(input.into());
157 self
158 }
159 /// <p>The IDs of the Spot Instance requests.</p>
160 pub fn set_spot_instance_request_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
161 self.inner = self.inner.set_spot_instance_request_ids(input);
162 self
163 }
164 /// <p>The IDs of the Spot Instance requests.</p>
165 pub fn get_spot_instance_request_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
166 self.inner.get_spot_instance_request_ids()
167 }
168 ///
169 /// Appends an item to `Filters`.
170 ///
171 /// To override the contents of this collection use [`set_filters`](Self::set_filters).
172 ///
173 /// <p>The filters.</p>
174 /// <ul>
175 /// <li>
176 /// <p><code>availability-zone-group</code> - The Availability Zone group.</p></li>
177 /// <li>
178 /// <p><code>create-time</code> - The time stamp when the Spot Instance request was created.</p></li>
179 /// <li>
180 /// <p><code>fault-code</code> - The fault code related to the request.</p></li>
181 /// <li>
182 /// <p><code>fault-message</code> - The fault message related to the request.</p></li>
183 /// <li>
184 /// <p><code>instance-id</code> - The ID of the instance that fulfilled the request.</p></li>
185 /// <li>
186 /// <p><code>launch-group</code> - The Spot Instance launch group.</p></li>
187 /// <li>
188 /// <p><code>launch.block-device-mapping.delete-on-termination</code> - Indicates whether the EBS volume is deleted on instance termination.</p></li>
189 /// <li>
190 /// <p><code>launch.block-device-mapping.device-name</code> - The device name for the volume in the block device mapping (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p></li>
191 /// <li>
192 /// <p><code>launch.block-device-mapping.snapshot-id</code> - The ID of the snapshot for the EBS volume.</p></li>
193 /// <li>
194 /// <p><code>launch.block-device-mapping.volume-size</code> - The size of the EBS volume, in GiB.</p></li>
195 /// <li>
196 /// <p><code>launch.block-device-mapping.volume-type</code> - The type of EBS volume: <code>gp2</code> or <code>gp3</code> for General Purpose SSD, <code>io1</code> or <code>io2</code> for Provisioned IOPS SSD, <code>st1</code> for Throughput Optimized HDD, <code>sc1</code> for Cold HDD, or <code>standard</code> for Magnetic.</p></li>
197 /// <li>
198 /// <p><code>launch.group-id</code> - The ID of the security group for the instance.</p></li>
199 /// <li>
200 /// <p><code>launch.group-name</code> - The name of the security group for the instance.</p></li>
201 /// <li>
202 /// <p><code>launch.image-id</code> - The ID of the AMI.</p></li>
203 /// <li>
204 /// <p><code>launch.instance-type</code> - The type of instance (for example, <code>m3.medium</code>).</p></li>
205 /// <li>
206 /// <p><code>launch.kernel-id</code> - The kernel ID.</p></li>
207 /// <li>
208 /// <p><code>launch.key-name</code> - The name of the key pair the instance launched with.</p></li>
209 /// <li>
210 /// <p><code>launch.monitoring-enabled</code> - Whether detailed monitoring is enabled for the Spot Instance.</p></li>
211 /// <li>
212 /// <p><code>launch.ramdisk-id</code> - The RAM disk ID.</p></li>
213 /// <li>
214 /// <p><code>launched-availability-zone</code> - The Availability Zone in which the request is launched.</p></li>
215 /// <li>
216 /// <p><code>network-interface.addresses.primary</code> - Indicates whether the IP address is the primary private IP address.</p></li>
217 /// <li>
218 /// <p><code>network-interface.delete-on-termination</code> - Indicates whether the network interface is deleted when the instance is terminated.</p></li>
219 /// <li>
220 /// <p><code>network-interface.description</code> - A description of the network interface.</p></li>
221 /// <li>
222 /// <p><code>network-interface.device-index</code> - The index of the device for the network interface attachment on the instance.</p></li>
223 /// <li>
224 /// <p><code>network-interface.group-id</code> - The ID of the security group associated with the network interface.</p></li>
225 /// <li>
226 /// <p><code>network-interface.network-interface-id</code> - The ID of the network interface.</p></li>
227 /// <li>
228 /// <p><code>network-interface.private-ip-address</code> - The primary private IP address of the network interface.</p></li>
229 /// <li>
230 /// <p><code>network-interface.subnet-id</code> - The ID of the subnet for the instance.</p></li>
231 /// <li>
232 /// <p><code>product-description</code> - The product description associated with the instance (<code>Linux/UNIX</code> | <code>Windows</code>).</p></li>
233 /// <li>
234 /// <p><code>spot-instance-request-id</code> - The Spot Instance request ID.</p></li>
235 /// <li>
236 /// <p><code>spot-price</code> - The maximum hourly price for any Spot Instance launched to fulfill the request.</p></li>
237 /// <li>
238 /// <p><code>state</code> - The state of the Spot Instance request (<code>open</code> | <code>active</code> | <code>closed</code> | <code>cancelled</code> | <code>failed</code>). Spot request status information can help you track your Amazon EC2 Spot Instance requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html">Spot request status</a> in the <i>Amazon EC2 User Guide</i>.</p></li>
239 /// <li>
240 /// <p><code>status-code</code> - The short code describing the most recent evaluation of your Spot Instance request.</p></li>
241 /// <li>
242 /// <p><code>status-message</code> - The message explaining the status of the Spot Instance request.</p></li>
243 /// <li>
244 /// <p><code>tag:<key></key></code> - 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 key <code>Owner</code> and the value <code>TeamA</code>, specify <code>tag:Owner</code> for the filter name and <code>TeamA</code> for the filter value.</p></li>
245 /// <li>
246 /// <p><code>tag-key</code> - 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.</p></li>
247 /// <li>
248 /// <p><code>type</code> - The type of Spot Instance request (<code>one-time</code> | <code>persistent</code>).</p></li>
249 /// <li>
250 /// <p><code>valid-from</code> - The start date of the request.</p></li>
251 /// <li>
252 /// <p><code>valid-until</code> - The end date of the request.</p></li>
253 /// </ul>
254 pub fn filters(mut self, input: crate::types::Filter) -> Self {
255 self.inner = self.inner.filters(input);
256 self
257 }
258 /// <p>The filters.</p>
259 /// <ul>
260 /// <li>
261 /// <p><code>availability-zone-group</code> - The Availability Zone group.</p></li>
262 /// <li>
263 /// <p><code>create-time</code> - The time stamp when the Spot Instance request was created.</p></li>
264 /// <li>
265 /// <p><code>fault-code</code> - The fault code related to the request.</p></li>
266 /// <li>
267 /// <p><code>fault-message</code> - The fault message related to the request.</p></li>
268 /// <li>
269 /// <p><code>instance-id</code> - The ID of the instance that fulfilled the request.</p></li>
270 /// <li>
271 /// <p><code>launch-group</code> - The Spot Instance launch group.</p></li>
272 /// <li>
273 /// <p><code>launch.block-device-mapping.delete-on-termination</code> - Indicates whether the EBS volume is deleted on instance termination.</p></li>
274 /// <li>
275 /// <p><code>launch.block-device-mapping.device-name</code> - The device name for the volume in the block device mapping (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p></li>
276 /// <li>
277 /// <p><code>launch.block-device-mapping.snapshot-id</code> - The ID of the snapshot for the EBS volume.</p></li>
278 /// <li>
279 /// <p><code>launch.block-device-mapping.volume-size</code> - The size of the EBS volume, in GiB.</p></li>
280 /// <li>
281 /// <p><code>launch.block-device-mapping.volume-type</code> - The type of EBS volume: <code>gp2</code> or <code>gp3</code> for General Purpose SSD, <code>io1</code> or <code>io2</code> for Provisioned IOPS SSD, <code>st1</code> for Throughput Optimized HDD, <code>sc1</code> for Cold HDD, or <code>standard</code> for Magnetic.</p></li>
282 /// <li>
283 /// <p><code>launch.group-id</code> - The ID of the security group for the instance.</p></li>
284 /// <li>
285 /// <p><code>launch.group-name</code> - The name of the security group for the instance.</p></li>
286 /// <li>
287 /// <p><code>launch.image-id</code> - The ID of the AMI.</p></li>
288 /// <li>
289 /// <p><code>launch.instance-type</code> - The type of instance (for example, <code>m3.medium</code>).</p></li>
290 /// <li>
291 /// <p><code>launch.kernel-id</code> - The kernel ID.</p></li>
292 /// <li>
293 /// <p><code>launch.key-name</code> - The name of the key pair the instance launched with.</p></li>
294 /// <li>
295 /// <p><code>launch.monitoring-enabled</code> - Whether detailed monitoring is enabled for the Spot Instance.</p></li>
296 /// <li>
297 /// <p><code>launch.ramdisk-id</code> - The RAM disk ID.</p></li>
298 /// <li>
299 /// <p><code>launched-availability-zone</code> - The Availability Zone in which the request is launched.</p></li>
300 /// <li>
301 /// <p><code>network-interface.addresses.primary</code> - Indicates whether the IP address is the primary private IP address.</p></li>
302 /// <li>
303 /// <p><code>network-interface.delete-on-termination</code> - Indicates whether the network interface is deleted when the instance is terminated.</p></li>
304 /// <li>
305 /// <p><code>network-interface.description</code> - A description of the network interface.</p></li>
306 /// <li>
307 /// <p><code>network-interface.device-index</code> - The index of the device for the network interface attachment on the instance.</p></li>
308 /// <li>
309 /// <p><code>network-interface.group-id</code> - The ID of the security group associated with the network interface.</p></li>
310 /// <li>
311 /// <p><code>network-interface.network-interface-id</code> - The ID of the network interface.</p></li>
312 /// <li>
313 /// <p><code>network-interface.private-ip-address</code> - The primary private IP address of the network interface.</p></li>
314 /// <li>
315 /// <p><code>network-interface.subnet-id</code> - The ID of the subnet for the instance.</p></li>
316 /// <li>
317 /// <p><code>product-description</code> - The product description associated with the instance (<code>Linux/UNIX</code> | <code>Windows</code>).</p></li>
318 /// <li>
319 /// <p><code>spot-instance-request-id</code> - The Spot Instance request ID.</p></li>
320 /// <li>
321 /// <p><code>spot-price</code> - The maximum hourly price for any Spot Instance launched to fulfill the request.</p></li>
322 /// <li>
323 /// <p><code>state</code> - The state of the Spot Instance request (<code>open</code> | <code>active</code> | <code>closed</code> | <code>cancelled</code> | <code>failed</code>). Spot request status information can help you track your Amazon EC2 Spot Instance requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html">Spot request status</a> in the <i>Amazon EC2 User Guide</i>.</p></li>
324 /// <li>
325 /// <p><code>status-code</code> - The short code describing the most recent evaluation of your Spot Instance request.</p></li>
326 /// <li>
327 /// <p><code>status-message</code> - The message explaining the status of the Spot Instance request.</p></li>
328 /// <li>
329 /// <p><code>tag:<key></key></code> - 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 key <code>Owner</code> and the value <code>TeamA</code>, specify <code>tag:Owner</code> for the filter name and <code>TeamA</code> for the filter value.</p></li>
330 /// <li>
331 /// <p><code>tag-key</code> - 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.</p></li>
332 /// <li>
333 /// <p><code>type</code> - The type of Spot Instance request (<code>one-time</code> | <code>persistent</code>).</p></li>
334 /// <li>
335 /// <p><code>valid-from</code> - The start date of the request.</p></li>
336 /// <li>
337 /// <p><code>valid-until</code> - The end date of the request.</p></li>
338 /// </ul>
339 pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
340 self.inner = self.inner.set_filters(input);
341 self
342 }
343 /// <p>The filters.</p>
344 /// <ul>
345 /// <li>
346 /// <p><code>availability-zone-group</code> - The Availability Zone group.</p></li>
347 /// <li>
348 /// <p><code>create-time</code> - The time stamp when the Spot Instance request was created.</p></li>
349 /// <li>
350 /// <p><code>fault-code</code> - The fault code related to the request.</p></li>
351 /// <li>
352 /// <p><code>fault-message</code> - The fault message related to the request.</p></li>
353 /// <li>
354 /// <p><code>instance-id</code> - The ID of the instance that fulfilled the request.</p></li>
355 /// <li>
356 /// <p><code>launch-group</code> - The Spot Instance launch group.</p></li>
357 /// <li>
358 /// <p><code>launch.block-device-mapping.delete-on-termination</code> - Indicates whether the EBS volume is deleted on instance termination.</p></li>
359 /// <li>
360 /// <p><code>launch.block-device-mapping.device-name</code> - The device name for the volume in the block device mapping (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p></li>
361 /// <li>
362 /// <p><code>launch.block-device-mapping.snapshot-id</code> - The ID of the snapshot for the EBS volume.</p></li>
363 /// <li>
364 /// <p><code>launch.block-device-mapping.volume-size</code> - The size of the EBS volume, in GiB.</p></li>
365 /// <li>
366 /// <p><code>launch.block-device-mapping.volume-type</code> - The type of EBS volume: <code>gp2</code> or <code>gp3</code> for General Purpose SSD, <code>io1</code> or <code>io2</code> for Provisioned IOPS SSD, <code>st1</code> for Throughput Optimized HDD, <code>sc1</code> for Cold HDD, or <code>standard</code> for Magnetic.</p></li>
367 /// <li>
368 /// <p><code>launch.group-id</code> - The ID of the security group for the instance.</p></li>
369 /// <li>
370 /// <p><code>launch.group-name</code> - The name of the security group for the instance.</p></li>
371 /// <li>
372 /// <p><code>launch.image-id</code> - The ID of the AMI.</p></li>
373 /// <li>
374 /// <p><code>launch.instance-type</code> - The type of instance (for example, <code>m3.medium</code>).</p></li>
375 /// <li>
376 /// <p><code>launch.kernel-id</code> - The kernel ID.</p></li>
377 /// <li>
378 /// <p><code>launch.key-name</code> - The name of the key pair the instance launched with.</p></li>
379 /// <li>
380 /// <p><code>launch.monitoring-enabled</code> - Whether detailed monitoring is enabled for the Spot Instance.</p></li>
381 /// <li>
382 /// <p><code>launch.ramdisk-id</code> - The RAM disk ID.</p></li>
383 /// <li>
384 /// <p><code>launched-availability-zone</code> - The Availability Zone in which the request is launched.</p></li>
385 /// <li>
386 /// <p><code>network-interface.addresses.primary</code> - Indicates whether the IP address is the primary private IP address.</p></li>
387 /// <li>
388 /// <p><code>network-interface.delete-on-termination</code> - Indicates whether the network interface is deleted when the instance is terminated.</p></li>
389 /// <li>
390 /// <p><code>network-interface.description</code> - A description of the network interface.</p></li>
391 /// <li>
392 /// <p><code>network-interface.device-index</code> - The index of the device for the network interface attachment on the instance.</p></li>
393 /// <li>
394 /// <p><code>network-interface.group-id</code> - The ID of the security group associated with the network interface.</p></li>
395 /// <li>
396 /// <p><code>network-interface.network-interface-id</code> - The ID of the network interface.</p></li>
397 /// <li>
398 /// <p><code>network-interface.private-ip-address</code> - The primary private IP address of the network interface.</p></li>
399 /// <li>
400 /// <p><code>network-interface.subnet-id</code> - The ID of the subnet for the instance.</p></li>
401 /// <li>
402 /// <p><code>product-description</code> - The product description associated with the instance (<code>Linux/UNIX</code> | <code>Windows</code>).</p></li>
403 /// <li>
404 /// <p><code>spot-instance-request-id</code> - The Spot Instance request ID.</p></li>
405 /// <li>
406 /// <p><code>spot-price</code> - The maximum hourly price for any Spot Instance launched to fulfill the request.</p></li>
407 /// <li>
408 /// <p><code>state</code> - The state of the Spot Instance request (<code>open</code> | <code>active</code> | <code>closed</code> | <code>cancelled</code> | <code>failed</code>). Spot request status information can help you track your Amazon EC2 Spot Instance requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html">Spot request status</a> in the <i>Amazon EC2 User Guide</i>.</p></li>
409 /// <li>
410 /// <p><code>status-code</code> - The short code describing the most recent evaluation of your Spot Instance request.</p></li>
411 /// <li>
412 /// <p><code>status-message</code> - The message explaining the status of the Spot Instance request.</p></li>
413 /// <li>
414 /// <p><code>tag:<key></key></code> - 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 key <code>Owner</code> and the value <code>TeamA</code>, specify <code>tag:Owner</code> for the filter name and <code>TeamA</code> for the filter value.</p></li>
415 /// <li>
416 /// <p><code>tag-key</code> - 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.</p></li>
417 /// <li>
418 /// <p><code>type</code> - The type of Spot Instance request (<code>one-time</code> | <code>persistent</code>).</p></li>
419 /// <li>
420 /// <p><code>valid-from</code> - The start date of the request.</p></li>
421 /// <li>
422 /// <p><code>valid-until</code> - The end date of the request.</p></li>
423 /// </ul>
424 pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
425 self.inner.get_filters()
426 }
427}
428
429/// Successful return type for the `spot_instance_request_fulfilled` waiter.
430pub type SpotInstanceRequestFulfilledFinalPoll = ::aws_smithy_runtime_api::client::waiters::FinalPoll<
431 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsOutput,
432 ::aws_smithy_runtime_api::client::result::SdkError<
433 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
434 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
435 >,
436>;
437
438/// Error type for the `spot_instance_request_fulfilled` waiter.
439pub type WaitUntilSpotInstanceRequestFulfilledError = ::aws_smithy_runtime_api::client::waiters::error::WaiterError<
440 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsOutput,
441 crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
442>;