aws_sdk_ec2/operation/describe_images/_describe_images_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DescribeImagesInput {
6    /// <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>
7    /// <ul>
8    /// <li>
9    /// <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>
10    /// <li>
11    /// <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>
12    /// <li>
13    /// <p>If you specify <code>all</code>, all public AMIs are returned.</p></li>
14    /// </ul>
15    pub executable_users: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
16    /// <p>The image IDs.</p>
17    /// <p>Default: Describes all images available to you.</p>
18    pub image_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
19    /// <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>
20    pub owners: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
21    /// <p>Specifies whether to include deprecated AMIs.</p>
22    /// <p>Default: No deprecated AMIs are included in the response.</p><note>
23    /// <p>If you are the AMI owner, all deprecated AMIs appear in the response regardless of what you specify for this parameter.</p>
24    /// </note>
25    pub include_deprecated: ::std::option::Option<bool>,
26    /// <p>Specifies whether to include disabled AMIs.</p>
27    /// <p>Default: No disabled AMIs are included in the response.</p>
28    pub include_disabled: ::std::option::Option<bool>,
29    /// <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>
30    pub max_results: ::std::option::Option<i32>,
31    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
32    pub next_token: ::std::option::Option<::std::string::String>,
33    /// <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>
34    pub dry_run: ::std::option::Option<bool>,
35    /// <p>The filters.</p>
36    /// <ul>
37    /// <li>
38    /// <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>
39    /// <li>
40    /// <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>
41    /// <li>
42    /// <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>
43    /// <li>
44    /// <p><code>block-device-mapping.snapshot-id</code> - The ID of the snapshot used for the Amazon EBS volume.</p></li>
45    /// <li>
46    /// <p><code>block-device-mapping.volume-size</code> - The volume size of the Amazon EBS volume, in GiB.</p></li>
47    /// <li>
48    /// <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>
49    /// <li>
50    /// <p><code>block-device-mapping.encrypted</code> - A Boolean that indicates whether the Amazon EBS volume is encrypted.</p></li>
51    /// <li>
52    /// <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>
53    /// <li>
54    /// <p><code>description</code> - The description of the image (provided during image creation).</p></li>
55    /// <li>
56    /// <p><code>ena-support</code> - A Boolean that indicates whether enhanced networking with ENA is enabled.</p></li>
57    /// <li>
58    /// <p><code>hypervisor</code> - The hypervisor type (<code>ovm</code> | <code>xen</code>).</p></li>
59    /// <li>
60    /// <p><code>image-allowed</code> - A Boolean that indicates whether the image meets the criteria specified for Allowed AMIs.</p></li>
61    /// <li>
62    /// <p><code>image-id</code> - The ID of the image.</p></li>
63    /// <li>
64    /// <p><code>image-type</code> - The image type (<code>machine</code> | <code>kernel</code> | <code>ramdisk</code>).</p></li>
65    /// <li>
66    /// <p><code>is-public</code> - A Boolean that indicates whether the image is public.</p></li>
67    /// <li>
68    /// <p><code>kernel-id</code> - The kernel ID.</p></li>
69    /// <li>
70    /// <p><code>manifest-location</code> - The location of the image manifest.</p></li>
71    /// <li>
72    /// <p><code>name</code> - The name of the AMI (provided during image creation).</p></li>
73    /// <li>
74    /// <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>
75    /// <li>
76    /// <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>
77    /// <li>
78    /// <p><code>platform</code> - The platform. The only supported value is <code>windows</code>.</p></li>
79    /// <li>
80    /// <p><code>product-code</code> - The product code.</p></li>
81    /// <li>
82    /// <p><code>product-code.type</code> - The type of the product code (<code>marketplace</code>).</p></li>
83    /// <li>
84    /// <p><code>ramdisk-id</code> - The RAM disk ID.</p></li>
85    /// <li>
86    /// <p><code>root-device-name</code> - The device name of the root device volume (for example, <code>/dev/sda1</code>).</p></li>
87    /// <li>
88    /// <p><code>root-device-type</code> - The type of the root device volume (<code>ebs</code> | <code>instance-store</code>).</p></li>
89    /// <li>
90    /// <p><code>source-image-id</code> - The ID of the source AMI from which the AMI was created.</p></li>
91    /// <li>
92    /// <p><code>source-image-region</code> - The Region of the source AMI.</p></li>
93    /// <li>
94    /// <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>
95    /// <li>
96    /// <p><code>state</code> - The state of the image (<code>available</code> | <code>pending</code> | <code>failed</code>).</p></li>
97    /// <li>
98    /// <p><code>state-reason-code</code> - The reason code for the state change.</p></li>
99    /// <li>
100    /// <p><code>state-reason-message</code> - The message for the state change.</p></li>
101    /// <li>
102    /// <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>
103    /// <li>
104    /// <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>
105    /// <li>
106    /// <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>
107    /// <li>
108    /// <p><code>virtualization-type</code> - The virtualization type (<code>paravirtual</code> | <code>hvm</code>).</p></li>
109    /// </ul>
110    pub filters: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>,
111}
112impl DescribeImagesInput {
113    /// <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>
114    /// <ul>
115    /// <li>
116    /// <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>
117    /// <li>
118    /// <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>
119    /// <li>
120    /// <p>If you specify <code>all</code>, all public AMIs are returned.</p></li>
121    /// </ul>
122    ///
123    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.executable_users.is_none()`.
124    pub fn executable_users(&self) -> &[::std::string::String] {
125        self.executable_users.as_deref().unwrap_or_default()
126    }
127    /// <p>The image IDs.</p>
128    /// <p>Default: Describes all images available to you.</p>
129    ///
130    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.image_ids.is_none()`.
131    pub fn image_ids(&self) -> &[::std::string::String] {
132        self.image_ids.as_deref().unwrap_or_default()
133    }
134    /// <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>
135    ///
136    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.owners.is_none()`.
137    pub fn owners(&self) -> &[::std::string::String] {
138        self.owners.as_deref().unwrap_or_default()
139    }
140    /// <p>Specifies whether to include deprecated AMIs.</p>
141    /// <p>Default: No deprecated AMIs are included in the response.</p><note>
142    /// <p>If you are the AMI owner, all deprecated AMIs appear in the response regardless of what you specify for this parameter.</p>
143    /// </note>
144    pub fn include_deprecated(&self) -> ::std::option::Option<bool> {
145        self.include_deprecated
146    }
147    /// <p>Specifies whether to include disabled AMIs.</p>
148    /// <p>Default: No disabled AMIs are included in the response.</p>
149    pub fn include_disabled(&self) -> ::std::option::Option<bool> {
150        self.include_disabled
151    }
152    /// <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>
153    pub fn max_results(&self) -> ::std::option::Option<i32> {
154        self.max_results
155    }
156    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
157    pub fn next_token(&self) -> ::std::option::Option<&str> {
158        self.next_token.as_deref()
159    }
160    /// <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>
161    pub fn dry_run(&self) -> ::std::option::Option<bool> {
162        self.dry_run
163    }
164    /// <p>The filters.</p>
165    /// <ul>
166    /// <li>
167    /// <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>
168    /// <li>
169    /// <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>
170    /// <li>
171    /// <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>
172    /// <li>
173    /// <p><code>block-device-mapping.snapshot-id</code> - The ID of the snapshot used for the Amazon EBS volume.</p></li>
174    /// <li>
175    /// <p><code>block-device-mapping.volume-size</code> - The volume size of the Amazon EBS volume, in GiB.</p></li>
176    /// <li>
177    /// <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>
178    /// <li>
179    /// <p><code>block-device-mapping.encrypted</code> - A Boolean that indicates whether the Amazon EBS volume is encrypted.</p></li>
180    /// <li>
181    /// <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>
182    /// <li>
183    /// <p><code>description</code> - The description of the image (provided during image creation).</p></li>
184    /// <li>
185    /// <p><code>ena-support</code> - A Boolean that indicates whether enhanced networking with ENA is enabled.</p></li>
186    /// <li>
187    /// <p><code>hypervisor</code> - The hypervisor type (<code>ovm</code> | <code>xen</code>).</p></li>
188    /// <li>
189    /// <p><code>image-allowed</code> - A Boolean that indicates whether the image meets the criteria specified for Allowed AMIs.</p></li>
190    /// <li>
191    /// <p><code>image-id</code> - The ID of the image.</p></li>
192    /// <li>
193    /// <p><code>image-type</code> - The image type (<code>machine</code> | <code>kernel</code> | <code>ramdisk</code>).</p></li>
194    /// <li>
195    /// <p><code>is-public</code> - A Boolean that indicates whether the image is public.</p></li>
196    /// <li>
197    /// <p><code>kernel-id</code> - The kernel ID.</p></li>
198    /// <li>
199    /// <p><code>manifest-location</code> - The location of the image manifest.</p></li>
200    /// <li>
201    /// <p><code>name</code> - The name of the AMI (provided during image creation).</p></li>
202    /// <li>
203    /// <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>
204    /// <li>
205    /// <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>
206    /// <li>
207    /// <p><code>platform</code> - The platform. The only supported value is <code>windows</code>.</p></li>
208    /// <li>
209    /// <p><code>product-code</code> - The product code.</p></li>
210    /// <li>
211    /// <p><code>product-code.type</code> - The type of the product code (<code>marketplace</code>).</p></li>
212    /// <li>
213    /// <p><code>ramdisk-id</code> - The RAM disk ID.</p></li>
214    /// <li>
215    /// <p><code>root-device-name</code> - The device name of the root device volume (for example, <code>/dev/sda1</code>).</p></li>
216    /// <li>
217    /// <p><code>root-device-type</code> - The type of the root device volume (<code>ebs</code> | <code>instance-store</code>).</p></li>
218    /// <li>
219    /// <p><code>source-image-id</code> - The ID of the source AMI from which the AMI was created.</p></li>
220    /// <li>
221    /// <p><code>source-image-region</code> - The Region of the source AMI.</p></li>
222    /// <li>
223    /// <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>
224    /// <li>
225    /// <p><code>state</code> - The state of the image (<code>available</code> | <code>pending</code> | <code>failed</code>).</p></li>
226    /// <li>
227    /// <p><code>state-reason-code</code> - The reason code for the state change.</p></li>
228    /// <li>
229    /// <p><code>state-reason-message</code> - The message for the state change.</p></li>
230    /// <li>
231    /// <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>
232    /// <li>
233    /// <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>
234    /// <li>
235    /// <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>
236    /// <li>
237    /// <p><code>virtualization-type</code> - The virtualization type (<code>paravirtual</code> | <code>hvm</code>).</p></li>
238    /// </ul>
239    ///
240    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.filters.is_none()`.
241    pub fn filters(&self) -> &[crate::types::Filter] {
242        self.filters.as_deref().unwrap_or_default()
243    }
244}
245impl DescribeImagesInput {
246    /// Creates a new builder-style object to manufacture [`DescribeImagesInput`](crate::operation::describe_images::DescribeImagesInput).
247    pub fn builder() -> crate::operation::describe_images::builders::DescribeImagesInputBuilder {
248        crate::operation::describe_images::builders::DescribeImagesInputBuilder::default()
249    }
250}
251
252/// A builder for [`DescribeImagesInput`](crate::operation::describe_images::DescribeImagesInput).
253#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
254#[non_exhaustive]
255pub struct DescribeImagesInputBuilder {
256    pub(crate) executable_users: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
257    pub(crate) image_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
258    pub(crate) owners: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
259    pub(crate) include_deprecated: ::std::option::Option<bool>,
260    pub(crate) include_disabled: ::std::option::Option<bool>,
261    pub(crate) max_results: ::std::option::Option<i32>,
262    pub(crate) next_token: ::std::option::Option<::std::string::String>,
263    pub(crate) dry_run: ::std::option::Option<bool>,
264    pub(crate) filters: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>,
265}
266impl DescribeImagesInputBuilder {
267    /// Appends an item to `executable_users`.
268    ///
269    /// To override the contents of this collection use [`set_executable_users`](Self::set_executable_users).
270    ///
271    /// <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>
272    /// <ul>
273    /// <li>
274    /// <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>
275    /// <li>
276    /// <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>
277    /// <li>
278    /// <p>If you specify <code>all</code>, all public AMIs are returned.</p></li>
279    /// </ul>
280    pub fn executable_users(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
281        let mut v = self.executable_users.unwrap_or_default();
282        v.push(input.into());
283        self.executable_users = ::std::option::Option::Some(v);
284        self
285    }
286    /// <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>
287    /// <ul>
288    /// <li>
289    /// <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>
290    /// <li>
291    /// <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>
292    /// <li>
293    /// <p>If you specify <code>all</code>, all public AMIs are returned.</p></li>
294    /// </ul>
295    pub fn set_executable_users(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
296        self.executable_users = input;
297        self
298    }
299    /// <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>
300    /// <ul>
301    /// <li>
302    /// <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>
303    /// <li>
304    /// <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>
305    /// <li>
306    /// <p>If you specify <code>all</code>, all public AMIs are returned.</p></li>
307    /// </ul>
308    pub fn get_executable_users(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
309        &self.executable_users
310    }
311    /// Appends an item to `image_ids`.
312    ///
313    /// To override the contents of this collection use [`set_image_ids`](Self::set_image_ids).
314    ///
315    /// <p>The image IDs.</p>
316    /// <p>Default: Describes all images available to you.</p>
317    pub fn image_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
318        let mut v = self.image_ids.unwrap_or_default();
319        v.push(input.into());
320        self.image_ids = ::std::option::Option::Some(v);
321        self
322    }
323    /// <p>The image IDs.</p>
324    /// <p>Default: Describes all images available to you.</p>
325    pub fn set_image_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
326        self.image_ids = input;
327        self
328    }
329    /// <p>The image IDs.</p>
330    /// <p>Default: Describes all images available to you.</p>
331    pub fn get_image_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
332        &self.image_ids
333    }
334    /// Appends an item to `owners`.
335    ///
336    /// To override the contents of this collection use [`set_owners`](Self::set_owners).
337    ///
338    /// <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>
339    pub fn owners(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
340        let mut v = self.owners.unwrap_or_default();
341        v.push(input.into());
342        self.owners = ::std::option::Option::Some(v);
343        self
344    }
345    /// <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>
346    pub fn set_owners(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
347        self.owners = input;
348        self
349    }
350    /// <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>
351    pub fn get_owners(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
352        &self.owners
353    }
354    /// <p>Specifies whether to include deprecated AMIs.</p>
355    /// <p>Default: No deprecated AMIs are included in the response.</p><note>
356    /// <p>If you are the AMI owner, all deprecated AMIs appear in the response regardless of what you specify for this parameter.</p>
357    /// </note>
358    pub fn include_deprecated(mut self, input: bool) -> Self {
359        self.include_deprecated = ::std::option::Option::Some(input);
360        self
361    }
362    /// <p>Specifies whether to include deprecated AMIs.</p>
363    /// <p>Default: No deprecated AMIs are included in the response.</p><note>
364    /// <p>If you are the AMI owner, all deprecated AMIs appear in the response regardless of what you specify for this parameter.</p>
365    /// </note>
366    pub fn set_include_deprecated(mut self, input: ::std::option::Option<bool>) -> Self {
367        self.include_deprecated = input;
368        self
369    }
370    /// <p>Specifies whether to include deprecated AMIs.</p>
371    /// <p>Default: No deprecated AMIs are included in the response.</p><note>
372    /// <p>If you are the AMI owner, all deprecated AMIs appear in the response regardless of what you specify for this parameter.</p>
373    /// </note>
374    pub fn get_include_deprecated(&self) -> &::std::option::Option<bool> {
375        &self.include_deprecated
376    }
377    /// <p>Specifies whether to include disabled AMIs.</p>
378    /// <p>Default: No disabled AMIs are included in the response.</p>
379    pub fn include_disabled(mut self, input: bool) -> Self {
380        self.include_disabled = ::std::option::Option::Some(input);
381        self
382    }
383    /// <p>Specifies whether to include disabled AMIs.</p>
384    /// <p>Default: No disabled AMIs are included in the response.</p>
385    pub fn set_include_disabled(mut self, input: ::std::option::Option<bool>) -> Self {
386        self.include_disabled = input;
387        self
388    }
389    /// <p>Specifies whether to include disabled AMIs.</p>
390    /// <p>Default: No disabled AMIs are included in the response.</p>
391    pub fn get_include_disabled(&self) -> &::std::option::Option<bool> {
392        &self.include_disabled
393    }
394    /// <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>
395    pub fn max_results(mut self, input: i32) -> Self {
396        self.max_results = ::std::option::Option::Some(input);
397        self
398    }
399    /// <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>
400    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
401        self.max_results = input;
402        self
403    }
404    /// <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>
405    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
406        &self.max_results
407    }
408    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
409    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
410        self.next_token = ::std::option::Option::Some(input.into());
411        self
412    }
413    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
414    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
415        self.next_token = input;
416        self
417    }
418    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
419    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
420        &self.next_token
421    }
422    /// <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>
423    pub fn dry_run(mut self, input: bool) -> Self {
424        self.dry_run = ::std::option::Option::Some(input);
425        self
426    }
427    /// <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>
428    pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
429        self.dry_run = input;
430        self
431    }
432    /// <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>
433    pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
434        &self.dry_run
435    }
436    /// Appends an item to `filters`.
437    ///
438    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
439    ///
440    /// <p>The filters.</p>
441    /// <ul>
442    /// <li>
443    /// <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>
444    /// <li>
445    /// <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>
446    /// <li>
447    /// <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>
448    /// <li>
449    /// <p><code>block-device-mapping.snapshot-id</code> - The ID of the snapshot used for the Amazon EBS volume.</p></li>
450    /// <li>
451    /// <p><code>block-device-mapping.volume-size</code> - The volume size of the Amazon EBS volume, in GiB.</p></li>
452    /// <li>
453    /// <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>
454    /// <li>
455    /// <p><code>block-device-mapping.encrypted</code> - A Boolean that indicates whether the Amazon EBS volume is encrypted.</p></li>
456    /// <li>
457    /// <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>
458    /// <li>
459    /// <p><code>description</code> - The description of the image (provided during image creation).</p></li>
460    /// <li>
461    /// <p><code>ena-support</code> - A Boolean that indicates whether enhanced networking with ENA is enabled.</p></li>
462    /// <li>
463    /// <p><code>hypervisor</code> - The hypervisor type (<code>ovm</code> | <code>xen</code>).</p></li>
464    /// <li>
465    /// <p><code>image-allowed</code> - A Boolean that indicates whether the image meets the criteria specified for Allowed AMIs.</p></li>
466    /// <li>
467    /// <p><code>image-id</code> - The ID of the image.</p></li>
468    /// <li>
469    /// <p><code>image-type</code> - The image type (<code>machine</code> | <code>kernel</code> | <code>ramdisk</code>).</p></li>
470    /// <li>
471    /// <p><code>is-public</code> - A Boolean that indicates whether the image is public.</p></li>
472    /// <li>
473    /// <p><code>kernel-id</code> - The kernel ID.</p></li>
474    /// <li>
475    /// <p><code>manifest-location</code> - The location of the image manifest.</p></li>
476    /// <li>
477    /// <p><code>name</code> - The name of the AMI (provided during image creation).</p></li>
478    /// <li>
479    /// <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>
480    /// <li>
481    /// <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>
482    /// <li>
483    /// <p><code>platform</code> - The platform. The only supported value is <code>windows</code>.</p></li>
484    /// <li>
485    /// <p><code>product-code</code> - The product code.</p></li>
486    /// <li>
487    /// <p><code>product-code.type</code> - The type of the product code (<code>marketplace</code>).</p></li>
488    /// <li>
489    /// <p><code>ramdisk-id</code> - The RAM disk ID.</p></li>
490    /// <li>
491    /// <p><code>root-device-name</code> - The device name of the root device volume (for example, <code>/dev/sda1</code>).</p></li>
492    /// <li>
493    /// <p><code>root-device-type</code> - The type of the root device volume (<code>ebs</code> | <code>instance-store</code>).</p></li>
494    /// <li>
495    /// <p><code>source-image-id</code> - The ID of the source AMI from which the AMI was created.</p></li>
496    /// <li>
497    /// <p><code>source-image-region</code> - The Region of the source AMI.</p></li>
498    /// <li>
499    /// <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>
500    /// <li>
501    /// <p><code>state</code> - The state of the image (<code>available</code> | <code>pending</code> | <code>failed</code>).</p></li>
502    /// <li>
503    /// <p><code>state-reason-code</code> - The reason code for the state change.</p></li>
504    /// <li>
505    /// <p><code>state-reason-message</code> - The message for the state change.</p></li>
506    /// <li>
507    /// <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>
508    /// <li>
509    /// <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>
510    /// <li>
511    /// <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>
512    /// <li>
513    /// <p><code>virtualization-type</code> - The virtualization type (<code>paravirtual</code> | <code>hvm</code>).</p></li>
514    /// </ul>
515    pub fn filters(mut self, input: crate::types::Filter) -> Self {
516        let mut v = self.filters.unwrap_or_default();
517        v.push(input);
518        self.filters = ::std::option::Option::Some(v);
519        self
520    }
521    /// <p>The filters.</p>
522    /// <ul>
523    /// <li>
524    /// <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>
525    /// <li>
526    /// <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>
527    /// <li>
528    /// <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>
529    /// <li>
530    /// <p><code>block-device-mapping.snapshot-id</code> - The ID of the snapshot used for the Amazon EBS volume.</p></li>
531    /// <li>
532    /// <p><code>block-device-mapping.volume-size</code> - The volume size of the Amazon EBS volume, in GiB.</p></li>
533    /// <li>
534    /// <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>
535    /// <li>
536    /// <p><code>block-device-mapping.encrypted</code> - A Boolean that indicates whether the Amazon EBS volume is encrypted.</p></li>
537    /// <li>
538    /// <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>
539    /// <li>
540    /// <p><code>description</code> - The description of the image (provided during image creation).</p></li>
541    /// <li>
542    /// <p><code>ena-support</code> - A Boolean that indicates whether enhanced networking with ENA is enabled.</p></li>
543    /// <li>
544    /// <p><code>hypervisor</code> - The hypervisor type (<code>ovm</code> | <code>xen</code>).</p></li>
545    /// <li>
546    /// <p><code>image-allowed</code> - A Boolean that indicates whether the image meets the criteria specified for Allowed AMIs.</p></li>
547    /// <li>
548    /// <p><code>image-id</code> - The ID of the image.</p></li>
549    /// <li>
550    /// <p><code>image-type</code> - The image type (<code>machine</code> | <code>kernel</code> | <code>ramdisk</code>).</p></li>
551    /// <li>
552    /// <p><code>is-public</code> - A Boolean that indicates whether the image is public.</p></li>
553    /// <li>
554    /// <p><code>kernel-id</code> - The kernel ID.</p></li>
555    /// <li>
556    /// <p><code>manifest-location</code> - The location of the image manifest.</p></li>
557    /// <li>
558    /// <p><code>name</code> - The name of the AMI (provided during image creation).</p></li>
559    /// <li>
560    /// <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>
561    /// <li>
562    /// <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>
563    /// <li>
564    /// <p><code>platform</code> - The platform. The only supported value is <code>windows</code>.</p></li>
565    /// <li>
566    /// <p><code>product-code</code> - The product code.</p></li>
567    /// <li>
568    /// <p><code>product-code.type</code> - The type of the product code (<code>marketplace</code>).</p></li>
569    /// <li>
570    /// <p><code>ramdisk-id</code> - The RAM disk ID.</p></li>
571    /// <li>
572    /// <p><code>root-device-name</code> - The device name of the root device volume (for example, <code>/dev/sda1</code>).</p></li>
573    /// <li>
574    /// <p><code>root-device-type</code> - The type of the root device volume (<code>ebs</code> | <code>instance-store</code>).</p></li>
575    /// <li>
576    /// <p><code>source-image-id</code> - The ID of the source AMI from which the AMI was created.</p></li>
577    /// <li>
578    /// <p><code>source-image-region</code> - The Region of the source AMI.</p></li>
579    /// <li>
580    /// <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>
581    /// <li>
582    /// <p><code>state</code> - The state of the image (<code>available</code> | <code>pending</code> | <code>failed</code>).</p></li>
583    /// <li>
584    /// <p><code>state-reason-code</code> - The reason code for the state change.</p></li>
585    /// <li>
586    /// <p><code>state-reason-message</code> - The message for the state change.</p></li>
587    /// <li>
588    /// <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>
589    /// <li>
590    /// <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>
591    /// <li>
592    /// <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>
593    /// <li>
594    /// <p><code>virtualization-type</code> - The virtualization type (<code>paravirtual</code> | <code>hvm</code>).</p></li>
595    /// </ul>
596    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
597        self.filters = input;
598        self
599    }
600    /// <p>The filters.</p>
601    /// <ul>
602    /// <li>
603    /// <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>
604    /// <li>
605    /// <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>
606    /// <li>
607    /// <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>
608    /// <li>
609    /// <p><code>block-device-mapping.snapshot-id</code> - The ID of the snapshot used for the Amazon EBS volume.</p></li>
610    /// <li>
611    /// <p><code>block-device-mapping.volume-size</code> - The volume size of the Amazon EBS volume, in GiB.</p></li>
612    /// <li>
613    /// <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>
614    /// <li>
615    /// <p><code>block-device-mapping.encrypted</code> - A Boolean that indicates whether the Amazon EBS volume is encrypted.</p></li>
616    /// <li>
617    /// <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>
618    /// <li>
619    /// <p><code>description</code> - The description of the image (provided during image creation).</p></li>
620    /// <li>
621    /// <p><code>ena-support</code> - A Boolean that indicates whether enhanced networking with ENA is enabled.</p></li>
622    /// <li>
623    /// <p><code>hypervisor</code> - The hypervisor type (<code>ovm</code> | <code>xen</code>).</p></li>
624    /// <li>
625    /// <p><code>image-allowed</code> - A Boolean that indicates whether the image meets the criteria specified for Allowed AMIs.</p></li>
626    /// <li>
627    /// <p><code>image-id</code> - The ID of the image.</p></li>
628    /// <li>
629    /// <p><code>image-type</code> - The image type (<code>machine</code> | <code>kernel</code> | <code>ramdisk</code>).</p></li>
630    /// <li>
631    /// <p><code>is-public</code> - A Boolean that indicates whether the image is public.</p></li>
632    /// <li>
633    /// <p><code>kernel-id</code> - The kernel ID.</p></li>
634    /// <li>
635    /// <p><code>manifest-location</code> - The location of the image manifest.</p></li>
636    /// <li>
637    /// <p><code>name</code> - The name of the AMI (provided during image creation).</p></li>
638    /// <li>
639    /// <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>
640    /// <li>
641    /// <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>
642    /// <li>
643    /// <p><code>platform</code> - The platform. The only supported value is <code>windows</code>.</p></li>
644    /// <li>
645    /// <p><code>product-code</code> - The product code.</p></li>
646    /// <li>
647    /// <p><code>product-code.type</code> - The type of the product code (<code>marketplace</code>).</p></li>
648    /// <li>
649    /// <p><code>ramdisk-id</code> - The RAM disk ID.</p></li>
650    /// <li>
651    /// <p><code>root-device-name</code> - The device name of the root device volume (for example, <code>/dev/sda1</code>).</p></li>
652    /// <li>
653    /// <p><code>root-device-type</code> - The type of the root device volume (<code>ebs</code> | <code>instance-store</code>).</p></li>
654    /// <li>
655    /// <p><code>source-image-id</code> - The ID of the source AMI from which the AMI was created.</p></li>
656    /// <li>
657    /// <p><code>source-image-region</code> - The Region of the source AMI.</p></li>
658    /// <li>
659    /// <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>
660    /// <li>
661    /// <p><code>state</code> - The state of the image (<code>available</code> | <code>pending</code> | <code>failed</code>).</p></li>
662    /// <li>
663    /// <p><code>state-reason-code</code> - The reason code for the state change.</p></li>
664    /// <li>
665    /// <p><code>state-reason-message</code> - The message for the state change.</p></li>
666    /// <li>
667    /// <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>
668    /// <li>
669    /// <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>
670    /// <li>
671    /// <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>
672    /// <li>
673    /// <p><code>virtualization-type</code> - The virtualization type (<code>paravirtual</code> | <code>hvm</code>).</p></li>
674    /// </ul>
675    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
676        &self.filters
677    }
678    /// Consumes the builder and constructs a [`DescribeImagesInput`](crate::operation::describe_images::DescribeImagesInput).
679    pub fn build(
680        self,
681    ) -> ::std::result::Result<crate::operation::describe_images::DescribeImagesInput, ::aws_smithy_types::error::operation::BuildError> {
682        ::std::result::Result::Ok(crate::operation::describe_images::DescribeImagesInput {
683            executable_users: self.executable_users,
684            image_ids: self.image_ids,
685            owners: self.owners,
686            include_deprecated: self.include_deprecated,
687            include_disabled: self.include_disabled,
688            max_results: self.max_results,
689            next_token: self.next_token,
690            dry_run: self.dry_run,
691            filters: self.filters,
692        })
693    }
694}