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>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>
116 pub fn dry_run(mut self, input: bool) -> Self {
117 self.inner = self.inner.dry_run(input);
118 self
119 }
120 /// <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>
121 pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
122 self.inner = self.inner.set_dry_run(input);
123 self
124 }
125 /// <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>
126 pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
127 self.inner.get_dry_run()
128 }
129 ///
130 /// Appends an item to `NetworkInterfaceIds`.
131 ///
132 /// To override the contents of this collection use [`set_network_interface_ids`](Self::set_network_interface_ids).
133 ///
134 /// <p>The network interface IDs.</p>
135 /// <p>Default: Describes all your network interfaces.</p>
136 pub fn network_interface_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
137 self.inner = self.inner.network_interface_ids(input.into());
138 self
139 }
140 /// <p>The network interface IDs.</p>
141 /// <p>Default: Describes all your network interfaces.</p>
142 pub fn set_network_interface_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
143 self.inner = self.inner.set_network_interface_ids(input);
144 self
145 }
146 /// <p>The network interface IDs.</p>
147 /// <p>Default: Describes all your network interfaces.</p>
148 pub fn get_network_interface_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
149 self.inner.get_network_interface_ids()
150 }
151 ///
152 /// Appends an item to `Filters`.
153 ///
154 /// To override the contents of this collection use [`set_filters`](Self::set_filters).
155 ///
156 /// <p>One or more filters.</p>
157 /// <ul>
158 /// <li>
159 /// <p><code>association.allocation-id</code> - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.</p></li>
160 /// <li>
161 /// <p><code>association.association-id</code> - The association ID returned when the network interface was associated with an IPv4 address.</p></li>
162 /// <li>
163 /// <p><code>addresses.association.owner-id</code> - The owner ID of the addresses associated with the network interface.</p></li>
164 /// <li>
165 /// <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>
166 /// <li>
167 /// <p><code>addresses.primary</code> - Whether the private IPv4 address is the primary IP address associated with the network interface.</p></li>
168 /// <li>
169 /// <p><code>addresses.private-ip-address</code> - The private IPv4 addresses associated with the network interface.</p></li>
170 /// <li>
171 /// <p><code>association.ip-owner-id</code> - The owner of the Elastic IP address (IPv4) associated with the network interface.</p></li>
172 /// <li>
173 /// <p><code>association.public-ip</code> - The address of the Elastic IP address (IPv4) bound to the network interface.</p></li>
174 /// <li>
175 /// <p><code>association.public-dns-name</code> - The public DNS name for the network interface (IPv4).</p></li>
176 /// <li>
177 /// <p><code>attachment.attach-time</code> - The time that the network interface was attached to an instance.</p></li>
178 /// <li>
179 /// <p><code>attachment.attachment-id</code> - The ID of the interface attachment.</p></li>
180 /// <li>
181 /// <p><code>attachment.delete-on-termination</code> - Indicates whether the attachment is deleted when an instance is terminated.</p></li>
182 /// <li>
183 /// <p><code>attachment.device-index</code> - The device index to which the network interface is attached.</p></li>
184 /// <li>
185 /// <p><code>attachment.instance-id</code> - The ID of the instance to which the network interface is attached.</p></li>
186 /// <li>
187 /// <p><code>attachment.instance-owner-id</code> - The owner ID of the instance to which the network interface is attached.</p></li>
188 /// <li>
189 /// <p><code>attachment.status</code> - The status of the attachment (<code>attaching</code> | <code>attached</code> | <code>detaching</code> | <code>detached</code>).</p></li>
190 /// <li>
191 /// <p><code>availability-zone</code> - The Availability Zone of the network interface.</p></li>
192 /// <li>
193 /// <p><code>description</code> - The description of the network interface.</p></li>
194 /// <li>
195 /// <p><code>group-id</code> - The ID of a security group associated with the network interface.</p></li>
196 /// <li>
197 /// <p><code>ipv6-addresses.ipv6-address</code> - An IPv6 address associated with the network interface.</p></li>
198 /// <li>
199 /// <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>
200 /// <li>
201 /// <p><code>mac-address</code> - The MAC address of the network interface.</p></li>
202 /// <li>
203 /// <p><code>network-interface-id</code> - The ID of the network interface.</p></li>
204 /// <li>
205 /// <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed network interface.</p></li>
206 /// <li>
207 /// <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>
208 /// <li>
209 /// <p><code>owner-id</code> - The Amazon Web Services account ID of the network interface owner.</p></li>
210 /// <li>
211 /// <p><code>private-dns-name</code> - The private DNS name of the network interface (IPv4).</p></li>
212 /// <li>
213 /// <p><code>private-ip-address</code> - The private IPv4 address or addresses of the network interface.</p></li>
214 /// <li>
215 /// <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>
216 /// <li>
217 /// <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>
218 /// <li>
219 /// <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>
220 /// <li>
221 /// <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>
222 /// <li>
223 /// <p><code>subnet-id</code> - The ID of the subnet for the network interface.</p></li>
224 /// <li>
225 /// <p><code>tag</code>:<key>
226 /// - 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
227 /// <code>Owner</code> and the value
228 /// <code>TeamA</code>, specify
229 /// <code>tag:Owner</code> for the filter name and
230 /// <code>TeamA</code> for the filter value.
231 /// </key></p></li>
232 /// <li>
233 /// <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>
234 /// <li>
235 /// <p><code>vpc-id</code> - The ID of the VPC for the network interface.</p></li>
236 /// </ul>
237 pub fn filters(mut self, input: crate::types::Filter) -> Self {
238 self.inner = self.inner.filters(input);
239 self
240 }
241 /// <p>One or more filters.</p>
242 /// <ul>
243 /// <li>
244 /// <p><code>association.allocation-id</code> - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.</p></li>
245 /// <li>
246 /// <p><code>association.association-id</code> - The association ID returned when the network interface was associated with an IPv4 address.</p></li>
247 /// <li>
248 /// <p><code>addresses.association.owner-id</code> - The owner ID of the addresses associated with the network interface.</p></li>
249 /// <li>
250 /// <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>
251 /// <li>
252 /// <p><code>addresses.primary</code> - Whether the private IPv4 address is the primary IP address associated with the network interface.</p></li>
253 /// <li>
254 /// <p><code>addresses.private-ip-address</code> - The private IPv4 addresses associated with the network interface.</p></li>
255 /// <li>
256 /// <p><code>association.ip-owner-id</code> - The owner of the Elastic IP address (IPv4) associated with the network interface.</p></li>
257 /// <li>
258 /// <p><code>association.public-ip</code> - The address of the Elastic IP address (IPv4) bound to the network interface.</p></li>
259 /// <li>
260 /// <p><code>association.public-dns-name</code> - The public DNS name for the network interface (IPv4).</p></li>
261 /// <li>
262 /// <p><code>attachment.attach-time</code> - The time that the network interface was attached to an instance.</p></li>
263 /// <li>
264 /// <p><code>attachment.attachment-id</code> - The ID of the interface attachment.</p></li>
265 /// <li>
266 /// <p><code>attachment.delete-on-termination</code> - Indicates whether the attachment is deleted when an instance is terminated.</p></li>
267 /// <li>
268 /// <p><code>attachment.device-index</code> - The device index to which the network interface is attached.</p></li>
269 /// <li>
270 /// <p><code>attachment.instance-id</code> - The ID of the instance to which the network interface is attached.</p></li>
271 /// <li>
272 /// <p><code>attachment.instance-owner-id</code> - The owner ID of the instance to which the network interface is attached.</p></li>
273 /// <li>
274 /// <p><code>attachment.status</code> - The status of the attachment (<code>attaching</code> | <code>attached</code> | <code>detaching</code> | <code>detached</code>).</p></li>
275 /// <li>
276 /// <p><code>availability-zone</code> - The Availability Zone of the network interface.</p></li>
277 /// <li>
278 /// <p><code>description</code> - The description of the network interface.</p></li>
279 /// <li>
280 /// <p><code>group-id</code> - The ID of a security group associated with the network interface.</p></li>
281 /// <li>
282 /// <p><code>ipv6-addresses.ipv6-address</code> - An IPv6 address associated with the network interface.</p></li>
283 /// <li>
284 /// <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>
285 /// <li>
286 /// <p><code>mac-address</code> - The MAC address of the network interface.</p></li>
287 /// <li>
288 /// <p><code>network-interface-id</code> - The ID of the network interface.</p></li>
289 /// <li>
290 /// <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed network interface.</p></li>
291 /// <li>
292 /// <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>
293 /// <li>
294 /// <p><code>owner-id</code> - The Amazon Web Services account ID of the network interface owner.</p></li>
295 /// <li>
296 /// <p><code>private-dns-name</code> - The private DNS name of the network interface (IPv4).</p></li>
297 /// <li>
298 /// <p><code>private-ip-address</code> - The private IPv4 address or addresses of the network interface.</p></li>
299 /// <li>
300 /// <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>
301 /// <li>
302 /// <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>
303 /// <li>
304 /// <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>
305 /// <li>
306 /// <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>
307 /// <li>
308 /// <p><code>subnet-id</code> - The ID of the subnet for the network interface.</p></li>
309 /// <li>
310 /// <p><code>tag</code>:<key>
311 /// - 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
312 /// <code>Owner</code> and the value
313 /// <code>TeamA</code>, specify
314 /// <code>tag:Owner</code> for the filter name and
315 /// <code>TeamA</code> for the filter value.
316 /// </key></p></li>
317 /// <li>
318 /// <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>
319 /// <li>
320 /// <p><code>vpc-id</code> - The ID of the VPC for the network interface.</p></li>
321 /// </ul>
322 pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
323 self.inner = self.inner.set_filters(input);
324 self
325 }
326 /// <p>One or more filters.</p>
327 /// <ul>
328 /// <li>
329 /// <p><code>association.allocation-id</code> - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.</p></li>
330 /// <li>
331 /// <p><code>association.association-id</code> - The association ID returned when the network interface was associated with an IPv4 address.</p></li>
332 /// <li>
333 /// <p><code>addresses.association.owner-id</code> - The owner ID of the addresses associated with the network interface.</p></li>
334 /// <li>
335 /// <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>
336 /// <li>
337 /// <p><code>addresses.primary</code> - Whether the private IPv4 address is the primary IP address associated with the network interface.</p></li>
338 /// <li>
339 /// <p><code>addresses.private-ip-address</code> - The private IPv4 addresses associated with the network interface.</p></li>
340 /// <li>
341 /// <p><code>association.ip-owner-id</code> - The owner of the Elastic IP address (IPv4) associated with the network interface.</p></li>
342 /// <li>
343 /// <p><code>association.public-ip</code> - The address of the Elastic IP address (IPv4) bound to the network interface.</p></li>
344 /// <li>
345 /// <p><code>association.public-dns-name</code> - The public DNS name for the network interface (IPv4).</p></li>
346 /// <li>
347 /// <p><code>attachment.attach-time</code> - The time that the network interface was attached to an instance.</p></li>
348 /// <li>
349 /// <p><code>attachment.attachment-id</code> - The ID of the interface attachment.</p></li>
350 /// <li>
351 /// <p><code>attachment.delete-on-termination</code> - Indicates whether the attachment is deleted when an instance is terminated.</p></li>
352 /// <li>
353 /// <p><code>attachment.device-index</code> - The device index to which the network interface is attached.</p></li>
354 /// <li>
355 /// <p><code>attachment.instance-id</code> - The ID of the instance to which the network interface is attached.</p></li>
356 /// <li>
357 /// <p><code>attachment.instance-owner-id</code> - The owner ID of the instance to which the network interface is attached.</p></li>
358 /// <li>
359 /// <p><code>attachment.status</code> - The status of the attachment (<code>attaching</code> | <code>attached</code> | <code>detaching</code> | <code>detached</code>).</p></li>
360 /// <li>
361 /// <p><code>availability-zone</code> - The Availability Zone of the network interface.</p></li>
362 /// <li>
363 /// <p><code>description</code> - The description of the network interface.</p></li>
364 /// <li>
365 /// <p><code>group-id</code> - The ID of a security group associated with the network interface.</p></li>
366 /// <li>
367 /// <p><code>ipv6-addresses.ipv6-address</code> - An IPv6 address associated with the network interface.</p></li>
368 /// <li>
369 /// <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>
370 /// <li>
371 /// <p><code>mac-address</code> - The MAC address of the network interface.</p></li>
372 /// <li>
373 /// <p><code>network-interface-id</code> - The ID of the network interface.</p></li>
374 /// <li>
375 /// <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed network interface.</p></li>
376 /// <li>
377 /// <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>
378 /// <li>
379 /// <p><code>owner-id</code> - The Amazon Web Services account ID of the network interface owner.</p></li>
380 /// <li>
381 /// <p><code>private-dns-name</code> - The private DNS name of the network interface (IPv4).</p></li>
382 /// <li>
383 /// <p><code>private-ip-address</code> - The private IPv4 address or addresses of the network interface.</p></li>
384 /// <li>
385 /// <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>
386 /// <li>
387 /// <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>
388 /// <li>
389 /// <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>
390 /// <li>
391 /// <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>
392 /// <li>
393 /// <p><code>subnet-id</code> - The ID of the subnet for the network interface.</p></li>
394 /// <li>
395 /// <p><code>tag</code>:<key>
396 /// - 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
397 /// <code>Owner</code> and the value
398 /// <code>TeamA</code>, specify
399 /// <code>tag:Owner</code> for the filter name and
400 /// <code>TeamA</code> for the filter value.
401 /// </key></p></li>
402 /// <li>
403 /// <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>
404 /// <li>
405 /// <p><code>vpc-id</code> - The ID of the VPC for the network interface.</p></li>
406 /// </ul>
407 pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
408 self.inner.get_filters()
409 }
410}
411
412/// Successful return type for the `network_interface_available` waiter.
413pub type NetworkInterfaceAvailableFinalPoll = ::aws_smithy_runtime_api::client::waiters::FinalPoll<
414 crate::operation::describe_network_interfaces::DescribeNetworkInterfacesOutput,
415 ::aws_smithy_runtime_api::client::result::SdkError<
416 crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError,
417 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
418 >,
419>;
420
421/// Error type for the `network_interface_available` waiter.
422pub type WaitUntilNetworkInterfaceAvailableError = ::aws_smithy_runtime_api::client::waiters::error::WaiterError<
423 crate::operation::describe_network_interfaces::DescribeNetworkInterfacesOutput,
424 crate::operation::describe_network_interfaces::DescribeNetworkInterfacesError,
425>;