Skip to main content

aws_sdk_ec2/waiters/
network_interface_available.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3///
4/// Fluent builder for the `network_interface_available` waiter.
5///
6/// This builder is intended to be used similar to the other fluent builders for
7/// normal operations on the client. However, instead of a `send` method, it has
8/// a `wait` method that takes a maximum amount of time to wait.
9///
10/// Construct this fluent builder using the client by importing the
11/// [`Waiters`](crate::client::Waiters) trait and calling the methods
12/// prefixed with `wait_until`.
13///
14#[derive(::std::clone::Clone, ::std::fmt::Debug)]
15pub struct NetworkInterfaceAvailableFluentBuilder {
16    handle: ::std::sync::Arc<crate::client::Handle>,
17    inner: crate::operation::describe_network_interfaces::builders::DescribeNetworkInterfacesInputBuilder,
18}
19impl NetworkInterfaceAvailableFluentBuilder {
20    /// Creates a new `NetworkInterfaceAvailableFluentBuilder`.
21    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
22        Self {
23            handle,
24            inner: ::std::default::Default::default(),
25        }
26    }
27    /// Access the DescribeNetworkInterfaces as a reference.
28    pub fn as_input(&self) -> &crate::operation::describe_network_interfaces::builders::DescribeNetworkInterfacesInputBuilder {
29        &self.inner
30    }
31    /// Wait for `network_interface_available`
32    pub async fn wait(
33        self,
34        max_wait: ::std::time::Duration,
35    ) -> ::std::result::Result<
36        crate::waiters::network_interface_available::NetworkInterfaceAvailableFinalPoll,
37        crate::waiters::network_interface_available::WaitUntilNetworkInterfaceAvailableError,
38    > {
39        let input = self
40            .inner
41            .build()
42            .map_err(::aws_smithy_runtime_api::client::waiters::error::WaiterError::construction_failure)?;
43        let runtime_plugins = crate::operation::describe_network_interfaces::DescribeNetworkInterfaces::operation_runtime_plugins(
44            self.handle.runtime_plugins.clone(),
45            &self.handle.conf,
46            ::std::option::Option::None,
47        )
48        .with_operation_plugin(crate::sdk_feature_tracker::waiter::WaiterFeatureTrackerRuntimePlugin::new());
49        let mut cfg = ::aws_smithy_types::config_bag::ConfigBag::base();
50        let runtime_components_builder = runtime_plugins
51            .apply_client_configuration(&mut cfg)
52            .map_err(::aws_smithy_runtime_api::client::waiters::error::WaiterError::construction_failure)?;
53        let time_components = runtime_components_builder.into_time_components();
54        let sleep_impl = time_components.sleep_impl().expect("a sleep impl is required by waiters");
55        let time_source = time_components.time_source().expect("a time source is required by waiters");
56
57        let acceptor = move |result: ::std::result::Result<
58            &crate::operation::describe_network_interfaces::DescribeNetworkInterfacesOutput,
59            &crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError,
60        >| {
61            // Matches: {"output":{"path":"NetworkInterfaces[].Status","expected":"available","comparator":"allStringEquals"}}
62            if crate::waiters::matchers::match_describe_network_interfaces_4dd882351c65a1787(result) {
63                return ::aws_smithy_runtime::client::waiters::AcceptorState::Success;
64            }
65            // Matches: {"errorType":"InvalidNetworkInterfaceID.NotFound"}
66            if crate::waiters::matchers::match_describe_network_interfaces_aebacc4ff7354056b(result) {
67                return ::aws_smithy_runtime::client::waiters::AcceptorState::Failure;
68            }
69            ::aws_smithy_runtime::client::waiters::AcceptorState::NoAcceptorsMatched
70        };
71        let operation = move || {
72            let input = input.clone();
73            let runtime_plugins = runtime_plugins.clone();
74            async move { crate::operation::describe_network_interfaces::DescribeNetworkInterfaces::orchestrate(&runtime_plugins, input).await }
75        };
76        let orchestrator = ::aws_smithy_runtime::client::waiters::WaiterOrchestrator::builder()
77            .min_delay(::std::time::Duration::from_secs(20))
78            .max_delay(::std::time::Duration::from_secs(120))
79            .max_wait(max_wait)
80            .time_source(time_source)
81            .sleep_impl(sleep_impl)
82            .acceptor(acceptor)
83            .operation(operation)
84            .build();
85        ::aws_smithy_runtime::client::waiters::attach_waiter_tracing_span(orchestrator.orchestrate()).await
86    }
87    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
88    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
89        self.inner = self.inner.next_token(input.into());
90        self
91    }
92    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
93    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
94        self.inner = self.inner.set_next_token(input);
95        self
96    }
97    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
98    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
99        self.inner.get_next_token()
100    }
101    /// <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. You cannot specify this parameter and the network interface IDs parameter in the same request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
102    pub fn max_results(mut self, input: i32) -> Self {
103        self.inner = self.inner.max_results(input);
104        self
105    }
106    /// <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. You cannot specify this parameter and the network interface IDs parameter in the same request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
107    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
108        self.inner = self.inner.set_max_results(input);
109        self
110    }
111    /// <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. You cannot specify this parameter and the network interface IDs parameter in the same request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
112    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
113        self.inner.get_max_results()
114    }
115    /// <p>Indicates whether to include managed resources in the output. If this parameter is set to <code>true</code>, the output includes resources that are managed by Amazon Web Services services, even if managed resource visibility is set to hidden.</p>
116    pub fn include_managed_resources(mut self, input: bool) -> Self {
117        self.inner = self.inner.include_managed_resources(input);
118        self
119    }
120    /// <p>Indicates whether to include managed resources in the output. If this parameter is set to <code>true</code>, the output includes resources that are managed by Amazon Web Services services, even if managed resource visibility is set to hidden.</p>
121    pub fn set_include_managed_resources(mut self, input: ::std::option::Option<bool>) -> Self {
122        self.inner = self.inner.set_include_managed_resources(input);
123        self
124    }
125    /// <p>Indicates whether to include managed resources in the output. If this parameter is set to <code>true</code>, the output includes resources that are managed by Amazon Web Services services, even if managed resource visibility is set to hidden.</p>
126    pub fn get_include_managed_resources(&self) -> &::std::option::Option<bool> {
127        self.inner.get_include_managed_resources()
128    }
129    /// <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>
130    pub fn dry_run(mut self, input: bool) -> Self {
131        self.inner = self.inner.dry_run(input);
132        self
133    }
134    /// <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>
135    pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
136        self.inner = self.inner.set_dry_run(input);
137        self
138    }
139    /// <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>
140    pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
141        self.inner.get_dry_run()
142    }
143    ///
144    /// Appends an item to `NetworkInterfaceIds`.
145    ///
146    /// To override the contents of this collection use [`set_network_interface_ids`](Self::set_network_interface_ids).
147    ///
148    /// <p>The network interface IDs.</p>
149    /// <p>Default: Describes all your network interfaces.</p>
150    pub fn network_interface_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
151        self.inner = self.inner.network_interface_ids(input.into());
152        self
153    }
154    /// <p>The network interface IDs.</p>
155    /// <p>Default: Describes all your network interfaces.</p>
156    pub fn set_network_interface_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
157        self.inner = self.inner.set_network_interface_ids(input);
158        self
159    }
160    /// <p>The network interface IDs.</p>
161    /// <p>Default: Describes all your network interfaces.</p>
162    pub fn get_network_interface_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
163        self.inner.get_network_interface_ids()
164    }
165    ///
166    /// Appends an item to `Filters`.
167    ///
168    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
169    ///
170    /// <p>One or more filters.</p>
171    /// <ul>
172    /// <li>
173    /// <p><code>association.allocation-id</code> - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.</p></li>
174    /// <li>
175    /// <p><code>association.association-id</code> - The association ID returned when the network interface was associated with an IPv4 address.</p></li>
176    /// <li>
177    /// <p><code>addresses.association.owner-id</code> - The owner ID of the addresses associated with the network interface.</p></li>
178    /// <li>
179    /// <p><code>addresses.association.public-ip</code> - The association ID returned when the network interface was associated with the Elastic IP address (IPv4).</p></li>
180    /// <li>
181    /// <p><code>addresses.primary</code> - Whether the private IPv4 address is the primary IP address associated with the network interface.</p></li>
182    /// <li>
183    /// <p><code>addresses.private-ip-address</code> - The private IPv4 addresses associated with the network interface.</p></li>
184    /// <li>
185    /// <p><code>association.ip-owner-id</code> - The owner of the Elastic IP address (IPv4) associated with the network interface.</p></li>
186    /// <li>
187    /// <p><code>association.public-ip</code> - The address of the Elastic IP address (IPv4) bound to the network interface.</p></li>
188    /// <li>
189    /// <p><code>association.public-dns-name</code> - The public DNS name for the network interface (IPv4).</p></li>
190    /// <li>
191    /// <p><code>attachment.attach-time</code> - The time that the network interface was attached to an instance.</p></li>
192    /// <li>
193    /// <p><code>attachment.attachment-id</code> - The ID of the interface attachment.</p></li>
194    /// <li>
195    /// <p><code>attachment.delete-on-termination</code> - Indicates whether the attachment is deleted when an instance is terminated.</p></li>
196    /// <li>
197    /// <p><code>attachment.device-index</code> - The device index to which the network interface is attached.</p></li>
198    /// <li>
199    /// <p><code>attachment.instance-id</code> - The ID of the instance to which the network interface is attached.</p></li>
200    /// <li>
201    /// <p><code>attachment.instance-owner-id</code> - The owner ID of the instance to which the network interface is attached.</p></li>
202    /// <li>
203    /// <p><code>attachment.status</code> - The status of the attachment (<code>attaching</code> | <code>attached</code> | <code>detaching</code> | <code>detached</code>).</p></li>
204    /// <li>
205    /// <p><code>availability-zone</code> - The Availability Zone of the network interface.</p></li>
206    /// <li>
207    /// <p><code>availability-zone-id</code> - The ID of the Availability Zone of the network interface.</p></li>
208    /// <li>
209    /// <p><code>description</code> - The description of the network interface.</p></li>
210    /// <li>
211    /// <p><code>group-id</code> - The ID of a security group associated with the network interface.</p></li>
212    /// <li>
213    /// <p><code>ipv6-addresses.ipv6-address</code> - An IPv6 address associated with the network interface.</p></li>
214    /// <li>
215    /// <p><code>interface-type</code> - The type of network interface (<code>api_gateway_managed</code> | <code>aws_codestar_connections_managed</code> | <code>branch</code> | <code>ec2_instance_connect_endpoint</code> | <code>efa</code> | <code>efa-only</code> | <code>efs</code> | <code>evs</code> | <code>gateway_load_balancer</code> | <code>gateway_load_balancer_endpoint</code> | <code>global_accelerator_managed</code> | <code>interface</code> | <code>iot_rules_managed</code> | <code>lambda</code> | <code>load_balancer</code> | <code>nat_gateway</code> | <code>network_load_balancer</code> | <code>quicksight</code> | <code>transit_gateway</code> | <code>trunk</code> | <code>vpc_endpoint</code>).</p></li>
216    /// <li>
217    /// <p><code>mac-address</code> - The MAC address of the network interface.</p></li>
218    /// <li>
219    /// <p><code>network-interface-id</code> - The ID of the network interface.</p></li>
220    /// <li>
221    /// <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed network interface.</p></li>
222    /// <li>
223    /// <p><code>operator.principal</code> - The principal that manages the network interface. Only valid for managed network interfaces, where <code>managed</code> is <code>true</code>.</p></li>
224    /// <li>
225    /// <p><code>owner-id</code> - The Amazon Web Services account ID of the network interface owner.</p></li>
226    /// <li>
227    /// <p><code>private-dns-name</code> - The private DNS name of the network interface (IPv4).</p></li>
228    /// <li>
229    /// <p><code>private-ip-address</code> - The private IPv4 address or addresses of the network interface.</p></li>
230    /// <li>
231    /// <p><code>requester-id</code> - The alias or Amazon Web Services account ID of the principal or service that created the network interface.</p></li>
232    /// <li>
233    /// <p><code>requester-managed</code> - Indicates whether the network interface is being managed by an Amazon Web Services service (for example, Amazon Web Services Management Console, Auto Scaling, and so on).</p></li>
234    /// <li>
235    /// <p><code>source-dest-check</code> - Indicates whether the network interface performs source/destination checking. A value of <code>true</code> means checking is enabled, and <code>false</code> means 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>
236    /// <li>
237    /// <p><code>status</code> - The status of the network interface. If the network interface is not attached to an instance, the status is <code>available</code>; if a network interface is attached to an instance the status is <code>in-use</code>.</p></li>
238    /// <li>
239    /// <p><code>subnet-id</code> - The ID of the subnet for the network interface.</p></li>
240    /// <li>
241    /// <p><code>tag</code>:<key>
242    /// - 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
243    /// <code>Owner</code> and the value
244    /// <code>TeamA</code>, specify
245    /// <code>tag:Owner</code> for the filter name and
246    /// <code>TeamA</code> for the filter value.
247    /// </key></p></li>
248    /// <li>
249    /// <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>
250    /// <li>
251    /// <p><code>vpc-id</code> - The ID of the VPC for the network interface.</p></li>
252    /// </ul>
253    pub fn filters(mut self, input: crate::types::Filter) -> Self {
254        self.inner = self.inner.filters(input);
255        self
256    }
257    /// <p>One or more filters.</p>
258    /// <ul>
259    /// <li>
260    /// <p><code>association.allocation-id</code> - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.</p></li>
261    /// <li>
262    /// <p><code>association.association-id</code> - The association ID returned when the network interface was associated with an IPv4 address.</p></li>
263    /// <li>
264    /// <p><code>addresses.association.owner-id</code> - The owner ID of the addresses associated with the network interface.</p></li>
265    /// <li>
266    /// <p><code>addresses.association.public-ip</code> - The association ID returned when the network interface was associated with the Elastic IP address (IPv4).</p></li>
267    /// <li>
268    /// <p><code>addresses.primary</code> - Whether the private IPv4 address is the primary IP address associated with the network interface.</p></li>
269    /// <li>
270    /// <p><code>addresses.private-ip-address</code> - The private IPv4 addresses associated with the network interface.</p></li>
271    /// <li>
272    /// <p><code>association.ip-owner-id</code> - The owner of the Elastic IP address (IPv4) associated with the network interface.</p></li>
273    /// <li>
274    /// <p><code>association.public-ip</code> - The address of the Elastic IP address (IPv4) bound to the network interface.</p></li>
275    /// <li>
276    /// <p><code>association.public-dns-name</code> - The public DNS name for the network interface (IPv4).</p></li>
277    /// <li>
278    /// <p><code>attachment.attach-time</code> - The time that the network interface was attached to an instance.</p></li>
279    /// <li>
280    /// <p><code>attachment.attachment-id</code> - The ID of the interface attachment.</p></li>
281    /// <li>
282    /// <p><code>attachment.delete-on-termination</code> - Indicates whether the attachment is deleted when an instance is terminated.</p></li>
283    /// <li>
284    /// <p><code>attachment.device-index</code> - The device index to which the network interface is attached.</p></li>
285    /// <li>
286    /// <p><code>attachment.instance-id</code> - The ID of the instance to which the network interface is attached.</p></li>
287    /// <li>
288    /// <p><code>attachment.instance-owner-id</code> - The owner ID of the instance to which the network interface is attached.</p></li>
289    /// <li>
290    /// <p><code>attachment.status</code> - The status of the attachment (<code>attaching</code> | <code>attached</code> | <code>detaching</code> | <code>detached</code>).</p></li>
291    /// <li>
292    /// <p><code>availability-zone</code> - The Availability Zone of the network interface.</p></li>
293    /// <li>
294    /// <p><code>availability-zone-id</code> - The ID of the Availability Zone of the network interface.</p></li>
295    /// <li>
296    /// <p><code>description</code> - The description of the network interface.</p></li>
297    /// <li>
298    /// <p><code>group-id</code> - The ID of a security group associated with the network interface.</p></li>
299    /// <li>
300    /// <p><code>ipv6-addresses.ipv6-address</code> - An IPv6 address associated with the network interface.</p></li>
301    /// <li>
302    /// <p><code>interface-type</code> - The type of network interface (<code>api_gateway_managed</code> | <code>aws_codestar_connections_managed</code> | <code>branch</code> | <code>ec2_instance_connect_endpoint</code> | <code>efa</code> | <code>efa-only</code> | <code>efs</code> | <code>evs</code> | <code>gateway_load_balancer</code> | <code>gateway_load_balancer_endpoint</code> | <code>global_accelerator_managed</code> | <code>interface</code> | <code>iot_rules_managed</code> | <code>lambda</code> | <code>load_balancer</code> | <code>nat_gateway</code> | <code>network_load_balancer</code> | <code>quicksight</code> | <code>transit_gateway</code> | <code>trunk</code> | <code>vpc_endpoint</code>).</p></li>
303    /// <li>
304    /// <p><code>mac-address</code> - The MAC address of the network interface.</p></li>
305    /// <li>
306    /// <p><code>network-interface-id</code> - The ID of the network interface.</p></li>
307    /// <li>
308    /// <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed network interface.</p></li>
309    /// <li>
310    /// <p><code>operator.principal</code> - The principal that manages the network interface. Only valid for managed network interfaces, where <code>managed</code> is <code>true</code>.</p></li>
311    /// <li>
312    /// <p><code>owner-id</code> - The Amazon Web Services account ID of the network interface owner.</p></li>
313    /// <li>
314    /// <p><code>private-dns-name</code> - The private DNS name of the network interface (IPv4).</p></li>
315    /// <li>
316    /// <p><code>private-ip-address</code> - The private IPv4 address or addresses of the network interface.</p></li>
317    /// <li>
318    /// <p><code>requester-id</code> - The alias or Amazon Web Services account ID of the principal or service that created the network interface.</p></li>
319    /// <li>
320    /// <p><code>requester-managed</code> - Indicates whether the network interface is being managed by an Amazon Web Services service (for example, Amazon Web Services Management Console, Auto Scaling, and so on).</p></li>
321    /// <li>
322    /// <p><code>source-dest-check</code> - Indicates whether the network interface performs source/destination checking. A value of <code>true</code> means checking is enabled, and <code>false</code> means 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>
323    /// <li>
324    /// <p><code>status</code> - The status of the network interface. If the network interface is not attached to an instance, the status is <code>available</code>; if a network interface is attached to an instance the status is <code>in-use</code>.</p></li>
325    /// <li>
326    /// <p><code>subnet-id</code> - The ID of the subnet for the network interface.</p></li>
327    /// <li>
328    /// <p><code>tag</code>:<key>
329    /// - 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
330    /// <code>Owner</code> and the value
331    /// <code>TeamA</code>, specify
332    /// <code>tag:Owner</code> for the filter name and
333    /// <code>TeamA</code> for the filter value.
334    /// </key></p></li>
335    /// <li>
336    /// <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>
337    /// <li>
338    /// <p><code>vpc-id</code> - The ID of the VPC for the network interface.</p></li>
339    /// </ul>
340    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
341        self.inner = self.inner.set_filters(input);
342        self
343    }
344    /// <p>One or more filters.</p>
345    /// <ul>
346    /// <li>
347    /// <p><code>association.allocation-id</code> - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.</p></li>
348    /// <li>
349    /// <p><code>association.association-id</code> - The association ID returned when the network interface was associated with an IPv4 address.</p></li>
350    /// <li>
351    /// <p><code>addresses.association.owner-id</code> - The owner ID of the addresses associated with the network interface.</p></li>
352    /// <li>
353    /// <p><code>addresses.association.public-ip</code> - The association ID returned when the network interface was associated with the Elastic IP address (IPv4).</p></li>
354    /// <li>
355    /// <p><code>addresses.primary</code> - Whether the private IPv4 address is the primary IP address associated with the network interface.</p></li>
356    /// <li>
357    /// <p><code>addresses.private-ip-address</code> - The private IPv4 addresses associated with the network interface.</p></li>
358    /// <li>
359    /// <p><code>association.ip-owner-id</code> - The owner of the Elastic IP address (IPv4) associated with the network interface.</p></li>
360    /// <li>
361    /// <p><code>association.public-ip</code> - The address of the Elastic IP address (IPv4) bound to the network interface.</p></li>
362    /// <li>
363    /// <p><code>association.public-dns-name</code> - The public DNS name for the network interface (IPv4).</p></li>
364    /// <li>
365    /// <p><code>attachment.attach-time</code> - The time that the network interface was attached to an instance.</p></li>
366    /// <li>
367    /// <p><code>attachment.attachment-id</code> - The ID of the interface attachment.</p></li>
368    /// <li>
369    /// <p><code>attachment.delete-on-termination</code> - Indicates whether the attachment is deleted when an instance is terminated.</p></li>
370    /// <li>
371    /// <p><code>attachment.device-index</code> - The device index to which the network interface is attached.</p></li>
372    /// <li>
373    /// <p><code>attachment.instance-id</code> - The ID of the instance to which the network interface is attached.</p></li>
374    /// <li>
375    /// <p><code>attachment.instance-owner-id</code> - The owner ID of the instance to which the network interface is attached.</p></li>
376    /// <li>
377    /// <p><code>attachment.status</code> - The status of the attachment (<code>attaching</code> | <code>attached</code> | <code>detaching</code> | <code>detached</code>).</p></li>
378    /// <li>
379    /// <p><code>availability-zone</code> - The Availability Zone of the network interface.</p></li>
380    /// <li>
381    /// <p><code>availability-zone-id</code> - The ID of the Availability Zone of the network interface.</p></li>
382    /// <li>
383    /// <p><code>description</code> - The description of the network interface.</p></li>
384    /// <li>
385    /// <p><code>group-id</code> - The ID of a security group associated with the network interface.</p></li>
386    /// <li>
387    /// <p><code>ipv6-addresses.ipv6-address</code> - An IPv6 address associated with the network interface.</p></li>
388    /// <li>
389    /// <p><code>interface-type</code> - The type of network interface (<code>api_gateway_managed</code> | <code>aws_codestar_connections_managed</code> | <code>branch</code> | <code>ec2_instance_connect_endpoint</code> | <code>efa</code> | <code>efa-only</code> | <code>efs</code> | <code>evs</code> | <code>gateway_load_balancer</code> | <code>gateway_load_balancer_endpoint</code> | <code>global_accelerator_managed</code> | <code>interface</code> | <code>iot_rules_managed</code> | <code>lambda</code> | <code>load_balancer</code> | <code>nat_gateway</code> | <code>network_load_balancer</code> | <code>quicksight</code> | <code>transit_gateway</code> | <code>trunk</code> | <code>vpc_endpoint</code>).</p></li>
390    /// <li>
391    /// <p><code>mac-address</code> - The MAC address of the network interface.</p></li>
392    /// <li>
393    /// <p><code>network-interface-id</code> - The ID of the network interface.</p></li>
394    /// <li>
395    /// <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed network interface.</p></li>
396    /// <li>
397    /// <p><code>operator.principal</code> - The principal that manages the network interface. Only valid for managed network interfaces, where <code>managed</code> is <code>true</code>.</p></li>
398    /// <li>
399    /// <p><code>owner-id</code> - The Amazon Web Services account ID of the network interface owner.</p></li>
400    /// <li>
401    /// <p><code>private-dns-name</code> - The private DNS name of the network interface (IPv4).</p></li>
402    /// <li>
403    /// <p><code>private-ip-address</code> - The private IPv4 address or addresses of the network interface.</p></li>
404    /// <li>
405    /// <p><code>requester-id</code> - The alias or Amazon Web Services account ID of the principal or service that created the network interface.</p></li>
406    /// <li>
407    /// <p><code>requester-managed</code> - Indicates whether the network interface is being managed by an Amazon Web Services service (for example, Amazon Web Services Management Console, Auto Scaling, and so on).</p></li>
408    /// <li>
409    /// <p><code>source-dest-check</code> - Indicates whether the network interface performs source/destination checking. A value of <code>true</code> means checking is enabled, and <code>false</code> means 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>
410    /// <li>
411    /// <p><code>status</code> - The status of the network interface. If the network interface is not attached to an instance, the status is <code>available</code>; if a network interface is attached to an instance the status is <code>in-use</code>.</p></li>
412    /// <li>
413    /// <p><code>subnet-id</code> - The ID of the subnet for the network interface.</p></li>
414    /// <li>
415    /// <p><code>tag</code>:<key>
416    /// - 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
417    /// <code>Owner</code> and the value
418    /// <code>TeamA</code>, specify
419    /// <code>tag:Owner</code> for the filter name and
420    /// <code>TeamA</code> for the filter value.
421    /// </key></p></li>
422    /// <li>
423    /// <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>
424    /// <li>
425    /// <p><code>vpc-id</code> - The ID of the VPC for the network interface.</p></li>
426    /// </ul>
427    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
428        self.inner.get_filters()
429    }
430}
431
432/// Successful return type for the `network_interface_available` waiter.
433pub type NetworkInterfaceAvailableFinalPoll = ::aws_smithy_runtime_api::client::waiters::FinalPoll<
434    crate::operation::describe_network_interfaces::DescribeNetworkInterfacesOutput,
435    ::aws_smithy_runtime_api::client::result::SdkError<
436        crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError,
437        ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
438    >,
439>;
440
441/// Error type for the `network_interface_available` waiter.
442pub type WaitUntilNetworkInterfaceAvailableError = ::aws_smithy_runtime_api::client::waiters::error::WaiterError<
443    crate::operation::describe_network_interfaces::DescribeNetworkInterfacesOutput,
444    crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError,
445>;