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