aws_sdk_ec2/operation/describe_instances/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::describe_instances::_describe_instances_output::DescribeInstancesOutputBuilder;
3
4pub use crate::operation::describe_instances::_describe_instances_input::DescribeInstancesInputBuilder;
5
6impl crate::operation::describe_instances::builders::DescribeInstancesInputBuilder {
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_instances::DescribeInstancesOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::describe_instances::DescribeInstancesError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.describe_instances();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `DescribeInstances`.
24///
25/// <p>Describes the specified instances or all instances.</p>
26/// <p>If you specify instance IDs, the output includes information for only the specified instances. If you specify filters, the output includes information for only those instances that meet the filter criteria. If you do not specify instance IDs or filters, the output includes information for all instances, which can affect performance. We recommend that you use pagination to ensure that the operation returns quickly and successfully.</p>
27/// <p>The response includes SQL license exemption status information for instances registered with the SQL LE service, providing visibility into license exemption configuration and status.</p>
28/// <p>If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the output.</p>
29/// <p>Recently terminated instances might appear in the returned results. This interval is usually less than one hour.</p>
30/// <p>If you describe instances in the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected zone, or do not specify any instance IDs at all, the call fails. If you describe instances and specify only instance IDs that are in an unaffected zone, the call works normally.</p>
31/// <p>The Amazon EC2 API follows an eventual consistency model. This means that the result of an API command you run that creates or modifies resources might not be immediately available to all subsequent commands you run. For guidance on how to manage eventual consistency, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/eventual-consistency.html">Eventual consistency in the Amazon EC2 API</a> in the <i>Amazon EC2 Developer Guide</i>.</p><important>
32/// <p>We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.</p>
33/// </important> <note>
34/// <p>The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.</p>
35/// </note>
36#[derive(::std::clone::Clone, ::std::fmt::Debug)]
37pub struct DescribeInstancesFluentBuilder {
38    handle: ::std::sync::Arc<crate::client::Handle>,
39    inner: crate::operation::describe_instances::builders::DescribeInstancesInputBuilder,
40    config_override: ::std::option::Option<crate::config::Builder>,
41}
42impl
43    crate::client::customize::internal::CustomizableSend<
44        crate::operation::describe_instances::DescribeInstancesOutput,
45        crate::operation::describe_instances::DescribeInstancesError,
46    > for DescribeInstancesFluentBuilder
47{
48    fn send(
49        self,
50        config_override: crate::config::Builder,
51    ) -> crate::client::customize::internal::BoxFuture<
52        crate::client::customize::internal::SendResult<
53            crate::operation::describe_instances::DescribeInstancesOutput,
54            crate::operation::describe_instances::DescribeInstancesError,
55        >,
56    > {
57        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
58    }
59}
60impl DescribeInstancesFluentBuilder {
61    /// Creates a new `DescribeInstancesFluentBuilder`.
62    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
63        Self {
64            handle,
65            inner: ::std::default::Default::default(),
66            config_override: ::std::option::Option::None,
67        }
68    }
69    /// Access the DescribeInstances as a reference.
70    pub fn as_input(&self) -> &crate::operation::describe_instances::builders::DescribeInstancesInputBuilder {
71        &self.inner
72    }
73    /// Sends the request and returns the response.
74    ///
75    /// If an error occurs, an `SdkError` will be returned with additional details that
76    /// can be matched against.
77    ///
78    /// By default, any retryable failures will be retried twice. Retry behavior
79    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
80    /// set when configuring the client.
81    pub async fn send(
82        self,
83    ) -> ::std::result::Result<
84        crate::operation::describe_instances::DescribeInstancesOutput,
85        ::aws_smithy_runtime_api::client::result::SdkError<
86            crate::operation::describe_instances::DescribeInstancesError,
87            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
88        >,
89    > {
90        let input = self
91            .inner
92            .build()
93            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
94        let runtime_plugins = crate::operation::describe_instances::DescribeInstances::operation_runtime_plugins(
95            self.handle.runtime_plugins.clone(),
96            &self.handle.conf,
97            self.config_override,
98        );
99        crate::operation::describe_instances::DescribeInstances::orchestrate(&runtime_plugins, input).await
100    }
101
102    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
103    pub fn customize(
104        self,
105    ) -> crate::client::customize::CustomizableOperation<
106        crate::operation::describe_instances::DescribeInstancesOutput,
107        crate::operation::describe_instances::DescribeInstancesError,
108        Self,
109    > {
110        crate::client::customize::CustomizableOperation::new(self)
111    }
112    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
113        self.set_config_override(::std::option::Option::Some(config_override.into()));
114        self
115    }
116
117    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
118        self.config_override = config_override;
119        self
120    }
121    /// Create a paginator for this request
122    ///
123    /// Paginators are used by calling [`send().await`](crate::operation::describe_instances::paginator::DescribeInstancesPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
124    pub fn into_paginator(self) -> crate::operation::describe_instances::paginator::DescribeInstancesPaginator {
125        crate::operation::describe_instances::paginator::DescribeInstancesPaginator::new(self.handle, self.inner)
126    }
127    ///
128    /// Appends an item to `InstanceIds`.
129    ///
130    /// To override the contents of this collection use [`set_instance_ids`](Self::set_instance_ids).
131    ///
132    /// <p>The instance IDs.</p>
133    /// <p>Default: Describes all your instances.</p>
134    pub fn instance_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
135        self.inner = self.inner.instance_ids(input.into());
136        self
137    }
138    /// <p>The instance IDs.</p>
139    /// <p>Default: Describes all your instances.</p>
140    pub fn set_instance_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
141        self.inner = self.inner.set_instance_ids(input);
142        self
143    }
144    /// <p>The instance IDs.</p>
145    /// <p>Default: Describes all your instances.</p>
146    pub fn get_instance_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
147        self.inner.get_instance_ids()
148    }
149    /// <p>Checks whether you have the required permissions for the operation, 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>
150    pub fn dry_run(mut self, input: bool) -> Self {
151        self.inner = self.inner.dry_run(input);
152        self
153    }
154    /// <p>Checks whether you have the required permissions for the operation, 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>
155    pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
156        self.inner = self.inner.set_dry_run(input);
157        self
158    }
159    /// <p>Checks whether you have the required permissions for the operation, 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>
160    pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
161        self.inner.get_dry_run()
162    }
163    ///
164    /// Appends an item to `Filters`.
165    ///
166    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
167    ///
168    /// <p>The filters.</p>
169    /// <ul>
170    /// <li>
171    /// <p><code>affinity</code> - The affinity setting for an instance running on a Dedicated Host (<code>default</code> | <code>host</code>).</p></li>
172    /// <li>
173    /// <p><code>architecture</code> - The instance architecture (<code>i386</code> | <code>x86_64</code> | <code>arm64</code>).</p></li>
174    /// <li>
175    /// <p><code>availability-zone</code> - The Availability Zone of the instance.</p></li>
176    /// <li>
177    /// <p><code>availability-zone-id</code> - The ID of the Availability Zone of the instance.</p></li>
178    /// <li>
179    /// <p><code>block-device-mapping.attach-time</code> - The attach time for an EBS volume mapped to the instance, for example, <code>2022-09-15T17:15:20.000Z</code>.</p></li>
180    /// <li>
181    /// <p><code>block-device-mapping.delete-on-termination</code> - A Boolean that indicates whether the EBS volume is deleted on instance termination.</p></li>
182    /// <li>
183    /// <p><code>block-device-mapping.device-name</code> - The device name specified in the block device mapping (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p></li>
184    /// <li>
185    /// <p><code>block-device-mapping.status</code> - The status for the EBS volume (<code>attaching</code> | <code>attached</code> | <code>detaching</code> | <code>detached</code>).</p></li>
186    /// <li>
187    /// <p><code>block-device-mapping.volume-id</code> - The volume ID of the EBS volume.</p></li>
188    /// <li>
189    /// <p><code>boot-mode</code> - The boot mode that was specified by the AMI (<code>legacy-bios</code> | <code>uefi</code> | <code>uefi-preferred</code>).</p></li>
190    /// <li>
191    /// <p><code>capacity-reservation-id</code> - The ID of the Capacity Reservation into which the instance was launched.</p></li>
192    /// <li>
193    /// <p><code>capacity-reservation-specification.capacity-reservation-preference</code> - The instance's Capacity Reservation preference (<code>open</code> | <code>none</code>).</p></li>
194    /// <li>
195    /// <p><code>capacity-reservation-specification.capacity-reservation-target.capacity-reservation-id</code> - The ID of the targeted Capacity Reservation.</p></li>
196    /// <li>
197    /// <p><code>capacity-reservation-specification.capacity-reservation-target.capacity-reservation-resource-group-arn</code> - The ARN of the targeted Capacity Reservation group.</p></li>
198    /// <li>
199    /// <p><code>client-token</code> - The idempotency token you provided when you launched the instance.</p></li>
200    /// <li>
201    /// <p><code>current-instance-boot-mode</code> - The boot mode that is used to launch the instance at launch or start (<code>legacy-bios</code> | <code>uefi</code>).</p></li>
202    /// <li>
203    /// <p><code>dns-name</code> - The public DNS name of the instance.</p></li>
204    /// <li>
205    /// <p><code>ebs-optimized</code> - A Boolean that indicates whether the instance is optimized for Amazon EBS I/O.</p></li>
206    /// <li>
207    /// <p><code>ena-support</code> - A Boolean that indicates whether the instance is enabled for enhanced networking with ENA.</p></li>
208    /// <li>
209    /// <p><code>enclave-options.enabled</code> - A Boolean that indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.</p></li>
210    /// <li>
211    /// <p><code>hibernation-options.configured</code> - A Boolean that indicates whether the instance is enabled for hibernation. A value of <code>true</code> means that the instance is enabled for hibernation.</p></li>
212    /// <li>
213    /// <p><code>host-id</code> - The ID of the Dedicated Host on which the instance is running, if applicable.</p></li>
214    /// <li>
215    /// <p><code>hypervisor</code> - The hypervisor type of the instance (<code>ovm</code> | <code>xen</code>). The value <code>xen</code> is used for both Xen and Nitro hypervisors.</p></li>
216    /// <li>
217    /// <p><code>iam-instance-profile.arn</code> - The instance profile associated with the instance. Specified as an ARN.</p></li>
218    /// <li>
219    /// <p><code>iam-instance-profile.id</code> - The instance profile associated with the instance. Specified as an ID.</p></li>
220    /// <li>
221    /// <p><code>image-id</code> - The ID of the image used to launch the instance.</p></li>
222    /// <li>
223    /// <p><code>instance-id</code> - The ID of the instance.</p></li>
224    /// <li>
225    /// <p><code>instance-lifecycle</code> - Indicates whether this is a Spot Instance, a Scheduled Instance, or a Capacity Block (<code>spot</code> | <code>scheduled</code> | <code>capacity-block</code>).</p></li>
226    /// <li>
227    /// <p><code>instance-state-code</code> - The state of the instance, as a 16-bit unsigned integer. The high byte is used for internal purposes and should be ignored. The low byte is set based on the state represented. The valid values are: 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).</p></li>
228    /// <li>
229    /// <p><code>instance-state-name</code> - The state of the instance (<code>pending</code> | <code>running</code> | <code>shutting-down</code> | <code>terminated</code> | <code>stopping</code> | <code>stopped</code>).</p></li>
230    /// <li>
231    /// <p><code>instance-type</code> - The type of instance (for example, <code>t2.micro</code>).</p></li>
232    /// <li>
233    /// <p><code>instance.group-id</code> - The ID of the security group for the instance.</p></li>
234    /// <li>
235    /// <p><code>instance.group-name</code> - The name of the security group for the instance.</p></li>
236    /// <li>
237    /// <p><code>ip-address</code> - The public IPv4 address of the instance.</p></li>
238    /// <li>
239    /// <p><code>ipv6-address</code> - The IPv6 address of the instance.</p></li>
240    /// <li>
241    /// <p><code>kernel-id</code> - The kernel ID.</p></li>
242    /// <li>
243    /// <p><code>key-name</code> - The name of the key pair used when the instance was launched.</p></li>
244    /// <li>
245    /// <p><code>launch-index</code> - When launching multiple instances, this is the index for the instance in the launch group (for example, 0, 1, 2, and so on).</p></li>
246    /// <li>
247    /// <p><code>launch-time</code> - The time when the instance was launched, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example, <code>2021-09-29T11:04:43.305Z</code>. You can use a wildcard (<code>*</code>), for example, <code>2021-09-29T*</code>, which matches an entire day.</p></li>
248    /// <li>
249    /// <p><code>maintenance-options.auto-recovery</code> - The current automatic recovery behavior of the instance (<code>disabled</code> | <code>default</code>).</p></li>
250    /// <li>
251    /// <p><code>metadata-options.http-endpoint</code> - The status of access to the HTTP metadata endpoint on your instance (<code>enabled</code> | <code>disabled</code>)</p></li>
252    /// <li>
253    /// <p><code>metadata-options.http-protocol-ipv4</code> - Indicates whether the IPv4 endpoint is enabled (<code>disabled</code> | <code>enabled</code>).</p></li>
254    /// <li>
255    /// <p><code>metadata-options.http-protocol-ipv6</code> - Indicates whether the IPv6 endpoint is enabled (<code>disabled</code> | <code>enabled</code>).</p></li>
256    /// <li>
257    /// <p><code>metadata-options.http-put-response-hop-limit</code> - The HTTP metadata request put response hop limit (integer, possible values <code>1</code> to <code>64</code>)</p></li>
258    /// <li>
259    /// <p><code>metadata-options.http-tokens</code> - The metadata request authorization state (<code>optional</code> | <code>required</code>)</p></li>
260    /// <li>
261    /// <p><code>metadata-options.instance-metadata-tags</code> - The status of access to instance tags from the instance metadata (<code>enabled</code> | <code>disabled</code>)</p></li>
262    /// <li>
263    /// <p><code>metadata-options.state</code> - The state of the metadata option changes (<code>pending</code> | <code>applied</code>).</p></li>
264    /// <li>
265    /// <p><code>monitoring-state</code> - Indicates whether detailed monitoring is enabled (<code>disabled</code> | <code>enabled</code>).</p></li>
266    /// <li>
267    /// <p><code>network-interface.addresses.association.allocation-id</code> - The allocation ID.</p></li>
268    /// <li>
269    /// <p><code>network-interface.addresses.association.association-id</code> - The association ID.</p></li>
270    /// <li>
271    /// <p><code>network-interface.addresses.association.carrier-ip</code> - The carrier IP address.</p></li>
272    /// <li>
273    /// <p><code>network-interface.addresses.association.customer-owned-ip</code> - The customer-owned IP address.</p></li>
274    /// <li>
275    /// <p><code>network-interface.addresses.association.ip-owner-id</code> - The owner ID of the private IPv4 address associated with the network interface.</p></li>
276    /// <li>
277    /// <p><code>network-interface.addresses.association.public-dns-name</code> - The public DNS name.</p></li>
278    /// <li>
279    /// <p><code>network-interface.addresses.association.public-ip</code> - The ID of the association of an Elastic IP address (IPv4) with a network interface.</p></li>
280    /// <li>
281    /// <p><code>network-interface.addresses.primary</code> - Specifies whether the IPv4 address of the network interface is the primary private IPv4 address.</p></li>
282    /// <li>
283    /// <p><code>network-interface.addresses.private-dns-name</code> - The private DNS name.</p></li>
284    /// <li>
285    /// <p><code>network-interface.addresses.private-ip-address</code> - The private IPv4 address associated with the network interface.</p></li>
286    /// <li>
287    /// <p><code>network-interface.association.allocation-id</code> - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.</p></li>
288    /// <li>
289    /// <p><code>network-interface.association.association-id</code> - The association ID returned when the network interface was associated with an IPv4 address.</p></li>
290    /// <li>
291    /// <p><code>network-interface.association.carrier-ip</code> - The customer-owned IP address.</p></li>
292    /// <li>
293    /// <p><code>network-interface.association.customer-owned-ip</code> - The customer-owned IP address.</p></li>
294    /// <li>
295    /// <p><code>network-interface.association.ip-owner-id</code> - The owner of the Elastic IP address (IPv4) associated with the network interface.</p></li>
296    /// <li>
297    /// <p><code>network-interface.association.public-dns-name</code> - The public DNS name.</p></li>
298    /// <li>
299    /// <p><code>network-interface.association.public-ip</code> - The address of the Elastic IP address (IPv4) bound to the network interface.</p></li>
300    /// <li>
301    /// <p><code>network-interface.attachment.attach-time</code> - The time that the network interface was attached to an instance.</p></li>
302    /// <li>
303    /// <p><code>network-interface.attachment.attachment-id</code> - The ID of the interface attachment.</p></li>
304    /// <li>
305    /// <p><code>network-interface.attachment.delete-on-termination</code> - Specifies whether the attachment is deleted when an instance is terminated.</p></li>
306    /// <li>
307    /// <p><code>network-interface.attachment.device-index</code> - The device index to which the network interface is attached.</p></li>
308    /// <li>
309    /// <p><code>network-interface.attachment.instance-id</code> - The ID of the instance to which the network interface is attached.</p></li>
310    /// <li>
311    /// <p><code>network-interface.attachment.instance-owner-id</code> - The owner ID of the instance to which the network interface is attached.</p></li>
312    /// <li>
313    /// <p><code>network-interface.attachment.network-card-index</code> - The index of the network card.</p></li>
314    /// <li>
315    /// <p><code>network-interface.attachment.status</code> - The status of the attachment (<code>attaching</code> | <code>attached</code> | <code>detaching</code> | <code>detached</code>).</p></li>
316    /// <li>
317    /// <p><code>network-interface.availability-zone</code> - The Availability Zone for the network interface.</p></li>
318    /// <li>
319    /// <p><code>network-interface.deny-all-igw-traffic</code> - A Boolean that indicates whether a network interface with an IPv6 address is unreachable from the public internet.</p></li>
320    /// <li>
321    /// <p><code>network-interface.description</code> - The description of the network interface.</p></li>
322    /// <li>
323    /// <p><code>network-interface.group-id</code> - The ID of a security group associated with the network interface.</p></li>
324    /// <li>
325    /// <p><code>network-interface.group-name</code> - The name of a security group associated with the network interface.</p></li>
326    /// <li>
327    /// <p><code>network-interface.ipv4-prefixes.ipv4-prefix</code> - The IPv4 prefixes that are assigned to the network interface.</p></li>
328    /// <li>
329    /// <p><code>network-interface.ipv6-address</code> - The IPv6 address associated with the network interface.</p></li>
330    /// <li>
331    /// <p><code>network-interface.ipv6-addresses.ipv6-address</code> - The IPv6 address associated with the network interface.</p></li>
332    /// <li>
333    /// <p><code>network-interface.ipv6-addresses.is-primary-ipv6</code> - A Boolean that indicates whether this is the primary IPv6 address.</p></li>
334    /// <li>
335    /// <p><code>network-interface.ipv6-native</code> - A Boolean that indicates whether this is an IPv6 only network interface.</p></li>
336    /// <li>
337    /// <p><code>network-interface.ipv6-prefixes.ipv6-prefix</code> - The IPv6 prefix assigned to the network interface.</p></li>
338    /// <li>
339    /// <p><code>network-interface.mac-address</code> - The MAC address of the network interface.</p></li>
340    /// <li>
341    /// <p><code>network-interface.network-interface-id</code> - The ID of the network interface.</p></li>
342    /// <li>
343    /// <p><code>network-interface.operator.managed</code> - A Boolean that indicates whether the instance has a managed network interface.</p></li>
344    /// <li>
345    /// <p><code>network-interface.operator.principal</code> - The principal that manages the network interface. Only valid for instances with managed network interfaces, where <code>managed</code> is <code>true</code>.</p></li>
346    /// <li>
347    /// <p><code>network-interface.outpost-arn</code> - The ARN of the Outpost.</p></li>
348    /// <li>
349    /// <p><code>network-interface.owner-id</code> - The ID of the owner of the network interface.</p></li>
350    /// <li>
351    /// <p><code>network-interface.private-dns-name</code> - The private DNS name of the network interface.</p></li>
352    /// <li>
353    /// <p><code>network-interface.private-ip-address</code> - The private IPv4 address.</p></li>
354    /// <li>
355    /// <p><code>network-interface.public-dns-name</code> - The public DNS name.</p></li>
356    /// <li>
357    /// <p><code>network-interface.requester-id</code> - The requester ID for the network interface.</p></li>
358    /// <li>
359    /// <p><code>network-interface.requester-managed</code> - Indicates whether the network interface is being managed by Amazon Web Services.</p></li>
360    /// <li>
361    /// <p><code>network-interface.status</code> - The status of the network interface (<code>available</code>) | <code>in-use</code>).</p></li>
362    /// <li>
363    /// <p><code>network-interface.source-dest-check</code> - Whether the network interface performs source/destination checking. A value of <code>true</code> means that checking is enabled, and <code>false</code> means that checking is disabled. The value must be <code>false</code> for the network interface to perform network address translation (NAT) in your VPC.</p></li>
364    /// <li>
365    /// <p><code>network-interface.subnet-id</code> - The ID of the subnet for the network interface.</p></li>
366    /// <li>
367    /// <p><code>network-interface.tag-key</code> - The key of a tag assigned to the network interface.</p></li>
368    /// <li>
369    /// <p><code>network-interface.tag-value</code> - The value of a tag assigned to the network interface.</p></li>
370    /// <li>
371    /// <p><code>network-interface.vpc-id</code> - The ID of the VPC for the network interface.</p></li>
372    /// <li>
373    /// <p><code>network-performance-options.bandwidth-weighting</code> - Where the performance boost is applied, if applicable. Valid values: <code>default</code>, <code>vpc-1</code>, <code>ebs-1</code>.</p></li>
374    /// <li>
375    /// <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed instance.</p></li>
376    /// <li>
377    /// <p><code>operator.principal</code> - The principal that manages the instance. Only valid for managed instances, where <code>managed</code> is <code>true</code>.</p></li>
378    /// <li>
379    /// <p><code>outpost-arn</code> - The Amazon Resource Name (ARN) of the Outpost.</p></li>
380    /// <li>
381    /// <p><code>owner-id</code> - The Amazon Web Services account ID of the instance owner.</p></li>
382    /// <li>
383    /// <p><code>placement-group-name</code> - The name of the placement group for the instance.</p></li>
384    /// <li>
385    /// <p><code>placement-partition-number</code> - The partition in which the instance is located.</p></li>
386    /// <li>
387    /// <p><code>platform</code> - The platform. To list only Windows instances, use <code>windows</code>.</p></li>
388    /// <li>
389    /// <p><code>platform-details</code> - The platform (<code>Linux/UNIX</code> | <code>Red Hat BYOL Linux</code> | <code> Red Hat Enterprise Linux</code> | <code>Red Hat Enterprise Linux with HA</code> | <code>Red Hat Enterprise Linux with High Availability</code> | <code>Red Hat Enterprise Linux with SQL Server Standard and HA</code> | <code>Red Hat Enterprise Linux with SQL Server Enterprise and HA</code> | <code>Red Hat Enterprise Linux with SQL Server Standard</code> | <code>Red Hat Enterprise Linux with SQL Server Web</code> | <code>Red Hat Enterprise Linux with SQL Server Enterprise</code> | <code>SQL Server Enterprise</code> | <code>SQL Server Standard</code> | <code>SQL Server Web</code> | <code>SUSE Linux</code> | <code>Ubuntu Pro</code> | <code>Windows</code> | <code>Windows BYOL</code> | <code>Windows with SQL Server Enterprise</code> | <code>Windows with SQL Server Standard</code> | <code>Windows with SQL Server Web</code>).</p></li>
390    /// <li>
391    /// <p><code>private-dns-name</code> - The private IPv4 DNS name of the instance.</p></li>
392    /// <li>
393    /// <p><code>private-dns-name-options.enable-resource-name-dns-a-record</code> - A Boolean that indicates whether to respond to DNS queries for instance hostnames with DNS A records.</p></li>
394    /// <li>
395    /// <p><code>private-dns-name-options.enable-resource-name-dns-aaaa-record</code> - A Boolean that indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.</p></li>
396    /// <li>
397    /// <p><code>private-dns-name-options.hostname-type</code> - The type of hostname (<code>ip-name</code> | <code>resource-name</code>).</p></li>
398    /// <li>
399    /// <p><code>private-ip-address</code> - The private IPv4 address of the instance. This can only be used to filter by the primary IP address of the network interface attached to the instance. To filter by additional IP addresses assigned to the network interface, use the filter <code>network-interface.addresses.private-ip-address</code>.</p></li>
400    /// <li>
401    /// <p><code>product-code</code> - The product code associated with the AMI used to launch the instance.</p></li>
402    /// <li>
403    /// <p><code>product-code.type</code> - The type of product code (<code>devpay</code> | <code>marketplace</code>).</p></li>
404    /// <li>
405    /// <p><code>ramdisk-id</code> - The RAM disk ID.</p></li>
406    /// <li>
407    /// <p>reason - The reason for the current state of the instance (for example, shows "User Initiated \[date\]" when you stop or terminate the instance). Similar to the state-reason-code filter.</p></li>
408    /// <li>
409    /// <p><code>requester-id</code> - The ID of the entity that launched the instance on your behalf (for example, Amazon Web Services Management Console, Amazon EC2 Auto Scaling, and so on).</p></li>
410    /// <li>
411    /// <p><code>reservation-id</code> - The ID of the instance's reservation. A reservation ID is created any time you launch an instance. A reservation ID has a one-to-one relationship with an instance launch request, but can be associated with more than one instance if you launch multiple instances using the same launch request. For example, if you launch one instance, you get one reservation ID. If you launch ten instances using the same launch request, you also get one reservation ID.</p></li>
412    /// <li>
413    /// <p><code>root-device-name</code> - The device name of the root device volume (for example, <code>/dev/sda1</code>).</p></li>
414    /// <li>
415    /// <p><code>root-device-type</code> - The type of the root device volume (<code>ebs</code> | <code>instance-store</code>).</p></li>
416    /// <li>
417    /// <p><code>source-dest-check</code> - Indicates whether the instance performs source/destination checking. A value of <code>true</code> means that checking is enabled, and <code>false</code> means that checking is disabled. The value must be <code>false</code> for the instance to perform network address translation (NAT) in your VPC.</p></li>
418    /// <li>
419    /// <p><code>spot-instance-request-id</code> - The ID of the Spot Instance request.</p></li>
420    /// <li>
421    /// <p><code>state-reason-code</code> - The reason code for the state change.</p></li>
422    /// <li>
423    /// <p><code>state-reason-message</code> - A message that describes the state change.</p></li>
424    /// <li>
425    /// <p><code>subnet-id</code> - The ID of the subnet for the instance.</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 that have a tag with a specific key, regardless of the tag value.</p></li>
430    /// <li>
431    /// <p><code>tenancy</code> - The tenancy of an instance (<code>dedicated</code> | <code>default</code> | <code>host</code>).</p></li>
432    /// <li>
433    /// <p><code>tpm-support</code> - Indicates if the instance is configured for NitroTPM support (<code>v2.0</code>).</p></li>
434    /// <li>
435    /// <p><code>usage-operation</code> - The usage operation value for the instance (<code>RunInstances</code> | <code>RunInstances:00g0</code> | <code>RunInstances:0010</code> | <code>RunInstances:1010</code> | <code>RunInstances:1014</code> | <code>RunInstances:1110</code> | <code>RunInstances:0014</code> | <code>RunInstances:0210</code> | <code>RunInstances:0110</code> | <code>RunInstances:0100</code> | <code>RunInstances:0004</code> | <code>RunInstances:0200</code> | <code>RunInstances:000g</code> | <code>RunInstances:0g00</code> | <code>RunInstances:0002</code> | <code>RunInstances:0800</code> | <code>RunInstances:0102</code> | <code>RunInstances:0006</code> | <code>RunInstances:0202</code>).</p></li>
436    /// <li>
437    /// <p><code>usage-operation-update-time</code> - The time that the usage operation was last updated, for example, <code>2022-09-15T17:15:20.000Z</code>.</p></li>
438    /// <li>
439    /// <p><code>virtualization-type</code> - The virtualization type of the instance (<code>paravirtual</code> | <code>hvm</code>).</p></li>
440    /// <li>
441    /// <p><code>vpc-id</code> - The ID of the VPC that the instance is running in.</p></li>
442    /// </ul>
443    pub fn filters(mut self, input: crate::types::Filter) -> Self {
444        self.inner = self.inner.filters(input);
445        self
446    }
447    /// <p>The filters.</p>
448    /// <ul>
449    /// <li>
450    /// <p><code>affinity</code> - The affinity setting for an instance running on a Dedicated Host (<code>default</code> | <code>host</code>).</p></li>
451    /// <li>
452    /// <p><code>architecture</code> - The instance architecture (<code>i386</code> | <code>x86_64</code> | <code>arm64</code>).</p></li>
453    /// <li>
454    /// <p><code>availability-zone</code> - The Availability Zone of the instance.</p></li>
455    /// <li>
456    /// <p><code>availability-zone-id</code> - The ID of the Availability Zone of the instance.</p></li>
457    /// <li>
458    /// <p><code>block-device-mapping.attach-time</code> - The attach time for an EBS volume mapped to the instance, for example, <code>2022-09-15T17:15:20.000Z</code>.</p></li>
459    /// <li>
460    /// <p><code>block-device-mapping.delete-on-termination</code> - A Boolean that indicates whether the EBS volume is deleted on instance termination.</p></li>
461    /// <li>
462    /// <p><code>block-device-mapping.device-name</code> - The device name specified in the block device mapping (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p></li>
463    /// <li>
464    /// <p><code>block-device-mapping.status</code> - The status for the EBS volume (<code>attaching</code> | <code>attached</code> | <code>detaching</code> | <code>detached</code>).</p></li>
465    /// <li>
466    /// <p><code>block-device-mapping.volume-id</code> - The volume ID of the EBS volume.</p></li>
467    /// <li>
468    /// <p><code>boot-mode</code> - The boot mode that was specified by the AMI (<code>legacy-bios</code> | <code>uefi</code> | <code>uefi-preferred</code>).</p></li>
469    /// <li>
470    /// <p><code>capacity-reservation-id</code> - The ID of the Capacity Reservation into which the instance was launched.</p></li>
471    /// <li>
472    /// <p><code>capacity-reservation-specification.capacity-reservation-preference</code> - The instance's Capacity Reservation preference (<code>open</code> | <code>none</code>).</p></li>
473    /// <li>
474    /// <p><code>capacity-reservation-specification.capacity-reservation-target.capacity-reservation-id</code> - The ID of the targeted Capacity Reservation.</p></li>
475    /// <li>
476    /// <p><code>capacity-reservation-specification.capacity-reservation-target.capacity-reservation-resource-group-arn</code> - The ARN of the targeted Capacity Reservation group.</p></li>
477    /// <li>
478    /// <p><code>client-token</code> - The idempotency token you provided when you launched the instance.</p></li>
479    /// <li>
480    /// <p><code>current-instance-boot-mode</code> - The boot mode that is used to launch the instance at launch or start (<code>legacy-bios</code> | <code>uefi</code>).</p></li>
481    /// <li>
482    /// <p><code>dns-name</code> - The public DNS name of the instance.</p></li>
483    /// <li>
484    /// <p><code>ebs-optimized</code> - A Boolean that indicates whether the instance is optimized for Amazon EBS I/O.</p></li>
485    /// <li>
486    /// <p><code>ena-support</code> - A Boolean that indicates whether the instance is enabled for enhanced networking with ENA.</p></li>
487    /// <li>
488    /// <p><code>enclave-options.enabled</code> - A Boolean that indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.</p></li>
489    /// <li>
490    /// <p><code>hibernation-options.configured</code> - A Boolean that indicates whether the instance is enabled for hibernation. A value of <code>true</code> means that the instance is enabled for hibernation.</p></li>
491    /// <li>
492    /// <p><code>host-id</code> - The ID of the Dedicated Host on which the instance is running, if applicable.</p></li>
493    /// <li>
494    /// <p><code>hypervisor</code> - The hypervisor type of the instance (<code>ovm</code> | <code>xen</code>). The value <code>xen</code> is used for both Xen and Nitro hypervisors.</p></li>
495    /// <li>
496    /// <p><code>iam-instance-profile.arn</code> - The instance profile associated with the instance. Specified as an ARN.</p></li>
497    /// <li>
498    /// <p><code>iam-instance-profile.id</code> - The instance profile associated with the instance. Specified as an ID.</p></li>
499    /// <li>
500    /// <p><code>image-id</code> - The ID of the image used to launch the instance.</p></li>
501    /// <li>
502    /// <p><code>instance-id</code> - The ID of the instance.</p></li>
503    /// <li>
504    /// <p><code>instance-lifecycle</code> - Indicates whether this is a Spot Instance, a Scheduled Instance, or a Capacity Block (<code>spot</code> | <code>scheduled</code> | <code>capacity-block</code>).</p></li>
505    /// <li>
506    /// <p><code>instance-state-code</code> - The state of the instance, as a 16-bit unsigned integer. The high byte is used for internal purposes and should be ignored. The low byte is set based on the state represented. The valid values are: 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).</p></li>
507    /// <li>
508    /// <p><code>instance-state-name</code> - The state of the instance (<code>pending</code> | <code>running</code> | <code>shutting-down</code> | <code>terminated</code> | <code>stopping</code> | <code>stopped</code>).</p></li>
509    /// <li>
510    /// <p><code>instance-type</code> - The type of instance (for example, <code>t2.micro</code>).</p></li>
511    /// <li>
512    /// <p><code>instance.group-id</code> - The ID of the security group for the instance.</p></li>
513    /// <li>
514    /// <p><code>instance.group-name</code> - The name of the security group for the instance.</p></li>
515    /// <li>
516    /// <p><code>ip-address</code> - The public IPv4 address of the instance.</p></li>
517    /// <li>
518    /// <p><code>ipv6-address</code> - The IPv6 address of the instance.</p></li>
519    /// <li>
520    /// <p><code>kernel-id</code> - The kernel ID.</p></li>
521    /// <li>
522    /// <p><code>key-name</code> - The name of the key pair used when the instance was launched.</p></li>
523    /// <li>
524    /// <p><code>launch-index</code> - When launching multiple instances, this is the index for the instance in the launch group (for example, 0, 1, 2, and so on).</p></li>
525    /// <li>
526    /// <p><code>launch-time</code> - The time when the instance was launched, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example, <code>2021-09-29T11:04:43.305Z</code>. You can use a wildcard (<code>*</code>), for example, <code>2021-09-29T*</code>, which matches an entire day.</p></li>
527    /// <li>
528    /// <p><code>maintenance-options.auto-recovery</code> - The current automatic recovery behavior of the instance (<code>disabled</code> | <code>default</code>).</p></li>
529    /// <li>
530    /// <p><code>metadata-options.http-endpoint</code> - The status of access to the HTTP metadata endpoint on your instance (<code>enabled</code> | <code>disabled</code>)</p></li>
531    /// <li>
532    /// <p><code>metadata-options.http-protocol-ipv4</code> - Indicates whether the IPv4 endpoint is enabled (<code>disabled</code> | <code>enabled</code>).</p></li>
533    /// <li>
534    /// <p><code>metadata-options.http-protocol-ipv6</code> - Indicates whether the IPv6 endpoint is enabled (<code>disabled</code> | <code>enabled</code>).</p></li>
535    /// <li>
536    /// <p><code>metadata-options.http-put-response-hop-limit</code> - The HTTP metadata request put response hop limit (integer, possible values <code>1</code> to <code>64</code>)</p></li>
537    /// <li>
538    /// <p><code>metadata-options.http-tokens</code> - The metadata request authorization state (<code>optional</code> | <code>required</code>)</p></li>
539    /// <li>
540    /// <p><code>metadata-options.instance-metadata-tags</code> - The status of access to instance tags from the instance metadata (<code>enabled</code> | <code>disabled</code>)</p></li>
541    /// <li>
542    /// <p><code>metadata-options.state</code> - The state of the metadata option changes (<code>pending</code> | <code>applied</code>).</p></li>
543    /// <li>
544    /// <p><code>monitoring-state</code> - Indicates whether detailed monitoring is enabled (<code>disabled</code> | <code>enabled</code>).</p></li>
545    /// <li>
546    /// <p><code>network-interface.addresses.association.allocation-id</code> - The allocation ID.</p></li>
547    /// <li>
548    /// <p><code>network-interface.addresses.association.association-id</code> - The association ID.</p></li>
549    /// <li>
550    /// <p><code>network-interface.addresses.association.carrier-ip</code> - The carrier IP address.</p></li>
551    /// <li>
552    /// <p><code>network-interface.addresses.association.customer-owned-ip</code> - The customer-owned IP address.</p></li>
553    /// <li>
554    /// <p><code>network-interface.addresses.association.ip-owner-id</code> - The owner ID of the private IPv4 address associated with the network interface.</p></li>
555    /// <li>
556    /// <p><code>network-interface.addresses.association.public-dns-name</code> - The public DNS name.</p></li>
557    /// <li>
558    /// <p><code>network-interface.addresses.association.public-ip</code> - The ID of the association of an Elastic IP address (IPv4) with a network interface.</p></li>
559    /// <li>
560    /// <p><code>network-interface.addresses.primary</code> - Specifies whether the IPv4 address of the network interface is the primary private IPv4 address.</p></li>
561    /// <li>
562    /// <p><code>network-interface.addresses.private-dns-name</code> - The private DNS name.</p></li>
563    /// <li>
564    /// <p><code>network-interface.addresses.private-ip-address</code> - The private IPv4 address associated with the network interface.</p></li>
565    /// <li>
566    /// <p><code>network-interface.association.allocation-id</code> - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.</p></li>
567    /// <li>
568    /// <p><code>network-interface.association.association-id</code> - The association ID returned when the network interface was associated with an IPv4 address.</p></li>
569    /// <li>
570    /// <p><code>network-interface.association.carrier-ip</code> - The customer-owned IP address.</p></li>
571    /// <li>
572    /// <p><code>network-interface.association.customer-owned-ip</code> - The customer-owned IP address.</p></li>
573    /// <li>
574    /// <p><code>network-interface.association.ip-owner-id</code> - The owner of the Elastic IP address (IPv4) associated with the network interface.</p></li>
575    /// <li>
576    /// <p><code>network-interface.association.public-dns-name</code> - The public DNS name.</p></li>
577    /// <li>
578    /// <p><code>network-interface.association.public-ip</code> - The address of the Elastic IP address (IPv4) bound to the network interface.</p></li>
579    /// <li>
580    /// <p><code>network-interface.attachment.attach-time</code> - The time that the network interface was attached to an instance.</p></li>
581    /// <li>
582    /// <p><code>network-interface.attachment.attachment-id</code> - The ID of the interface attachment.</p></li>
583    /// <li>
584    /// <p><code>network-interface.attachment.delete-on-termination</code> - Specifies whether the attachment is deleted when an instance is terminated.</p></li>
585    /// <li>
586    /// <p><code>network-interface.attachment.device-index</code> - The device index to which the network interface is attached.</p></li>
587    /// <li>
588    /// <p><code>network-interface.attachment.instance-id</code> - The ID of the instance to which the network interface is attached.</p></li>
589    /// <li>
590    /// <p><code>network-interface.attachment.instance-owner-id</code> - The owner ID of the instance to which the network interface is attached.</p></li>
591    /// <li>
592    /// <p><code>network-interface.attachment.network-card-index</code> - The index of the network card.</p></li>
593    /// <li>
594    /// <p><code>network-interface.attachment.status</code> - The status of the attachment (<code>attaching</code> | <code>attached</code> | <code>detaching</code> | <code>detached</code>).</p></li>
595    /// <li>
596    /// <p><code>network-interface.availability-zone</code> - The Availability Zone for the network interface.</p></li>
597    /// <li>
598    /// <p><code>network-interface.deny-all-igw-traffic</code> - A Boolean that indicates whether a network interface with an IPv6 address is unreachable from the public internet.</p></li>
599    /// <li>
600    /// <p><code>network-interface.description</code> - The description of the network interface.</p></li>
601    /// <li>
602    /// <p><code>network-interface.group-id</code> - The ID of a security group associated with the network interface.</p></li>
603    /// <li>
604    /// <p><code>network-interface.group-name</code> - The name of a security group associated with the network interface.</p></li>
605    /// <li>
606    /// <p><code>network-interface.ipv4-prefixes.ipv4-prefix</code> - The IPv4 prefixes that are assigned to the network interface.</p></li>
607    /// <li>
608    /// <p><code>network-interface.ipv6-address</code> - The IPv6 address associated with the network interface.</p></li>
609    /// <li>
610    /// <p><code>network-interface.ipv6-addresses.ipv6-address</code> - The IPv6 address associated with the network interface.</p></li>
611    /// <li>
612    /// <p><code>network-interface.ipv6-addresses.is-primary-ipv6</code> - A Boolean that indicates whether this is the primary IPv6 address.</p></li>
613    /// <li>
614    /// <p><code>network-interface.ipv6-native</code> - A Boolean that indicates whether this is an IPv6 only network interface.</p></li>
615    /// <li>
616    /// <p><code>network-interface.ipv6-prefixes.ipv6-prefix</code> - The IPv6 prefix assigned to the network interface.</p></li>
617    /// <li>
618    /// <p><code>network-interface.mac-address</code> - The MAC address of the network interface.</p></li>
619    /// <li>
620    /// <p><code>network-interface.network-interface-id</code> - The ID of the network interface.</p></li>
621    /// <li>
622    /// <p><code>network-interface.operator.managed</code> - A Boolean that indicates whether the instance has a managed network interface.</p></li>
623    /// <li>
624    /// <p><code>network-interface.operator.principal</code> - The principal that manages the network interface. Only valid for instances with managed network interfaces, where <code>managed</code> is <code>true</code>.</p></li>
625    /// <li>
626    /// <p><code>network-interface.outpost-arn</code> - The ARN of the Outpost.</p></li>
627    /// <li>
628    /// <p><code>network-interface.owner-id</code> - The ID of the owner of the network interface.</p></li>
629    /// <li>
630    /// <p><code>network-interface.private-dns-name</code> - The private DNS name of the network interface.</p></li>
631    /// <li>
632    /// <p><code>network-interface.private-ip-address</code> - The private IPv4 address.</p></li>
633    /// <li>
634    /// <p><code>network-interface.public-dns-name</code> - The public DNS name.</p></li>
635    /// <li>
636    /// <p><code>network-interface.requester-id</code> - The requester ID for the network interface.</p></li>
637    /// <li>
638    /// <p><code>network-interface.requester-managed</code> - Indicates whether the network interface is being managed by Amazon Web Services.</p></li>
639    /// <li>
640    /// <p><code>network-interface.status</code> - The status of the network interface (<code>available</code>) | <code>in-use</code>).</p></li>
641    /// <li>
642    /// <p><code>network-interface.source-dest-check</code> - Whether the network interface performs source/destination checking. A value of <code>true</code> means that checking is enabled, and <code>false</code> means that checking is disabled. The value must be <code>false</code> for the network interface to perform network address translation (NAT) in your VPC.</p></li>
643    /// <li>
644    /// <p><code>network-interface.subnet-id</code> - The ID of the subnet for the network interface.</p></li>
645    /// <li>
646    /// <p><code>network-interface.tag-key</code> - The key of a tag assigned to the network interface.</p></li>
647    /// <li>
648    /// <p><code>network-interface.tag-value</code> - The value of a tag assigned to the network interface.</p></li>
649    /// <li>
650    /// <p><code>network-interface.vpc-id</code> - The ID of the VPC for the network interface.</p></li>
651    /// <li>
652    /// <p><code>network-performance-options.bandwidth-weighting</code> - Where the performance boost is applied, if applicable. Valid values: <code>default</code>, <code>vpc-1</code>, <code>ebs-1</code>.</p></li>
653    /// <li>
654    /// <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed instance.</p></li>
655    /// <li>
656    /// <p><code>operator.principal</code> - The principal that manages the instance. Only valid for managed instances, where <code>managed</code> is <code>true</code>.</p></li>
657    /// <li>
658    /// <p><code>outpost-arn</code> - The Amazon Resource Name (ARN) of the Outpost.</p></li>
659    /// <li>
660    /// <p><code>owner-id</code> - The Amazon Web Services account ID of the instance owner.</p></li>
661    /// <li>
662    /// <p><code>placement-group-name</code> - The name of the placement group for the instance.</p></li>
663    /// <li>
664    /// <p><code>placement-partition-number</code> - The partition in which the instance is located.</p></li>
665    /// <li>
666    /// <p><code>platform</code> - The platform. To list only Windows instances, use <code>windows</code>.</p></li>
667    /// <li>
668    /// <p><code>platform-details</code> - The platform (<code>Linux/UNIX</code> | <code>Red Hat BYOL Linux</code> | <code> Red Hat Enterprise Linux</code> | <code>Red Hat Enterprise Linux with HA</code> | <code>Red Hat Enterprise Linux with High Availability</code> | <code>Red Hat Enterprise Linux with SQL Server Standard and HA</code> | <code>Red Hat Enterprise Linux with SQL Server Enterprise and HA</code> | <code>Red Hat Enterprise Linux with SQL Server Standard</code> | <code>Red Hat Enterprise Linux with SQL Server Web</code> | <code>Red Hat Enterprise Linux with SQL Server Enterprise</code> | <code>SQL Server Enterprise</code> | <code>SQL Server Standard</code> | <code>SQL Server Web</code> | <code>SUSE Linux</code> | <code>Ubuntu Pro</code> | <code>Windows</code> | <code>Windows BYOL</code> | <code>Windows with SQL Server Enterprise</code> | <code>Windows with SQL Server Standard</code> | <code>Windows with SQL Server Web</code>).</p></li>
669    /// <li>
670    /// <p><code>private-dns-name</code> - The private IPv4 DNS name of the instance.</p></li>
671    /// <li>
672    /// <p><code>private-dns-name-options.enable-resource-name-dns-a-record</code> - A Boolean that indicates whether to respond to DNS queries for instance hostnames with DNS A records.</p></li>
673    /// <li>
674    /// <p><code>private-dns-name-options.enable-resource-name-dns-aaaa-record</code> - A Boolean that indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.</p></li>
675    /// <li>
676    /// <p><code>private-dns-name-options.hostname-type</code> - The type of hostname (<code>ip-name</code> | <code>resource-name</code>).</p></li>
677    /// <li>
678    /// <p><code>private-ip-address</code> - The private IPv4 address of the instance. This can only be used to filter by the primary IP address of the network interface attached to the instance. To filter by additional IP addresses assigned to the network interface, use the filter <code>network-interface.addresses.private-ip-address</code>.</p></li>
679    /// <li>
680    /// <p><code>product-code</code> - The product code associated with the AMI used to launch the instance.</p></li>
681    /// <li>
682    /// <p><code>product-code.type</code> - The type of product code (<code>devpay</code> | <code>marketplace</code>).</p></li>
683    /// <li>
684    /// <p><code>ramdisk-id</code> - The RAM disk ID.</p></li>
685    /// <li>
686    /// <p>reason - The reason for the current state of the instance (for example, shows "User Initiated \[date\]" when you stop or terminate the instance). Similar to the state-reason-code filter.</p></li>
687    /// <li>
688    /// <p><code>requester-id</code> - The ID of the entity that launched the instance on your behalf (for example, Amazon Web Services Management Console, Amazon EC2 Auto Scaling, and so on).</p></li>
689    /// <li>
690    /// <p><code>reservation-id</code> - The ID of the instance's reservation. A reservation ID is created any time you launch an instance. A reservation ID has a one-to-one relationship with an instance launch request, but can be associated with more than one instance if you launch multiple instances using the same launch request. For example, if you launch one instance, you get one reservation ID. If you launch ten instances using the same launch request, you also get one reservation ID.</p></li>
691    /// <li>
692    /// <p><code>root-device-name</code> - The device name of the root device volume (for example, <code>/dev/sda1</code>).</p></li>
693    /// <li>
694    /// <p><code>root-device-type</code> - The type of the root device volume (<code>ebs</code> | <code>instance-store</code>).</p></li>
695    /// <li>
696    /// <p><code>source-dest-check</code> - Indicates whether the instance performs source/destination checking. A value of <code>true</code> means that checking is enabled, and <code>false</code> means that checking is disabled. The value must be <code>false</code> for the instance to perform network address translation (NAT) in your VPC.</p></li>
697    /// <li>
698    /// <p><code>spot-instance-request-id</code> - The ID of the Spot Instance request.</p></li>
699    /// <li>
700    /// <p><code>state-reason-code</code> - The reason code for the state change.</p></li>
701    /// <li>
702    /// <p><code>state-reason-message</code> - A message that describes the state change.</p></li>
703    /// <li>
704    /// <p><code>subnet-id</code> - The ID of the subnet for the instance.</p></li>
705    /// <li>
706    /// <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>
707    /// <li>
708    /// <p><code>tag-key</code> - The key of a tag assigned to the resource. Use this filter to find all resources that have a tag with a specific key, regardless of the tag value.</p></li>
709    /// <li>
710    /// <p><code>tenancy</code> - The tenancy of an instance (<code>dedicated</code> | <code>default</code> | <code>host</code>).</p></li>
711    /// <li>
712    /// <p><code>tpm-support</code> - Indicates if the instance is configured for NitroTPM support (<code>v2.0</code>).</p></li>
713    /// <li>
714    /// <p><code>usage-operation</code> - The usage operation value for the instance (<code>RunInstances</code> | <code>RunInstances:00g0</code> | <code>RunInstances:0010</code> | <code>RunInstances:1010</code> | <code>RunInstances:1014</code> | <code>RunInstances:1110</code> | <code>RunInstances:0014</code> | <code>RunInstances:0210</code> | <code>RunInstances:0110</code> | <code>RunInstances:0100</code> | <code>RunInstances:0004</code> | <code>RunInstances:0200</code> | <code>RunInstances:000g</code> | <code>RunInstances:0g00</code> | <code>RunInstances:0002</code> | <code>RunInstances:0800</code> | <code>RunInstances:0102</code> | <code>RunInstances:0006</code> | <code>RunInstances:0202</code>).</p></li>
715    /// <li>
716    /// <p><code>usage-operation-update-time</code> - The time that the usage operation was last updated, for example, <code>2022-09-15T17:15:20.000Z</code>.</p></li>
717    /// <li>
718    /// <p><code>virtualization-type</code> - The virtualization type of the instance (<code>paravirtual</code> | <code>hvm</code>).</p></li>
719    /// <li>
720    /// <p><code>vpc-id</code> - The ID of the VPC that the instance is running in.</p></li>
721    /// </ul>
722    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
723        self.inner = self.inner.set_filters(input);
724        self
725    }
726    /// <p>The filters.</p>
727    /// <ul>
728    /// <li>
729    /// <p><code>affinity</code> - The affinity setting for an instance running on a Dedicated Host (<code>default</code> | <code>host</code>).</p></li>
730    /// <li>
731    /// <p><code>architecture</code> - The instance architecture (<code>i386</code> | <code>x86_64</code> | <code>arm64</code>).</p></li>
732    /// <li>
733    /// <p><code>availability-zone</code> - The Availability Zone of the instance.</p></li>
734    /// <li>
735    /// <p><code>availability-zone-id</code> - The ID of the Availability Zone of the instance.</p></li>
736    /// <li>
737    /// <p><code>block-device-mapping.attach-time</code> - The attach time for an EBS volume mapped to the instance, for example, <code>2022-09-15T17:15:20.000Z</code>.</p></li>
738    /// <li>
739    /// <p><code>block-device-mapping.delete-on-termination</code> - A Boolean that indicates whether the EBS volume is deleted on instance termination.</p></li>
740    /// <li>
741    /// <p><code>block-device-mapping.device-name</code> - The device name specified in the block device mapping (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p></li>
742    /// <li>
743    /// <p><code>block-device-mapping.status</code> - The status for the EBS volume (<code>attaching</code> | <code>attached</code> | <code>detaching</code> | <code>detached</code>).</p></li>
744    /// <li>
745    /// <p><code>block-device-mapping.volume-id</code> - The volume ID of the EBS volume.</p></li>
746    /// <li>
747    /// <p><code>boot-mode</code> - The boot mode that was specified by the AMI (<code>legacy-bios</code> | <code>uefi</code> | <code>uefi-preferred</code>).</p></li>
748    /// <li>
749    /// <p><code>capacity-reservation-id</code> - The ID of the Capacity Reservation into which the instance was launched.</p></li>
750    /// <li>
751    /// <p><code>capacity-reservation-specification.capacity-reservation-preference</code> - The instance's Capacity Reservation preference (<code>open</code> | <code>none</code>).</p></li>
752    /// <li>
753    /// <p><code>capacity-reservation-specification.capacity-reservation-target.capacity-reservation-id</code> - The ID of the targeted Capacity Reservation.</p></li>
754    /// <li>
755    /// <p><code>capacity-reservation-specification.capacity-reservation-target.capacity-reservation-resource-group-arn</code> - The ARN of the targeted Capacity Reservation group.</p></li>
756    /// <li>
757    /// <p><code>client-token</code> - The idempotency token you provided when you launched the instance.</p></li>
758    /// <li>
759    /// <p><code>current-instance-boot-mode</code> - The boot mode that is used to launch the instance at launch or start (<code>legacy-bios</code> | <code>uefi</code>).</p></li>
760    /// <li>
761    /// <p><code>dns-name</code> - The public DNS name of the instance.</p></li>
762    /// <li>
763    /// <p><code>ebs-optimized</code> - A Boolean that indicates whether the instance is optimized for Amazon EBS I/O.</p></li>
764    /// <li>
765    /// <p><code>ena-support</code> - A Boolean that indicates whether the instance is enabled for enhanced networking with ENA.</p></li>
766    /// <li>
767    /// <p><code>enclave-options.enabled</code> - A Boolean that indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.</p></li>
768    /// <li>
769    /// <p><code>hibernation-options.configured</code> - A Boolean that indicates whether the instance is enabled for hibernation. A value of <code>true</code> means that the instance is enabled for hibernation.</p></li>
770    /// <li>
771    /// <p><code>host-id</code> - The ID of the Dedicated Host on which the instance is running, if applicable.</p></li>
772    /// <li>
773    /// <p><code>hypervisor</code> - The hypervisor type of the instance (<code>ovm</code> | <code>xen</code>). The value <code>xen</code> is used for both Xen and Nitro hypervisors.</p></li>
774    /// <li>
775    /// <p><code>iam-instance-profile.arn</code> - The instance profile associated with the instance. Specified as an ARN.</p></li>
776    /// <li>
777    /// <p><code>iam-instance-profile.id</code> - The instance profile associated with the instance. Specified as an ID.</p></li>
778    /// <li>
779    /// <p><code>image-id</code> - The ID of the image used to launch the instance.</p></li>
780    /// <li>
781    /// <p><code>instance-id</code> - The ID of the instance.</p></li>
782    /// <li>
783    /// <p><code>instance-lifecycle</code> - Indicates whether this is a Spot Instance, a Scheduled Instance, or a Capacity Block (<code>spot</code> | <code>scheduled</code> | <code>capacity-block</code>).</p></li>
784    /// <li>
785    /// <p><code>instance-state-code</code> - The state of the instance, as a 16-bit unsigned integer. The high byte is used for internal purposes and should be ignored. The low byte is set based on the state represented. The valid values are: 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).</p></li>
786    /// <li>
787    /// <p><code>instance-state-name</code> - The state of the instance (<code>pending</code> | <code>running</code> | <code>shutting-down</code> | <code>terminated</code> | <code>stopping</code> | <code>stopped</code>).</p></li>
788    /// <li>
789    /// <p><code>instance-type</code> - The type of instance (for example, <code>t2.micro</code>).</p></li>
790    /// <li>
791    /// <p><code>instance.group-id</code> - The ID of the security group for the instance.</p></li>
792    /// <li>
793    /// <p><code>instance.group-name</code> - The name of the security group for the instance.</p></li>
794    /// <li>
795    /// <p><code>ip-address</code> - The public IPv4 address of the instance.</p></li>
796    /// <li>
797    /// <p><code>ipv6-address</code> - The IPv6 address of the instance.</p></li>
798    /// <li>
799    /// <p><code>kernel-id</code> - The kernel ID.</p></li>
800    /// <li>
801    /// <p><code>key-name</code> - The name of the key pair used when the instance was launched.</p></li>
802    /// <li>
803    /// <p><code>launch-index</code> - When launching multiple instances, this is the index for the instance in the launch group (for example, 0, 1, 2, and so on).</p></li>
804    /// <li>
805    /// <p><code>launch-time</code> - The time when the instance was launched, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example, <code>2021-09-29T11:04:43.305Z</code>. You can use a wildcard (<code>*</code>), for example, <code>2021-09-29T*</code>, which matches an entire day.</p></li>
806    /// <li>
807    /// <p><code>maintenance-options.auto-recovery</code> - The current automatic recovery behavior of the instance (<code>disabled</code> | <code>default</code>).</p></li>
808    /// <li>
809    /// <p><code>metadata-options.http-endpoint</code> - The status of access to the HTTP metadata endpoint on your instance (<code>enabled</code> | <code>disabled</code>)</p></li>
810    /// <li>
811    /// <p><code>metadata-options.http-protocol-ipv4</code> - Indicates whether the IPv4 endpoint is enabled (<code>disabled</code> | <code>enabled</code>).</p></li>
812    /// <li>
813    /// <p><code>metadata-options.http-protocol-ipv6</code> - Indicates whether the IPv6 endpoint is enabled (<code>disabled</code> | <code>enabled</code>).</p></li>
814    /// <li>
815    /// <p><code>metadata-options.http-put-response-hop-limit</code> - The HTTP metadata request put response hop limit (integer, possible values <code>1</code> to <code>64</code>)</p></li>
816    /// <li>
817    /// <p><code>metadata-options.http-tokens</code> - The metadata request authorization state (<code>optional</code> | <code>required</code>)</p></li>
818    /// <li>
819    /// <p><code>metadata-options.instance-metadata-tags</code> - The status of access to instance tags from the instance metadata (<code>enabled</code> | <code>disabled</code>)</p></li>
820    /// <li>
821    /// <p><code>metadata-options.state</code> - The state of the metadata option changes (<code>pending</code> | <code>applied</code>).</p></li>
822    /// <li>
823    /// <p><code>monitoring-state</code> - Indicates whether detailed monitoring is enabled (<code>disabled</code> | <code>enabled</code>).</p></li>
824    /// <li>
825    /// <p><code>network-interface.addresses.association.allocation-id</code> - The allocation ID.</p></li>
826    /// <li>
827    /// <p><code>network-interface.addresses.association.association-id</code> - The association ID.</p></li>
828    /// <li>
829    /// <p><code>network-interface.addresses.association.carrier-ip</code> - The carrier IP address.</p></li>
830    /// <li>
831    /// <p><code>network-interface.addresses.association.customer-owned-ip</code> - The customer-owned IP address.</p></li>
832    /// <li>
833    /// <p><code>network-interface.addresses.association.ip-owner-id</code> - The owner ID of the private IPv4 address associated with the network interface.</p></li>
834    /// <li>
835    /// <p><code>network-interface.addresses.association.public-dns-name</code> - The public DNS name.</p></li>
836    /// <li>
837    /// <p><code>network-interface.addresses.association.public-ip</code> - The ID of the association of an Elastic IP address (IPv4) with a network interface.</p></li>
838    /// <li>
839    /// <p><code>network-interface.addresses.primary</code> - Specifies whether the IPv4 address of the network interface is the primary private IPv4 address.</p></li>
840    /// <li>
841    /// <p><code>network-interface.addresses.private-dns-name</code> - The private DNS name.</p></li>
842    /// <li>
843    /// <p><code>network-interface.addresses.private-ip-address</code> - The private IPv4 address associated with the network interface.</p></li>
844    /// <li>
845    /// <p><code>network-interface.association.allocation-id</code> - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.</p></li>
846    /// <li>
847    /// <p><code>network-interface.association.association-id</code> - The association ID returned when the network interface was associated with an IPv4 address.</p></li>
848    /// <li>
849    /// <p><code>network-interface.association.carrier-ip</code> - The customer-owned IP address.</p></li>
850    /// <li>
851    /// <p><code>network-interface.association.customer-owned-ip</code> - The customer-owned IP address.</p></li>
852    /// <li>
853    /// <p><code>network-interface.association.ip-owner-id</code> - The owner of the Elastic IP address (IPv4) associated with the network interface.</p></li>
854    /// <li>
855    /// <p><code>network-interface.association.public-dns-name</code> - The public DNS name.</p></li>
856    /// <li>
857    /// <p><code>network-interface.association.public-ip</code> - The address of the Elastic IP address (IPv4) bound to the network interface.</p></li>
858    /// <li>
859    /// <p><code>network-interface.attachment.attach-time</code> - The time that the network interface was attached to an instance.</p></li>
860    /// <li>
861    /// <p><code>network-interface.attachment.attachment-id</code> - The ID of the interface attachment.</p></li>
862    /// <li>
863    /// <p><code>network-interface.attachment.delete-on-termination</code> - Specifies whether the attachment is deleted when an instance is terminated.</p></li>
864    /// <li>
865    /// <p><code>network-interface.attachment.device-index</code> - The device index to which the network interface is attached.</p></li>
866    /// <li>
867    /// <p><code>network-interface.attachment.instance-id</code> - The ID of the instance to which the network interface is attached.</p></li>
868    /// <li>
869    /// <p><code>network-interface.attachment.instance-owner-id</code> - The owner ID of the instance to which the network interface is attached.</p></li>
870    /// <li>
871    /// <p><code>network-interface.attachment.network-card-index</code> - The index of the network card.</p></li>
872    /// <li>
873    /// <p><code>network-interface.attachment.status</code> - The status of the attachment (<code>attaching</code> | <code>attached</code> | <code>detaching</code> | <code>detached</code>).</p></li>
874    /// <li>
875    /// <p><code>network-interface.availability-zone</code> - The Availability Zone for the network interface.</p></li>
876    /// <li>
877    /// <p><code>network-interface.deny-all-igw-traffic</code> - A Boolean that indicates whether a network interface with an IPv6 address is unreachable from the public internet.</p></li>
878    /// <li>
879    /// <p><code>network-interface.description</code> - The description of the network interface.</p></li>
880    /// <li>
881    /// <p><code>network-interface.group-id</code> - The ID of a security group associated with the network interface.</p></li>
882    /// <li>
883    /// <p><code>network-interface.group-name</code> - The name of a security group associated with the network interface.</p></li>
884    /// <li>
885    /// <p><code>network-interface.ipv4-prefixes.ipv4-prefix</code> - The IPv4 prefixes that are assigned to the network interface.</p></li>
886    /// <li>
887    /// <p><code>network-interface.ipv6-address</code> - The IPv6 address associated with the network interface.</p></li>
888    /// <li>
889    /// <p><code>network-interface.ipv6-addresses.ipv6-address</code> - The IPv6 address associated with the network interface.</p></li>
890    /// <li>
891    /// <p><code>network-interface.ipv6-addresses.is-primary-ipv6</code> - A Boolean that indicates whether this is the primary IPv6 address.</p></li>
892    /// <li>
893    /// <p><code>network-interface.ipv6-native</code> - A Boolean that indicates whether this is an IPv6 only network interface.</p></li>
894    /// <li>
895    /// <p><code>network-interface.ipv6-prefixes.ipv6-prefix</code> - The IPv6 prefix assigned to the network interface.</p></li>
896    /// <li>
897    /// <p><code>network-interface.mac-address</code> - The MAC address of the network interface.</p></li>
898    /// <li>
899    /// <p><code>network-interface.network-interface-id</code> - The ID of the network interface.</p></li>
900    /// <li>
901    /// <p><code>network-interface.operator.managed</code> - A Boolean that indicates whether the instance has a managed network interface.</p></li>
902    /// <li>
903    /// <p><code>network-interface.operator.principal</code> - The principal that manages the network interface. Only valid for instances with managed network interfaces, where <code>managed</code> is <code>true</code>.</p></li>
904    /// <li>
905    /// <p><code>network-interface.outpost-arn</code> - The ARN of the Outpost.</p></li>
906    /// <li>
907    /// <p><code>network-interface.owner-id</code> - The ID of the owner of the network interface.</p></li>
908    /// <li>
909    /// <p><code>network-interface.private-dns-name</code> - The private DNS name of the network interface.</p></li>
910    /// <li>
911    /// <p><code>network-interface.private-ip-address</code> - The private IPv4 address.</p></li>
912    /// <li>
913    /// <p><code>network-interface.public-dns-name</code> - The public DNS name.</p></li>
914    /// <li>
915    /// <p><code>network-interface.requester-id</code> - The requester ID for the network interface.</p></li>
916    /// <li>
917    /// <p><code>network-interface.requester-managed</code> - Indicates whether the network interface is being managed by Amazon Web Services.</p></li>
918    /// <li>
919    /// <p><code>network-interface.status</code> - The status of the network interface (<code>available</code>) | <code>in-use</code>).</p></li>
920    /// <li>
921    /// <p><code>network-interface.source-dest-check</code> - Whether the network interface performs source/destination checking. A value of <code>true</code> means that checking is enabled, and <code>false</code> means that checking is disabled. The value must be <code>false</code> for the network interface to perform network address translation (NAT) in your VPC.</p></li>
922    /// <li>
923    /// <p><code>network-interface.subnet-id</code> - The ID of the subnet for the network interface.</p></li>
924    /// <li>
925    /// <p><code>network-interface.tag-key</code> - The key of a tag assigned to the network interface.</p></li>
926    /// <li>
927    /// <p><code>network-interface.tag-value</code> - The value of a tag assigned to the network interface.</p></li>
928    /// <li>
929    /// <p><code>network-interface.vpc-id</code> - The ID of the VPC for the network interface.</p></li>
930    /// <li>
931    /// <p><code>network-performance-options.bandwidth-weighting</code> - Where the performance boost is applied, if applicable. Valid values: <code>default</code>, <code>vpc-1</code>, <code>ebs-1</code>.</p></li>
932    /// <li>
933    /// <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed instance.</p></li>
934    /// <li>
935    /// <p><code>operator.principal</code> - The principal that manages the instance. Only valid for managed instances, where <code>managed</code> is <code>true</code>.</p></li>
936    /// <li>
937    /// <p><code>outpost-arn</code> - The Amazon Resource Name (ARN) of the Outpost.</p></li>
938    /// <li>
939    /// <p><code>owner-id</code> - The Amazon Web Services account ID of the instance owner.</p></li>
940    /// <li>
941    /// <p><code>placement-group-name</code> - The name of the placement group for the instance.</p></li>
942    /// <li>
943    /// <p><code>placement-partition-number</code> - The partition in which the instance is located.</p></li>
944    /// <li>
945    /// <p><code>platform</code> - The platform. To list only Windows instances, use <code>windows</code>.</p></li>
946    /// <li>
947    /// <p><code>platform-details</code> - The platform (<code>Linux/UNIX</code> | <code>Red Hat BYOL Linux</code> | <code> Red Hat Enterprise Linux</code> | <code>Red Hat Enterprise Linux with HA</code> | <code>Red Hat Enterprise Linux with High Availability</code> | <code>Red Hat Enterprise Linux with SQL Server Standard and HA</code> | <code>Red Hat Enterprise Linux with SQL Server Enterprise and HA</code> | <code>Red Hat Enterprise Linux with SQL Server Standard</code> | <code>Red Hat Enterprise Linux with SQL Server Web</code> | <code>Red Hat Enterprise Linux with SQL Server Enterprise</code> | <code>SQL Server Enterprise</code> | <code>SQL Server Standard</code> | <code>SQL Server Web</code> | <code>SUSE Linux</code> | <code>Ubuntu Pro</code> | <code>Windows</code> | <code>Windows BYOL</code> | <code>Windows with SQL Server Enterprise</code> | <code>Windows with SQL Server Standard</code> | <code>Windows with SQL Server Web</code>).</p></li>
948    /// <li>
949    /// <p><code>private-dns-name</code> - The private IPv4 DNS name of the instance.</p></li>
950    /// <li>
951    /// <p><code>private-dns-name-options.enable-resource-name-dns-a-record</code> - A Boolean that indicates whether to respond to DNS queries for instance hostnames with DNS A records.</p></li>
952    /// <li>
953    /// <p><code>private-dns-name-options.enable-resource-name-dns-aaaa-record</code> - A Boolean that indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.</p></li>
954    /// <li>
955    /// <p><code>private-dns-name-options.hostname-type</code> - The type of hostname (<code>ip-name</code> | <code>resource-name</code>).</p></li>
956    /// <li>
957    /// <p><code>private-ip-address</code> - The private IPv4 address of the instance. This can only be used to filter by the primary IP address of the network interface attached to the instance. To filter by additional IP addresses assigned to the network interface, use the filter <code>network-interface.addresses.private-ip-address</code>.</p></li>
958    /// <li>
959    /// <p><code>product-code</code> - The product code associated with the AMI used to launch the instance.</p></li>
960    /// <li>
961    /// <p><code>product-code.type</code> - The type of product code (<code>devpay</code> | <code>marketplace</code>).</p></li>
962    /// <li>
963    /// <p><code>ramdisk-id</code> - The RAM disk ID.</p></li>
964    /// <li>
965    /// <p>reason - The reason for the current state of the instance (for example, shows "User Initiated \[date\]" when you stop or terminate the instance). Similar to the state-reason-code filter.</p></li>
966    /// <li>
967    /// <p><code>requester-id</code> - The ID of the entity that launched the instance on your behalf (for example, Amazon Web Services Management Console, Amazon EC2 Auto Scaling, and so on).</p></li>
968    /// <li>
969    /// <p><code>reservation-id</code> - The ID of the instance's reservation. A reservation ID is created any time you launch an instance. A reservation ID has a one-to-one relationship with an instance launch request, but can be associated with more than one instance if you launch multiple instances using the same launch request. For example, if you launch one instance, you get one reservation ID. If you launch ten instances using the same launch request, you also get one reservation ID.</p></li>
970    /// <li>
971    /// <p><code>root-device-name</code> - The device name of the root device volume (for example, <code>/dev/sda1</code>).</p></li>
972    /// <li>
973    /// <p><code>root-device-type</code> - The type of the root device volume (<code>ebs</code> | <code>instance-store</code>).</p></li>
974    /// <li>
975    /// <p><code>source-dest-check</code> - Indicates whether the instance performs source/destination checking. A value of <code>true</code> means that checking is enabled, and <code>false</code> means that checking is disabled. The value must be <code>false</code> for the instance to perform network address translation (NAT) in your VPC.</p></li>
976    /// <li>
977    /// <p><code>spot-instance-request-id</code> - The ID of the Spot Instance request.</p></li>
978    /// <li>
979    /// <p><code>state-reason-code</code> - The reason code for the state change.</p></li>
980    /// <li>
981    /// <p><code>state-reason-message</code> - A message that describes the state change.</p></li>
982    /// <li>
983    /// <p><code>subnet-id</code> - The ID of the subnet for the instance.</p></li>
984    /// <li>
985    /// <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>
986    /// <li>
987    /// <p><code>tag-key</code> - The key of a tag assigned to the resource. Use this filter to find all resources that have a tag with a specific key, regardless of the tag value.</p></li>
988    /// <li>
989    /// <p><code>tenancy</code> - The tenancy of an instance (<code>dedicated</code> | <code>default</code> | <code>host</code>).</p></li>
990    /// <li>
991    /// <p><code>tpm-support</code> - Indicates if the instance is configured for NitroTPM support (<code>v2.0</code>).</p></li>
992    /// <li>
993    /// <p><code>usage-operation</code> - The usage operation value for the instance (<code>RunInstances</code> | <code>RunInstances:00g0</code> | <code>RunInstances:0010</code> | <code>RunInstances:1010</code> | <code>RunInstances:1014</code> | <code>RunInstances:1110</code> | <code>RunInstances:0014</code> | <code>RunInstances:0210</code> | <code>RunInstances:0110</code> | <code>RunInstances:0100</code> | <code>RunInstances:0004</code> | <code>RunInstances:0200</code> | <code>RunInstances:000g</code> | <code>RunInstances:0g00</code> | <code>RunInstances:0002</code> | <code>RunInstances:0800</code> | <code>RunInstances:0102</code> | <code>RunInstances:0006</code> | <code>RunInstances:0202</code>).</p></li>
994    /// <li>
995    /// <p><code>usage-operation-update-time</code> - The time that the usage operation was last updated, for example, <code>2022-09-15T17:15:20.000Z</code>.</p></li>
996    /// <li>
997    /// <p><code>virtualization-type</code> - The virtualization type of the instance (<code>paravirtual</code> | <code>hvm</code>).</p></li>
998    /// <li>
999    /// <p><code>vpc-id</code> - The ID of the VPC that the instance is running in.</p></li>
1000    /// </ul>
1001    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
1002        self.inner.get_filters()
1003    }
1004    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
1005    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1006        self.inner = self.inner.next_token(input.into());
1007        self
1008    }
1009    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
1010    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1011        self.inner = self.inner.set_next_token(input);
1012        self
1013    }
1014    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
1015    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
1016        self.inner.get_next_token()
1017    }
1018    /// <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>
1019    /// <p>You cannot specify this parameter and the instance IDs parameter in the same request.</p>
1020    pub fn max_results(mut self, input: i32) -> Self {
1021        self.inner = self.inner.max_results(input);
1022        self
1023    }
1024    /// <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>
1025    /// <p>You cannot specify this parameter and the instance IDs parameter in the same request.</p>
1026    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
1027        self.inner = self.inner.set_max_results(input);
1028        self
1029    }
1030    /// <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>
1031    /// <p>You cannot specify this parameter and the instance IDs parameter in the same request.</p>
1032    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
1033        self.inner.get_max_results()
1034    }
1035}