aws_sdk_ec2/operation/describe_spot_instance_requests/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::describe_spot_instance_requests::_describe_spot_instance_requests_output::DescribeSpotInstanceRequestsOutputBuilder;
3
4pub use crate::operation::describe_spot_instance_requests::_describe_spot_instance_requests_input::DescribeSpotInstanceRequestsInputBuilder;
5
6impl crate::operation::describe_spot_instance_requests::builders::DescribeSpotInstanceRequestsInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.describe_spot_instance_requests();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `DescribeSpotInstanceRequests`.
24///
25/// <p>Describes the specified Spot Instance requests.</p>
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/// <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/// <p>Spot Instance requests are deleted four hours after they are canceled and their instances are terminated.</p>
29#[derive(::std::clone::Clone, ::std::fmt::Debug)]
30pub struct DescribeSpotInstanceRequestsFluentBuilder {
31    handle: ::std::sync::Arc<crate::client::Handle>,
32    inner: crate::operation::describe_spot_instance_requests::builders::DescribeSpotInstanceRequestsInputBuilder,
33    config_override: ::std::option::Option<crate::config::Builder>,
34}
35impl
36    crate::client::customize::internal::CustomizableSend<
37        crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsOutput,
38        crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
39    > for DescribeSpotInstanceRequestsFluentBuilder
40{
41    fn send(
42        self,
43        config_override: crate::config::Builder,
44    ) -> crate::client::customize::internal::BoxFuture<
45        crate::client::customize::internal::SendResult<
46            crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsOutput,
47            crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
48        >,
49    > {
50        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
51    }
52}
53impl DescribeSpotInstanceRequestsFluentBuilder {
54    /// Creates a new `DescribeSpotInstanceRequestsFluentBuilder`.
55    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
56        Self {
57            handle,
58            inner: ::std::default::Default::default(),
59            config_override: ::std::option::Option::None,
60        }
61    }
62    /// Access the DescribeSpotInstanceRequests as a reference.
63    pub fn as_input(&self) -> &crate::operation::describe_spot_instance_requests::builders::DescribeSpotInstanceRequestsInputBuilder {
64        &self.inner
65    }
66    /// Sends the request and returns the response.
67    ///
68    /// If an error occurs, an `SdkError` will be returned with additional details that
69    /// can be matched against.
70    ///
71    /// By default, any retryable failures will be retried twice. Retry behavior
72    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
73    /// set when configuring the client.
74    pub async fn send(
75        self,
76    ) -> ::std::result::Result<
77        crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsOutput,
78        ::aws_smithy_runtime_api::client::result::SdkError<
79            crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
80            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
81        >,
82    > {
83        let input = self
84            .inner
85            .build()
86            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
87        let runtime_plugins = crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequests::operation_runtime_plugins(
88            self.handle.runtime_plugins.clone(),
89            &self.handle.conf,
90            self.config_override,
91        );
92        crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequests::orchestrate(&runtime_plugins, input).await
93    }
94
95    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
96    pub fn customize(
97        self,
98    ) -> crate::client::customize::CustomizableOperation<
99        crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsOutput,
100        crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsError,
101        Self,
102    > {
103        crate::client::customize::CustomizableOperation::new(self)
104    }
105    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
106        self.set_config_override(::std::option::Option::Some(config_override.into()));
107        self
108    }
109
110    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
111        self.config_override = config_override;
112        self
113    }
114    /// Create a paginator for this request
115    ///
116    /// Paginators are used by calling [`send().await`](crate::operation::describe_spot_instance_requests::paginator::DescribeSpotInstanceRequestsPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
117    pub fn into_paginator(self) -> crate::operation::describe_spot_instance_requests::paginator::DescribeSpotInstanceRequestsPaginator {
118        crate::operation::describe_spot_instance_requests::paginator::DescribeSpotInstanceRequestsPaginator::new(self.handle, self.inner)
119    }
120    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
121    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
122        self.inner = self.inner.next_token(input.into());
123        self
124    }
125    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
126    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
127        self.inner = self.inner.set_next_token(input);
128        self
129    }
130    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
131    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
132        self.inner.get_next_token()
133    }
134    /// <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>
135    pub fn max_results(mut self, input: i32) -> Self {
136        self.inner = self.inner.max_results(input);
137        self
138    }
139    /// <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>
140    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
141        self.inner = self.inner.set_max_results(input);
142        self
143    }
144    /// <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>
145    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
146        self.inner.get_max_results()
147    }
148    /// <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>
149    pub fn dry_run(mut self, input: bool) -> Self {
150        self.inner = self.inner.dry_run(input);
151        self
152    }
153    /// <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>
154    pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
155        self.inner = self.inner.set_dry_run(input);
156        self
157    }
158    /// <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>
159    pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
160        self.inner.get_dry_run()
161    }
162    ///
163    /// Appends an item to `SpotInstanceRequestIds`.
164    ///
165    /// To override the contents of this collection use [`set_spot_instance_request_ids`](Self::set_spot_instance_request_ids).
166    ///
167    /// <p>The IDs of the Spot Instance requests.</p>
168    pub fn spot_instance_request_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
169        self.inner = self.inner.spot_instance_request_ids(input.into());
170        self
171    }
172    /// <p>The IDs of the Spot Instance requests.</p>
173    pub fn set_spot_instance_request_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
174        self.inner = self.inner.set_spot_instance_request_ids(input);
175        self
176    }
177    /// <p>The IDs of the Spot Instance requests.</p>
178    pub fn get_spot_instance_request_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
179        self.inner.get_spot_instance_request_ids()
180    }
181    ///
182    /// Appends an item to `Filters`.
183    ///
184    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
185    ///
186    /// <p>The filters.</p>
187    /// <ul>
188    /// <li>
189    /// <p><code>availability-zone-group</code> - The Availability Zone group.</p></li>
190    /// <li>
191    /// <p><code>create-time</code> - The time stamp when the Spot Instance request was created.</p></li>
192    /// <li>
193    /// <p><code>fault-code</code> - The fault code related to the request.</p></li>
194    /// <li>
195    /// <p><code>fault-message</code> - The fault message related to the request.</p></li>
196    /// <li>
197    /// <p><code>instance-id</code> - The ID of the instance that fulfilled the request.</p></li>
198    /// <li>
199    /// <p><code>launch-group</code> - The Spot Instance launch group.</p></li>
200    /// <li>
201    /// <p><code>launch.block-device-mapping.delete-on-termination</code> - Indicates whether the EBS volume is deleted on instance termination.</p></li>
202    /// <li>
203    /// <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>
204    /// <li>
205    /// <p><code>launch.block-device-mapping.snapshot-id</code> - The ID of the snapshot for the EBS volume.</p></li>
206    /// <li>
207    /// <p><code>launch.block-device-mapping.volume-size</code> - The size of the EBS volume, in GiB.</p></li>
208    /// <li>
209    /// <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>
210    /// <li>
211    /// <p><code>launch.group-id</code> - The ID of the security group for the instance.</p></li>
212    /// <li>
213    /// <p><code>launch.group-name</code> - The name of the security group for the instance.</p></li>
214    /// <li>
215    /// <p><code>launch.image-id</code> - The ID of the AMI.</p></li>
216    /// <li>
217    /// <p><code>launch.instance-type</code> - The type of instance (for example, <code>m3.medium</code>).</p></li>
218    /// <li>
219    /// <p><code>launch.kernel-id</code> - The kernel ID.</p></li>
220    /// <li>
221    /// <p><code>launch.key-name</code> - The name of the key pair the instance launched with.</p></li>
222    /// <li>
223    /// <p><code>launch.monitoring-enabled</code> - Whether detailed monitoring is enabled for the Spot Instance.</p></li>
224    /// <li>
225    /// <p><code>launch.ramdisk-id</code> - The RAM disk ID.</p></li>
226    /// <li>
227    /// <p><code>launched-availability-zone</code> - The Availability Zone in which the request is launched.</p></li>
228    /// <li>
229    /// <p><code>network-interface.addresses.primary</code> - Indicates whether the IP address is the primary private IP address.</p></li>
230    /// <li>
231    /// <p><code>network-interface.delete-on-termination</code> - Indicates whether the network interface is deleted when the instance is terminated.</p></li>
232    /// <li>
233    /// <p><code>network-interface.description</code> - A description of the network interface.</p></li>
234    /// <li>
235    /// <p><code>network-interface.device-index</code> - The index of the device for the network interface attachment on the instance.</p></li>
236    /// <li>
237    /// <p><code>network-interface.group-id</code> - The ID of the security group associated with the network interface.</p></li>
238    /// <li>
239    /// <p><code>network-interface.network-interface-id</code> - The ID of the network interface.</p></li>
240    /// <li>
241    /// <p><code>network-interface.private-ip-address</code> - The primary private IP address of the network interface.</p></li>
242    /// <li>
243    /// <p><code>network-interface.subnet-id</code> - The ID of the subnet for the instance.</p></li>
244    /// <li>
245    /// <p><code>product-description</code> - The product description associated with the instance (<code>Linux/UNIX</code> | <code>Windows</code>).</p></li>
246    /// <li>
247    /// <p><code>spot-instance-request-id</code> - The Spot Instance request ID.</p></li>
248    /// <li>
249    /// <p><code>spot-price</code> - The maximum hourly price for any Spot Instance launched to fulfill the request.</p></li>
250    /// <li>
251    /// <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>
252    /// <li>
253    /// <p><code>status-code</code> - The short code describing the most recent evaluation of your Spot Instance request.</p></li>
254    /// <li>
255    /// <p><code>status-message</code> - The message explaining the status of the Spot Instance request.</p></li>
256    /// <li>
257    /// <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>
258    /// <li>
259    /// <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>
260    /// <li>
261    /// <p><code>type</code> - The type of Spot Instance request (<code>one-time</code> | <code>persistent</code>).</p></li>
262    /// <li>
263    /// <p><code>valid-from</code> - The start date of the request.</p></li>
264    /// <li>
265    /// <p><code>valid-until</code> - The end date of the request.</p></li>
266    /// </ul>
267    pub fn filters(mut self, input: crate::types::Filter) -> Self {
268        self.inner = self.inner.filters(input);
269        self
270    }
271    /// <p>The filters.</p>
272    /// <ul>
273    /// <li>
274    /// <p><code>availability-zone-group</code> - The Availability Zone group.</p></li>
275    /// <li>
276    /// <p><code>create-time</code> - The time stamp when the Spot Instance request was created.</p></li>
277    /// <li>
278    /// <p><code>fault-code</code> - The fault code related to the request.</p></li>
279    /// <li>
280    /// <p><code>fault-message</code> - The fault message related to the request.</p></li>
281    /// <li>
282    /// <p><code>instance-id</code> - The ID of the instance that fulfilled the request.</p></li>
283    /// <li>
284    /// <p><code>launch-group</code> - The Spot Instance launch group.</p></li>
285    /// <li>
286    /// <p><code>launch.block-device-mapping.delete-on-termination</code> - Indicates whether the EBS volume is deleted on instance termination.</p></li>
287    /// <li>
288    /// <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>
289    /// <li>
290    /// <p><code>launch.block-device-mapping.snapshot-id</code> - The ID of the snapshot for the EBS volume.</p></li>
291    /// <li>
292    /// <p><code>launch.block-device-mapping.volume-size</code> - The size of the EBS volume, in GiB.</p></li>
293    /// <li>
294    /// <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>
295    /// <li>
296    /// <p><code>launch.group-id</code> - The ID of the security group for the instance.</p></li>
297    /// <li>
298    /// <p><code>launch.group-name</code> - The name of the security group for the instance.</p></li>
299    /// <li>
300    /// <p><code>launch.image-id</code> - The ID of the AMI.</p></li>
301    /// <li>
302    /// <p><code>launch.instance-type</code> - The type of instance (for example, <code>m3.medium</code>).</p></li>
303    /// <li>
304    /// <p><code>launch.kernel-id</code> - The kernel ID.</p></li>
305    /// <li>
306    /// <p><code>launch.key-name</code> - The name of the key pair the instance launched with.</p></li>
307    /// <li>
308    /// <p><code>launch.monitoring-enabled</code> - Whether detailed monitoring is enabled for the Spot Instance.</p></li>
309    /// <li>
310    /// <p><code>launch.ramdisk-id</code> - The RAM disk ID.</p></li>
311    /// <li>
312    /// <p><code>launched-availability-zone</code> - The Availability Zone in which the request is launched.</p></li>
313    /// <li>
314    /// <p><code>network-interface.addresses.primary</code> - Indicates whether the IP address is the primary private IP address.</p></li>
315    /// <li>
316    /// <p><code>network-interface.delete-on-termination</code> - Indicates whether the network interface is deleted when the instance is terminated.</p></li>
317    /// <li>
318    /// <p><code>network-interface.description</code> - A description of the network interface.</p></li>
319    /// <li>
320    /// <p><code>network-interface.device-index</code> - The index of the device for the network interface attachment on the instance.</p></li>
321    /// <li>
322    /// <p><code>network-interface.group-id</code> - The ID of the security group associated with the network interface.</p></li>
323    /// <li>
324    /// <p><code>network-interface.network-interface-id</code> - The ID of the network interface.</p></li>
325    /// <li>
326    /// <p><code>network-interface.private-ip-address</code> - The primary private IP address of the network interface.</p></li>
327    /// <li>
328    /// <p><code>network-interface.subnet-id</code> - The ID of the subnet for the instance.</p></li>
329    /// <li>
330    /// <p><code>product-description</code> - The product description associated with the instance (<code>Linux/UNIX</code> | <code>Windows</code>).</p></li>
331    /// <li>
332    /// <p><code>spot-instance-request-id</code> - The Spot Instance request ID.</p></li>
333    /// <li>
334    /// <p><code>spot-price</code> - The maximum hourly price for any Spot Instance launched to fulfill the request.</p></li>
335    /// <li>
336    /// <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>
337    /// <li>
338    /// <p><code>status-code</code> - The short code describing the most recent evaluation of your Spot Instance request.</p></li>
339    /// <li>
340    /// <p><code>status-message</code> - The message explaining the status of the Spot Instance request.</p></li>
341    /// <li>
342    /// <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>
343    /// <li>
344    /// <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>
345    /// <li>
346    /// <p><code>type</code> - The type of Spot Instance request (<code>one-time</code> | <code>persistent</code>).</p></li>
347    /// <li>
348    /// <p><code>valid-from</code> - The start date of the request.</p></li>
349    /// <li>
350    /// <p><code>valid-until</code> - The end date of the request.</p></li>
351    /// </ul>
352    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
353        self.inner = self.inner.set_filters(input);
354        self
355    }
356    /// <p>The filters.</p>
357    /// <ul>
358    /// <li>
359    /// <p><code>availability-zone-group</code> - The Availability Zone group.</p></li>
360    /// <li>
361    /// <p><code>create-time</code> - The time stamp when the Spot Instance request was created.</p></li>
362    /// <li>
363    /// <p><code>fault-code</code> - The fault code related to the request.</p></li>
364    /// <li>
365    /// <p><code>fault-message</code> - The fault message related to the request.</p></li>
366    /// <li>
367    /// <p><code>instance-id</code> - The ID of the instance that fulfilled the request.</p></li>
368    /// <li>
369    /// <p><code>launch-group</code> - The Spot Instance launch group.</p></li>
370    /// <li>
371    /// <p><code>launch.block-device-mapping.delete-on-termination</code> - Indicates whether the EBS volume is deleted on instance termination.</p></li>
372    /// <li>
373    /// <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>
374    /// <li>
375    /// <p><code>launch.block-device-mapping.snapshot-id</code> - The ID of the snapshot for the EBS volume.</p></li>
376    /// <li>
377    /// <p><code>launch.block-device-mapping.volume-size</code> - The size of the EBS volume, in GiB.</p></li>
378    /// <li>
379    /// <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>
380    /// <li>
381    /// <p><code>launch.group-id</code> - The ID of the security group for the instance.</p></li>
382    /// <li>
383    /// <p><code>launch.group-name</code> - The name of the security group for the instance.</p></li>
384    /// <li>
385    /// <p><code>launch.image-id</code> - The ID of the AMI.</p></li>
386    /// <li>
387    /// <p><code>launch.instance-type</code> - The type of instance (for example, <code>m3.medium</code>).</p></li>
388    /// <li>
389    /// <p><code>launch.kernel-id</code> - The kernel ID.</p></li>
390    /// <li>
391    /// <p><code>launch.key-name</code> - The name of the key pair the instance launched with.</p></li>
392    /// <li>
393    /// <p><code>launch.monitoring-enabled</code> - Whether detailed monitoring is enabled for the Spot Instance.</p></li>
394    /// <li>
395    /// <p><code>launch.ramdisk-id</code> - The RAM disk ID.</p></li>
396    /// <li>
397    /// <p><code>launched-availability-zone</code> - The Availability Zone in which the request is launched.</p></li>
398    /// <li>
399    /// <p><code>network-interface.addresses.primary</code> - Indicates whether the IP address is the primary private IP address.</p></li>
400    /// <li>
401    /// <p><code>network-interface.delete-on-termination</code> - Indicates whether the network interface is deleted when the instance is terminated.</p></li>
402    /// <li>
403    /// <p><code>network-interface.description</code> - A description of the network interface.</p></li>
404    /// <li>
405    /// <p><code>network-interface.device-index</code> - The index of the device for the network interface attachment on the instance.</p></li>
406    /// <li>
407    /// <p><code>network-interface.group-id</code> - The ID of the security group associated with the network interface.</p></li>
408    /// <li>
409    /// <p><code>network-interface.network-interface-id</code> - The ID of the network interface.</p></li>
410    /// <li>
411    /// <p><code>network-interface.private-ip-address</code> - The primary private IP address of the network interface.</p></li>
412    /// <li>
413    /// <p><code>network-interface.subnet-id</code> - The ID of the subnet for the instance.</p></li>
414    /// <li>
415    /// <p><code>product-description</code> - The product description associated with the instance (<code>Linux/UNIX</code> | <code>Windows</code>).</p></li>
416    /// <li>
417    /// <p><code>spot-instance-request-id</code> - The Spot Instance request ID.</p></li>
418    /// <li>
419    /// <p><code>spot-price</code> - The maximum hourly price for any Spot Instance launched to fulfill the request.</p></li>
420    /// <li>
421    /// <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>
422    /// <li>
423    /// <p><code>status-code</code> - The short code describing the most recent evaluation of your Spot Instance request.</p></li>
424    /// <li>
425    /// <p><code>status-message</code> - The message explaining the status of the Spot Instance request.</p></li>
426    /// <li>
427    /// <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>
428    /// <li>
429    /// <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>
430    /// <li>
431    /// <p><code>type</code> - The type of Spot Instance request (<code>one-time</code> | <code>persistent</code>).</p></li>
432    /// <li>
433    /// <p><code>valid-from</code> - The start date of the request.</p></li>
434    /// <li>
435    /// <p><code>valid-until</code> - The end date of the request.</p></li>
436    /// </ul>
437    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
438        self.inner.get_filters()
439    }
440}