aws_sdk_ec2/waiters/
image_exists.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3///
4/// Fluent builder for the `image_exists` 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 ImageExistsFluentBuilder {
16    handle: ::std::sync::Arc<crate::client::Handle>,
17    inner: crate::operation::describe_images::builders::DescribeImagesInputBuilder,
18}
19impl ImageExistsFluentBuilder {
20    /// Creates a new `ImageExistsFluentBuilder`.
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 DescribeImages as a reference.
28    pub fn as_input(&self) -> &crate::operation::describe_images::builders::DescribeImagesInputBuilder {
29        &self.inner
30    }
31    /// Wait for `image_exists`
32    pub async fn wait(
33        self,
34        max_wait: ::std::time::Duration,
35    ) -> ::std::result::Result<crate::waiters::image_exists::ImageExistsFinalPoll, crate::waiters::image_exists::WaitUntilImageExistsError> {
36        let input = self
37            .inner
38            .build()
39            .map_err(::aws_smithy_runtime_api::client::waiters::error::WaiterError::construction_failure)?;
40        let runtime_plugins = crate::operation::describe_images::DescribeImages::operation_runtime_plugins(
41            self.handle.runtime_plugins.clone(),
42            &self.handle.conf,
43            ::std::option::Option::None,
44        )
45        .with_operation_plugin(crate::sdk_feature_tracker::waiter::WaiterFeatureTrackerRuntimePlugin::new());
46        let mut cfg = ::aws_smithy_types::config_bag::ConfigBag::base();
47        let runtime_components_builder = runtime_plugins
48            .apply_client_configuration(&mut cfg)
49            .map_err(::aws_smithy_runtime_api::client::waiters::error::WaiterError::construction_failure)?;
50        let time_components = runtime_components_builder.into_time_components();
51        let sleep_impl = time_components.sleep_impl().expect("a sleep impl is required by waiters");
52        let time_source = time_components.time_source().expect("a time source is required by waiters");
53
54        let acceptor = move |result: ::std::result::Result<
55            &crate::operation::describe_images::DescribeImagesOutput,
56            &crate::operation::describe_images::DescribeImagesError,
57        >| {
58            // Matches: {"output":{"path":"length(Images[]) > `0`","expected":"true","comparator":"booleanEquals"}}
59            if crate::waiters::matchers::match_describe_images_dce6e4d979f63dcae(result) {
60                return ::aws_smithy_runtime::client::waiters::AcceptorState::Success;
61            }
62            // Matches: {"errorType":"InvalidAMIID.NotFound"}
63            if crate::waiters::matchers::match_describe_images_da0ba75c4a3b70507(result) {
64                return ::aws_smithy_runtime::client::waiters::AcceptorState::Retry;
65            }
66            ::aws_smithy_runtime::client::waiters::AcceptorState::NoAcceptorsMatched
67        };
68        let operation = move || {
69            let input = input.clone();
70            let runtime_plugins = runtime_plugins.clone();
71            async move { crate::operation::describe_images::DescribeImages::orchestrate(&runtime_plugins, input).await }
72        };
73        let orchestrator = ::aws_smithy_runtime::client::waiters::WaiterOrchestrator::builder()
74            .min_delay(::std::time::Duration::from_secs(15))
75            .max_delay(::std::time::Duration::from_secs(120))
76            .max_wait(max_wait)
77            .time_source(time_source)
78            .sleep_impl(sleep_impl)
79            .acceptor(acceptor)
80            .operation(operation)
81            .build();
82        ::aws_smithy_runtime::client::waiters::attach_waiter_tracing_span(orchestrator.orchestrate()).await
83    }
84    ///
85    /// Appends an item to `ExecutableUsers`.
86    ///
87    /// To override the contents of this collection use [`set_executable_users`](Self::set_executable_users).
88    ///
89    /// <p>Scopes the images by users with explicit launch permissions. Specify an Amazon Web Services account ID, <code>self</code> (the sender of the request), or <code>all</code> (public AMIs).</p>
90    /// <ul>
91    /// <li>
92    /// <p>If you specify an Amazon Web Services account ID that is not your own, only AMIs shared with that specific Amazon Web Services account ID are returned. However, AMIs that are shared with the account’s organization or organizational unit (OU) are not returned.</p></li>
93    /// <li>
94    /// <p>If you specify <code>self</code> or your own Amazon Web Services account ID, AMIs shared with your account are returned. In addition, AMIs that are shared with the organization or OU of which you are member are also returned.</p></li>
95    /// <li>
96    /// <p>If you specify <code>all</code>, all public AMIs are returned.</p></li>
97    /// </ul>
98    pub fn executable_users(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
99        self.inner = self.inner.executable_users(input.into());
100        self
101    }
102    /// <p>Scopes the images by users with explicit launch permissions. Specify an Amazon Web Services account ID, <code>self</code> (the sender of the request), or <code>all</code> (public AMIs).</p>
103    /// <ul>
104    /// <li>
105    /// <p>If you specify an Amazon Web Services account ID that is not your own, only AMIs shared with that specific Amazon Web Services account ID are returned. However, AMIs that are shared with the account’s organization or organizational unit (OU) are not returned.</p></li>
106    /// <li>
107    /// <p>If you specify <code>self</code> or your own Amazon Web Services account ID, AMIs shared with your account are returned. In addition, AMIs that are shared with the organization or OU of which you are member are also returned.</p></li>
108    /// <li>
109    /// <p>If you specify <code>all</code>, all public AMIs are returned.</p></li>
110    /// </ul>
111    pub fn set_executable_users(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
112        self.inner = self.inner.set_executable_users(input);
113        self
114    }
115    /// <p>Scopes the images by users with explicit launch permissions. Specify an Amazon Web Services account ID, <code>self</code> (the sender of the request), or <code>all</code> (public AMIs).</p>
116    /// <ul>
117    /// <li>
118    /// <p>If you specify an Amazon Web Services account ID that is not your own, only AMIs shared with that specific Amazon Web Services account ID are returned. However, AMIs that are shared with the account’s organization or organizational unit (OU) are not returned.</p></li>
119    /// <li>
120    /// <p>If you specify <code>self</code> or your own Amazon Web Services account ID, AMIs shared with your account are returned. In addition, AMIs that are shared with the organization or OU of which you are member are also returned.</p></li>
121    /// <li>
122    /// <p>If you specify <code>all</code>, all public AMIs are returned.</p></li>
123    /// </ul>
124    pub fn get_executable_users(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
125        self.inner.get_executable_users()
126    }
127    ///
128    /// Appends an item to `ImageIds`.
129    ///
130    /// To override the contents of this collection use [`set_image_ids`](Self::set_image_ids).
131    ///
132    /// <p>The image IDs.</p>
133    /// <p>Default: Describes all images available to you.</p>
134    pub fn image_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
135        self.inner = self.inner.image_ids(input.into());
136        self
137    }
138    /// <p>The image IDs.</p>
139    /// <p>Default: Describes all images available to you.</p>
140    pub fn set_image_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
141        self.inner = self.inner.set_image_ids(input);
142        self
143    }
144    /// <p>The image IDs.</p>
145    /// <p>Default: Describes all images available to you.</p>
146    pub fn get_image_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
147        self.inner.get_image_ids()
148    }
149    ///
150    /// Appends an item to `Owners`.
151    ///
152    /// To override the contents of this collection use [`set_owners`](Self::set_owners).
153    ///
154    /// <p>Scopes the results to images with the specified owners. You can specify a combination of Amazon Web Services account IDs, <code>self</code>, <code>amazon</code>, <code>aws-backup-vault</code>, and <code>aws-marketplace</code>. If you omit this parameter, the results include all images for which you have launch permissions, regardless of ownership.</p>
155    pub fn owners(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
156        self.inner = self.inner.owners(input.into());
157        self
158    }
159    /// <p>Scopes the results to images with the specified owners. You can specify a combination of Amazon Web Services account IDs, <code>self</code>, <code>amazon</code>, <code>aws-backup-vault</code>, and <code>aws-marketplace</code>. If you omit this parameter, the results include all images for which you have launch permissions, regardless of ownership.</p>
160    pub fn set_owners(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
161        self.inner = self.inner.set_owners(input);
162        self
163    }
164    /// <p>Scopes the results to images with the specified owners. You can specify a combination of Amazon Web Services account IDs, <code>self</code>, <code>amazon</code>, <code>aws-backup-vault</code>, and <code>aws-marketplace</code>. If you omit this parameter, the results include all images for which you have launch permissions, regardless of ownership.</p>
165    pub fn get_owners(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
166        self.inner.get_owners()
167    }
168    /// <p>Specifies whether to include deprecated AMIs.</p>
169    /// <p>Default: No deprecated AMIs are included in the response.</p><note>
170    /// <p>If you are the AMI owner, all deprecated AMIs appear in the response regardless of what you specify for this parameter.</p>
171    /// </note>
172    pub fn include_deprecated(mut self, input: bool) -> Self {
173        self.inner = self.inner.include_deprecated(input);
174        self
175    }
176    /// <p>Specifies whether to include deprecated AMIs.</p>
177    /// <p>Default: No deprecated AMIs are included in the response.</p><note>
178    /// <p>If you are the AMI owner, all deprecated AMIs appear in the response regardless of what you specify for this parameter.</p>
179    /// </note>
180    pub fn set_include_deprecated(mut self, input: ::std::option::Option<bool>) -> Self {
181        self.inner = self.inner.set_include_deprecated(input);
182        self
183    }
184    /// <p>Specifies whether to include deprecated AMIs.</p>
185    /// <p>Default: No deprecated AMIs are included in the response.</p><note>
186    /// <p>If you are the AMI owner, all deprecated AMIs appear in the response regardless of what you specify for this parameter.</p>
187    /// </note>
188    pub fn get_include_deprecated(&self) -> &::std::option::Option<bool> {
189        self.inner.get_include_deprecated()
190    }
191    /// <p>Specifies whether to include disabled AMIs.</p>
192    /// <p>Default: No disabled AMIs are included in the response.</p>
193    pub fn include_disabled(mut self, input: bool) -> Self {
194        self.inner = self.inner.include_disabled(input);
195        self
196    }
197    /// <p>Specifies whether to include disabled AMIs.</p>
198    /// <p>Default: No disabled AMIs are included in the response.</p>
199    pub fn set_include_disabled(mut self, input: ::std::option::Option<bool>) -> Self {
200        self.inner = self.inner.set_include_disabled(input);
201        self
202    }
203    /// <p>Specifies whether to include disabled AMIs.</p>
204    /// <p>Default: No disabled AMIs are included in the response.</p>
205    pub fn get_include_disabled(&self) -> &::std::option::Option<bool> {
206        self.inner.get_include_disabled()
207    }
208    /// <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>
209    pub fn max_results(mut self, input: i32) -> Self {
210        self.inner = self.inner.max_results(input);
211        self
212    }
213    /// <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>
214    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
215        self.inner = self.inner.set_max_results(input);
216        self
217    }
218    /// <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>
219    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
220        self.inner.get_max_results()
221    }
222    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
223    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
224        self.inner = self.inner.next_token(input.into());
225        self
226    }
227    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
228    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
229        self.inner = self.inner.set_next_token(input);
230        self
231    }
232    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
233    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
234        self.inner.get_next_token()
235    }
236    /// <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>
237    pub fn dry_run(mut self, input: bool) -> Self {
238        self.inner = self.inner.dry_run(input);
239        self
240    }
241    /// <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>
242    pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
243        self.inner = self.inner.set_dry_run(input);
244        self
245    }
246    /// <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>
247    pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
248        self.inner.get_dry_run()
249    }
250    ///
251    /// Appends an item to `Filters`.
252    ///
253    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
254    ///
255    /// <p>The filters.</p>
256    /// <ul>
257    /// <li>
258    /// <p><code>architecture</code> - The image architecture (<code>i386</code> | <code>x86_64</code> | <code>arm64</code> | <code>x86_64_mac</code> | <code>arm64_mac</code>).</p></li>
259    /// <li>
260    /// <p><code>block-device-mapping.delete-on-termination</code> - A Boolean value that indicates whether the Amazon EBS volume is deleted on instance termination.</p></li>
261    /// <li>
262    /// <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>
263    /// <li>
264    /// <p><code>block-device-mapping.snapshot-id</code> - The ID of the snapshot used for the Amazon EBS volume.</p></li>
265    /// <li>
266    /// <p><code>block-device-mapping.volume-size</code> - The volume size of the Amazon EBS volume, in GiB.</p></li>
267    /// <li>
268    /// <p><code>block-device-mapping.volume-type</code> - The volume type of the Amazon EBS volume (<code>io1</code> | <code>io2</code> | <code>gp2</code> | <code>gp3</code> | <code>sc1 </code>| <code>st1</code> | <code>standard</code>).</p></li>
269    /// <li>
270    /// <p><code>block-device-mapping.encrypted</code> - A Boolean that indicates whether the Amazon EBS volume is encrypted.</p></li>
271    /// <li>
272    /// <p><code>creation-date</code> - The time when the image was created, 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>
273    /// <li>
274    /// <p><code>description</code> - The description of the image (provided during image creation).</p></li>
275    /// <li>
276    /// <p><code>ena-support</code> - A Boolean that indicates whether enhanced networking with ENA is enabled.</p></li>
277    /// <li>
278    /// <p><code>free-tier-eligible</code> - A Boolean that indicates whether this image can be used under the Amazon Web Services Free Tier (<code>true</code> | <code>false</code>).</p></li>
279    /// <li>
280    /// <p><code>hypervisor</code> - The hypervisor type (<code>ovm</code> | <code>xen</code>).</p></li>
281    /// <li>
282    /// <p><code>image-allowed</code> - A Boolean that indicates whether the image meets the criteria specified for Allowed AMIs.</p></li>
283    /// <li>
284    /// <p><code>image-id</code> - The ID of the image.</p></li>
285    /// <li>
286    /// <p><code>image-type</code> - The image type (<code>machine</code> | <code>kernel</code> | <code>ramdisk</code>).</p></li>
287    /// <li>
288    /// <p><code>is-public</code> - A Boolean that indicates whether the image is public.</p></li>
289    /// <li>
290    /// <p><code>kernel-id</code> - The kernel ID.</p></li>
291    /// <li>
292    /// <p><code>manifest-location</code> - The location of the image manifest.</p></li>
293    /// <li>
294    /// <p><code>name</code> - The name of the AMI (provided during image creation).</p></li>
295    /// <li>
296    /// <p><code>owner-alias</code> - The owner alias (<code>amazon</code> | <code>aws-backup-vault</code> | <code>aws-marketplace</code>). The valid aliases are defined in an Amazon-maintained list. This is not the Amazon Web Services account alias that can be set using the IAM console. We recommend that you use the <b>Owner</b> request parameter instead of this filter.</p></li>
297    /// <li>
298    /// <p><code>owner-id</code> - The Amazon Web Services account ID of the owner. We recommend that you use the <b>Owner</b> request parameter instead of this filter.</p></li>
299    /// <li>
300    /// <p><code>platform</code> - The platform. The only supported value is <code>windows</code>.</p></li>
301    /// <li>
302    /// <p><code>product-code</code> - The product code.</p></li>
303    /// <li>
304    /// <p><code>product-code.type</code> - The type of the product code (<code>marketplace</code>).</p></li>
305    /// <li>
306    /// <p><code>ramdisk-id</code> - The RAM disk ID.</p></li>
307    /// <li>
308    /// <p><code>root-device-name</code> - The device name of the root device volume (for example, <code>/dev/sda1</code>).</p></li>
309    /// <li>
310    /// <p><code>root-device-type</code> - The type of the root device volume (<code>ebs</code> | <code>instance-store</code>).</p></li>
311    /// <li>
312    /// <p><code>source-image-id</code> - The ID of the source AMI from which the AMI was created.</p></li>
313    /// <li>
314    /// <p><code>source-image-region</code> - The Region of the source AMI.</p></li>
315    /// <li>
316    /// <p><code>source-instance-id</code> - The ID of the instance that the AMI was created from if the AMI was created using CreateImage. This filter is applicable only if the AMI was created using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html">CreateImage</a>.</p></li>
317    /// <li>
318    /// <p><code>state</code> - The state of the image (<code>available</code> | <code>pending</code> | <code>failed</code>).</p></li>
319    /// <li>
320    /// <p><code>state-reason-code</code> - The reason code for the state change.</p></li>
321    /// <li>
322    /// <p><code>state-reason-message</code> - The message for the state change.</p></li>
323    /// <li>
324    /// <p><code>sriov-net-support</code> - A value of <code>simple</code> indicates that enhanced networking with the Intel 82599 VF interface is enabled.</p></li>
325    /// <li>
326    /// <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>
327    /// <li>
328    /// <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>
329    /// <li>
330    /// <p><code>virtualization-type</code> - The virtualization type (<code>paravirtual</code> | <code>hvm</code>).</p></li>
331    /// </ul>
332    pub fn filters(mut self, input: crate::types::Filter) -> Self {
333        self.inner = self.inner.filters(input);
334        self
335    }
336    /// <p>The filters.</p>
337    /// <ul>
338    /// <li>
339    /// <p><code>architecture</code> - The image architecture (<code>i386</code> | <code>x86_64</code> | <code>arm64</code> | <code>x86_64_mac</code> | <code>arm64_mac</code>).</p></li>
340    /// <li>
341    /// <p><code>block-device-mapping.delete-on-termination</code> - A Boolean value that indicates whether the Amazon EBS volume is deleted on instance termination.</p></li>
342    /// <li>
343    /// <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>
344    /// <li>
345    /// <p><code>block-device-mapping.snapshot-id</code> - The ID of the snapshot used for the Amazon EBS volume.</p></li>
346    /// <li>
347    /// <p><code>block-device-mapping.volume-size</code> - The volume size of the Amazon EBS volume, in GiB.</p></li>
348    /// <li>
349    /// <p><code>block-device-mapping.volume-type</code> - The volume type of the Amazon EBS volume (<code>io1</code> | <code>io2</code> | <code>gp2</code> | <code>gp3</code> | <code>sc1 </code>| <code>st1</code> | <code>standard</code>).</p></li>
350    /// <li>
351    /// <p><code>block-device-mapping.encrypted</code> - A Boolean that indicates whether the Amazon EBS volume is encrypted.</p></li>
352    /// <li>
353    /// <p><code>creation-date</code> - The time when the image was created, 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>
354    /// <li>
355    /// <p><code>description</code> - The description of the image (provided during image creation).</p></li>
356    /// <li>
357    /// <p><code>ena-support</code> - A Boolean that indicates whether enhanced networking with ENA is enabled.</p></li>
358    /// <li>
359    /// <p><code>free-tier-eligible</code> - A Boolean that indicates whether this image can be used under the Amazon Web Services Free Tier (<code>true</code> | <code>false</code>).</p></li>
360    /// <li>
361    /// <p><code>hypervisor</code> - The hypervisor type (<code>ovm</code> | <code>xen</code>).</p></li>
362    /// <li>
363    /// <p><code>image-allowed</code> - A Boolean that indicates whether the image meets the criteria specified for Allowed AMIs.</p></li>
364    /// <li>
365    /// <p><code>image-id</code> - The ID of the image.</p></li>
366    /// <li>
367    /// <p><code>image-type</code> - The image type (<code>machine</code> | <code>kernel</code> | <code>ramdisk</code>).</p></li>
368    /// <li>
369    /// <p><code>is-public</code> - A Boolean that indicates whether the image is public.</p></li>
370    /// <li>
371    /// <p><code>kernel-id</code> - The kernel ID.</p></li>
372    /// <li>
373    /// <p><code>manifest-location</code> - The location of the image manifest.</p></li>
374    /// <li>
375    /// <p><code>name</code> - The name of the AMI (provided during image creation).</p></li>
376    /// <li>
377    /// <p><code>owner-alias</code> - The owner alias (<code>amazon</code> | <code>aws-backup-vault</code> | <code>aws-marketplace</code>). The valid aliases are defined in an Amazon-maintained list. This is not the Amazon Web Services account alias that can be set using the IAM console. We recommend that you use the <b>Owner</b> request parameter instead of this filter.</p></li>
378    /// <li>
379    /// <p><code>owner-id</code> - The Amazon Web Services account ID of the owner. We recommend that you use the <b>Owner</b> request parameter instead of this filter.</p></li>
380    /// <li>
381    /// <p><code>platform</code> - The platform. The only supported value is <code>windows</code>.</p></li>
382    /// <li>
383    /// <p><code>product-code</code> - The product code.</p></li>
384    /// <li>
385    /// <p><code>product-code.type</code> - The type of the product code (<code>marketplace</code>).</p></li>
386    /// <li>
387    /// <p><code>ramdisk-id</code> - The RAM disk ID.</p></li>
388    /// <li>
389    /// <p><code>root-device-name</code> - The device name of the root device volume (for example, <code>/dev/sda1</code>).</p></li>
390    /// <li>
391    /// <p><code>root-device-type</code> - The type of the root device volume (<code>ebs</code> | <code>instance-store</code>).</p></li>
392    /// <li>
393    /// <p><code>source-image-id</code> - The ID of the source AMI from which the AMI was created.</p></li>
394    /// <li>
395    /// <p><code>source-image-region</code> - The Region of the source AMI.</p></li>
396    /// <li>
397    /// <p><code>source-instance-id</code> - The ID of the instance that the AMI was created from if the AMI was created using CreateImage. This filter is applicable only if the AMI was created using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html">CreateImage</a>.</p></li>
398    /// <li>
399    /// <p><code>state</code> - The state of the image (<code>available</code> | <code>pending</code> | <code>failed</code>).</p></li>
400    /// <li>
401    /// <p><code>state-reason-code</code> - The reason code for the state change.</p></li>
402    /// <li>
403    /// <p><code>state-reason-message</code> - The message for the state change.</p></li>
404    /// <li>
405    /// <p><code>sriov-net-support</code> - A value of <code>simple</code> indicates that enhanced networking with the Intel 82599 VF interface is enabled.</p></li>
406    /// <li>
407    /// <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>
408    /// <li>
409    /// <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>
410    /// <li>
411    /// <p><code>virtualization-type</code> - The virtualization type (<code>paravirtual</code> | <code>hvm</code>).</p></li>
412    /// </ul>
413    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
414        self.inner = self.inner.set_filters(input);
415        self
416    }
417    /// <p>The filters.</p>
418    /// <ul>
419    /// <li>
420    /// <p><code>architecture</code> - The image architecture (<code>i386</code> | <code>x86_64</code> | <code>arm64</code> | <code>x86_64_mac</code> | <code>arm64_mac</code>).</p></li>
421    /// <li>
422    /// <p><code>block-device-mapping.delete-on-termination</code> - A Boolean value that indicates whether the Amazon EBS volume is deleted on instance termination.</p></li>
423    /// <li>
424    /// <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>
425    /// <li>
426    /// <p><code>block-device-mapping.snapshot-id</code> - The ID of the snapshot used for the Amazon EBS volume.</p></li>
427    /// <li>
428    /// <p><code>block-device-mapping.volume-size</code> - The volume size of the Amazon EBS volume, in GiB.</p></li>
429    /// <li>
430    /// <p><code>block-device-mapping.volume-type</code> - The volume type of the Amazon EBS volume (<code>io1</code> | <code>io2</code> | <code>gp2</code> | <code>gp3</code> | <code>sc1 </code>| <code>st1</code> | <code>standard</code>).</p></li>
431    /// <li>
432    /// <p><code>block-device-mapping.encrypted</code> - A Boolean that indicates whether the Amazon EBS volume is encrypted.</p></li>
433    /// <li>
434    /// <p><code>creation-date</code> - The time when the image was created, 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>
435    /// <li>
436    /// <p><code>description</code> - The description of the image (provided during image creation).</p></li>
437    /// <li>
438    /// <p><code>ena-support</code> - A Boolean that indicates whether enhanced networking with ENA is enabled.</p></li>
439    /// <li>
440    /// <p><code>free-tier-eligible</code> - A Boolean that indicates whether this image can be used under the Amazon Web Services Free Tier (<code>true</code> | <code>false</code>).</p></li>
441    /// <li>
442    /// <p><code>hypervisor</code> - The hypervisor type (<code>ovm</code> | <code>xen</code>).</p></li>
443    /// <li>
444    /// <p><code>image-allowed</code> - A Boolean that indicates whether the image meets the criteria specified for Allowed AMIs.</p></li>
445    /// <li>
446    /// <p><code>image-id</code> - The ID of the image.</p></li>
447    /// <li>
448    /// <p><code>image-type</code> - The image type (<code>machine</code> | <code>kernel</code> | <code>ramdisk</code>).</p></li>
449    /// <li>
450    /// <p><code>is-public</code> - A Boolean that indicates whether the image is public.</p></li>
451    /// <li>
452    /// <p><code>kernel-id</code> - The kernel ID.</p></li>
453    /// <li>
454    /// <p><code>manifest-location</code> - The location of the image manifest.</p></li>
455    /// <li>
456    /// <p><code>name</code> - The name of the AMI (provided during image creation).</p></li>
457    /// <li>
458    /// <p><code>owner-alias</code> - The owner alias (<code>amazon</code> | <code>aws-backup-vault</code> | <code>aws-marketplace</code>). The valid aliases are defined in an Amazon-maintained list. This is not the Amazon Web Services account alias that can be set using the IAM console. We recommend that you use the <b>Owner</b> request parameter instead of this filter.</p></li>
459    /// <li>
460    /// <p><code>owner-id</code> - The Amazon Web Services account ID of the owner. We recommend that you use the <b>Owner</b> request parameter instead of this filter.</p></li>
461    /// <li>
462    /// <p><code>platform</code> - The platform. The only supported value is <code>windows</code>.</p></li>
463    /// <li>
464    /// <p><code>product-code</code> - The product code.</p></li>
465    /// <li>
466    /// <p><code>product-code.type</code> - The type of the product code (<code>marketplace</code>).</p></li>
467    /// <li>
468    /// <p><code>ramdisk-id</code> - The RAM disk ID.</p></li>
469    /// <li>
470    /// <p><code>root-device-name</code> - The device name of the root device volume (for example, <code>/dev/sda1</code>).</p></li>
471    /// <li>
472    /// <p><code>root-device-type</code> - The type of the root device volume (<code>ebs</code> | <code>instance-store</code>).</p></li>
473    /// <li>
474    /// <p><code>source-image-id</code> - The ID of the source AMI from which the AMI was created.</p></li>
475    /// <li>
476    /// <p><code>source-image-region</code> - The Region of the source AMI.</p></li>
477    /// <li>
478    /// <p><code>source-instance-id</code> - The ID of the instance that the AMI was created from if the AMI was created using CreateImage. This filter is applicable only if the AMI was created using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html">CreateImage</a>.</p></li>
479    /// <li>
480    /// <p><code>state</code> - The state of the image (<code>available</code> | <code>pending</code> | <code>failed</code>).</p></li>
481    /// <li>
482    /// <p><code>state-reason-code</code> - The reason code for the state change.</p></li>
483    /// <li>
484    /// <p><code>state-reason-message</code> - The message for the state change.</p></li>
485    /// <li>
486    /// <p><code>sriov-net-support</code> - A value of <code>simple</code> indicates that enhanced networking with the Intel 82599 VF interface is enabled.</p></li>
487    /// <li>
488    /// <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>
489    /// <li>
490    /// <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>
491    /// <li>
492    /// <p><code>virtualization-type</code> - The virtualization type (<code>paravirtual</code> | <code>hvm</code>).</p></li>
493    /// </ul>
494    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
495        self.inner.get_filters()
496    }
497}
498
499/// Successful return type for the `image_exists` waiter.
500pub type ImageExistsFinalPoll = ::aws_smithy_runtime_api::client::waiters::FinalPoll<
501    crate::operation::describe_images::DescribeImagesOutput,
502    ::aws_smithy_runtime_api::client::result::SdkError<
503        crate::operation::describe_images::DescribeImagesError,
504        ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
505    >,
506>;
507
508/// Error type for the `image_exists` waiter.
509pub type WaitUntilImageExistsError = ::aws_smithy_runtime_api::client::waiters::error::WaiterError<
510    crate::operation::describe_images::DescribeImagesOutput,
511    crate::operation::describe_images::DescribeImagesError,
512>;