aws_sdk_ec2/operation/describe_images/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::describe_images::_describe_images_output::DescribeImagesOutputBuilder;
3
4pub use crate::operation::describe_images::_describe_images_input::DescribeImagesInputBuilder;
5
6impl crate::operation::describe_images::builders::DescribeImagesInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::describe_images::DescribeImagesOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::describe_images::DescribeImagesError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.describe_images();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `DescribeImages`.
24///
25/// <p>Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.</p>
26/// <p>The images available to you include public images, private images that you own, and private images owned by other Amazon Web Services accounts for which you have explicit launch permissions.</p>
27/// <p>Recently deregistered images appear in the returned results for a short interval and then return empty results. After all instances that reference a deregistered AMI are terminated, specifying the ID of the image will eventually return an error indicating that the AMI ID cannot be found.</p>
28/// <p>When Allowed AMIs is set to <code>enabled</code>, only allowed images are returned in the results, with the <code>imageAllowed</code> field set to <code>true</code> for each image. In <code>audit-mode</code>, the <code>imageAllowed</code> field is set to <code>true</code> for images that meet the account's Allowed AMIs criteria, and <code>false</code> for images that don't meet the criteria. For more information, see <code>EnableAllowedImagesSettings</code>.</p><important>
29/// <p>We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.</p>
30/// </important> <note>
31/// <p>The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.</p>
32/// </note>
33#[derive(::std::clone::Clone, ::std::fmt::Debug)]
34pub struct DescribeImagesFluentBuilder {
35 handle: ::std::sync::Arc<crate::client::Handle>,
36 inner: crate::operation::describe_images::builders::DescribeImagesInputBuilder,
37 config_override: ::std::option::Option<crate::config::Builder>,
38}
39impl
40 crate::client::customize::internal::CustomizableSend<
41 crate::operation::describe_images::DescribeImagesOutput,
42 crate::operation::describe_images::DescribeImagesError,
43 > for DescribeImagesFluentBuilder
44{
45 fn send(
46 self,
47 config_override: crate::config::Builder,
48 ) -> crate::client::customize::internal::BoxFuture<
49 crate::client::customize::internal::SendResult<
50 crate::operation::describe_images::DescribeImagesOutput,
51 crate::operation::describe_images::DescribeImagesError,
52 >,
53 > {
54 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
55 }
56}
57impl DescribeImagesFluentBuilder {
58 /// Creates a new `DescribeImagesFluentBuilder`.
59 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
60 Self {
61 handle,
62 inner: ::std::default::Default::default(),
63 config_override: ::std::option::Option::None,
64 }
65 }
66 /// Access the DescribeImages as a reference.
67 pub fn as_input(&self) -> &crate::operation::describe_images::builders::DescribeImagesInputBuilder {
68 &self.inner
69 }
70 /// Sends the request and returns the response.
71 ///
72 /// If an error occurs, an `SdkError` will be returned with additional details that
73 /// can be matched against.
74 ///
75 /// By default, any retryable failures will be retried twice. Retry behavior
76 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
77 /// set when configuring the client.
78 pub async fn send(
79 self,
80 ) -> ::std::result::Result<
81 crate::operation::describe_images::DescribeImagesOutput,
82 ::aws_smithy_runtime_api::client::result::SdkError<
83 crate::operation::describe_images::DescribeImagesError,
84 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
85 >,
86 > {
87 let input = self
88 .inner
89 .build()
90 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
91 let runtime_plugins = crate::operation::describe_images::DescribeImages::operation_runtime_plugins(
92 self.handle.runtime_plugins.clone(),
93 &self.handle.conf,
94 self.config_override,
95 );
96 crate::operation::describe_images::DescribeImages::orchestrate(&runtime_plugins, input).await
97 }
98
99 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
100 pub fn customize(
101 self,
102 ) -> crate::client::customize::CustomizableOperation<
103 crate::operation::describe_images::DescribeImagesOutput,
104 crate::operation::describe_images::DescribeImagesError,
105 Self,
106 > {
107 crate::client::customize::CustomizableOperation::new(self)
108 }
109 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
110 self.set_config_override(::std::option::Option::Some(config_override.into()));
111 self
112 }
113
114 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
115 self.config_override = config_override;
116 self
117 }
118 /// Create a paginator for this request
119 ///
120 /// Paginators are used by calling [`send().await`](crate::operation::describe_images::paginator::DescribeImagesPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
121 pub fn into_paginator(self) -> crate::operation::describe_images::paginator::DescribeImagesPaginator {
122 crate::operation::describe_images::paginator::DescribeImagesPaginator::new(self.handle, self.inner)
123 }
124 ///
125 /// Appends an item to `ExecutableUsers`.
126 ///
127 /// To override the contents of this collection use [`set_executable_users`](Self::set_executable_users).
128 ///
129 /// <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>
130 /// <ul>
131 /// <li>
132 /// <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>
133 /// <li>
134 /// <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>
135 /// <li>
136 /// <p>If you specify <code>all</code>, all public AMIs are returned.</p></li>
137 /// </ul>
138 pub fn executable_users(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
139 self.inner = self.inner.executable_users(input.into());
140 self
141 }
142 /// <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>
143 /// <ul>
144 /// <li>
145 /// <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>
146 /// <li>
147 /// <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>
148 /// <li>
149 /// <p>If you specify <code>all</code>, all public AMIs are returned.</p></li>
150 /// </ul>
151 pub fn set_executable_users(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
152 self.inner = self.inner.set_executable_users(input);
153 self
154 }
155 /// <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>
156 /// <ul>
157 /// <li>
158 /// <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>
159 /// <li>
160 /// <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>
161 /// <li>
162 /// <p>If you specify <code>all</code>, all public AMIs are returned.</p></li>
163 /// </ul>
164 pub fn get_executable_users(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
165 self.inner.get_executable_users()
166 }
167 ///
168 /// Appends an item to `ImageIds`.
169 ///
170 /// To override the contents of this collection use [`set_image_ids`](Self::set_image_ids).
171 ///
172 /// <p>The image IDs.</p>
173 /// <p>Default: Describes all images available to you.</p>
174 pub fn image_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
175 self.inner = self.inner.image_ids(input.into());
176 self
177 }
178 /// <p>The image IDs.</p>
179 /// <p>Default: Describes all images available to you.</p>
180 pub fn set_image_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
181 self.inner = self.inner.set_image_ids(input);
182 self
183 }
184 /// <p>The image IDs.</p>
185 /// <p>Default: Describes all images available to you.</p>
186 pub fn get_image_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
187 self.inner.get_image_ids()
188 }
189 ///
190 /// Appends an item to `Owners`.
191 ///
192 /// To override the contents of this collection use [`set_owners`](Self::set_owners).
193 ///
194 /// <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>
195 pub fn owners(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
196 self.inner = self.inner.owners(input.into());
197 self
198 }
199 /// <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>
200 pub fn set_owners(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
201 self.inner = self.inner.set_owners(input);
202 self
203 }
204 /// <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>
205 pub fn get_owners(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
206 self.inner.get_owners()
207 }
208 /// <p>Specifies whether to include deprecated AMIs.</p>
209 /// <p>Default: No deprecated AMIs are included in the response.</p><note>
210 /// <p>If you are the AMI owner, all deprecated AMIs appear in the response regardless of what you specify for this parameter.</p>
211 /// </note>
212 pub fn include_deprecated(mut self, input: bool) -> Self {
213 self.inner = self.inner.include_deprecated(input);
214 self
215 }
216 /// <p>Specifies whether to include deprecated AMIs.</p>
217 /// <p>Default: No deprecated AMIs are included in the response.</p><note>
218 /// <p>If you are the AMI owner, all deprecated AMIs appear in the response regardless of what you specify for this parameter.</p>
219 /// </note>
220 pub fn set_include_deprecated(mut self, input: ::std::option::Option<bool>) -> Self {
221 self.inner = self.inner.set_include_deprecated(input);
222 self
223 }
224 /// <p>Specifies whether to include deprecated AMIs.</p>
225 /// <p>Default: No deprecated AMIs are included in the response.</p><note>
226 /// <p>If you are the AMI owner, all deprecated AMIs appear in the response regardless of what you specify for this parameter.</p>
227 /// </note>
228 pub fn get_include_deprecated(&self) -> &::std::option::Option<bool> {
229 self.inner.get_include_deprecated()
230 }
231 /// <p>Specifies whether to include disabled AMIs.</p>
232 /// <p>Default: No disabled AMIs are included in the response.</p>
233 pub fn include_disabled(mut self, input: bool) -> Self {
234 self.inner = self.inner.include_disabled(input);
235 self
236 }
237 /// <p>Specifies whether to include disabled AMIs.</p>
238 /// <p>Default: No disabled AMIs are included in the response.</p>
239 pub fn set_include_disabled(mut self, input: ::std::option::Option<bool>) -> Self {
240 self.inner = self.inner.set_include_disabled(input);
241 self
242 }
243 /// <p>Specifies whether to include disabled AMIs.</p>
244 /// <p>Default: No disabled AMIs are included in the response.</p>
245 pub fn get_include_disabled(&self) -> &::std::option::Option<bool> {
246 self.inner.get_include_disabled()
247 }
248 /// <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>
249 pub fn max_results(mut self, input: i32) -> Self {
250 self.inner = self.inner.max_results(input);
251 self
252 }
253 /// <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>
254 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
255 self.inner = self.inner.set_max_results(input);
256 self
257 }
258 /// <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>
259 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
260 self.inner.get_max_results()
261 }
262 /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
263 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
264 self.inner = self.inner.next_token(input.into());
265 self
266 }
267 /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
268 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
269 self.inner = self.inner.set_next_token(input);
270 self
271 }
272 /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
273 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
274 self.inner.get_next_token()
275 }
276 /// <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>
277 pub fn dry_run(mut self, input: bool) -> Self {
278 self.inner = self.inner.dry_run(input);
279 self
280 }
281 /// <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>
282 pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
283 self.inner = self.inner.set_dry_run(input);
284 self
285 }
286 /// <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>
287 pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
288 self.inner.get_dry_run()
289 }
290 ///
291 /// Appends an item to `Filters`.
292 ///
293 /// To override the contents of this collection use [`set_filters`](Self::set_filters).
294 ///
295 /// <p>The filters.</p>
296 /// <ul>
297 /// <li>
298 /// <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>
299 /// <li>
300 /// <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>
301 /// <li>
302 /// <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>
303 /// <li>
304 /// <p><code>block-device-mapping.snapshot-id</code> - The ID of the snapshot used for the Amazon EBS volume.</p></li>
305 /// <li>
306 /// <p><code>block-device-mapping.volume-size</code> - The volume size of the Amazon EBS volume, in GiB.</p></li>
307 /// <li>
308 /// <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>
309 /// <li>
310 /// <p><code>block-device-mapping.encrypted</code> - A Boolean that indicates whether the Amazon EBS volume is encrypted.</p></li>
311 /// <li>
312 /// <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>
313 /// <li>
314 /// <p><code>description</code> - The description of the image (provided during image creation).</p></li>
315 /// <li>
316 /// <p><code>ena-support</code> - A Boolean that indicates whether enhanced networking with ENA is enabled.</p></li>
317 /// <li>
318 /// <p><code>hypervisor</code> - The hypervisor type (<code>ovm</code> | <code>xen</code>).</p></li>
319 /// <li>
320 /// <p><code>image-allowed</code> - A Boolean that indicates whether the image meets the criteria specified for Allowed AMIs.</p></li>
321 /// <li>
322 /// <p><code>image-id</code> - The ID of the image.</p></li>
323 /// <li>
324 /// <p><code>image-type</code> - The image type (<code>machine</code> | <code>kernel</code> | <code>ramdisk</code>).</p></li>
325 /// <li>
326 /// <p><code>is-public</code> - A Boolean that indicates whether the image is public.</p></li>
327 /// <li>
328 /// <p><code>kernel-id</code> - The kernel ID.</p></li>
329 /// <li>
330 /// <p><code>manifest-location</code> - The location of the image manifest.</p></li>
331 /// <li>
332 /// <p><code>name</code> - The name of the AMI (provided during image creation).</p></li>
333 /// <li>
334 /// <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>
335 /// <li>
336 /// <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>
337 /// <li>
338 /// <p><code>platform</code> - The platform. The only supported value is <code>windows</code>.</p></li>
339 /// <li>
340 /// <p><code>product-code</code> - The product code.</p></li>
341 /// <li>
342 /// <p><code>product-code.type</code> - The type of the product code (<code>marketplace</code>).</p></li>
343 /// <li>
344 /// <p><code>ramdisk-id</code> - The RAM disk ID.</p></li>
345 /// <li>
346 /// <p><code>root-device-name</code> - The device name of the root device volume (for example, <code>/dev/sda1</code>).</p></li>
347 /// <li>
348 /// <p><code>root-device-type</code> - The type of the root device volume (<code>ebs</code> | <code>instance-store</code>).</p></li>
349 /// <li>
350 /// <p><code>source-image-id</code> - The ID of the source AMI from which the AMI was created.</p></li>
351 /// <li>
352 /// <p><code>source-image-region</code> - The Region of the source AMI.</p></li>
353 /// <li>
354 /// <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>
355 /// <li>
356 /// <p><code>state</code> - The state of the image (<code>available</code> | <code>pending</code> | <code>failed</code>).</p></li>
357 /// <li>
358 /// <p><code>state-reason-code</code> - The reason code for the state change.</p></li>
359 /// <li>
360 /// <p><code>state-reason-message</code> - The message for the state change.</p></li>
361 /// <li>
362 /// <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>
363 /// <li>
364 /// <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>
365 /// <li>
366 /// <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>
367 /// <li>
368 /// <p><code>virtualization-type</code> - The virtualization type (<code>paravirtual</code> | <code>hvm</code>).</p></li>
369 /// </ul>
370 pub fn filters(mut self, input: crate::types::Filter) -> Self {
371 self.inner = self.inner.filters(input);
372 self
373 }
374 /// <p>The filters.</p>
375 /// <ul>
376 /// <li>
377 /// <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>
378 /// <li>
379 /// <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>
380 /// <li>
381 /// <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>
382 /// <li>
383 /// <p><code>block-device-mapping.snapshot-id</code> - The ID of the snapshot used for the Amazon EBS volume.</p></li>
384 /// <li>
385 /// <p><code>block-device-mapping.volume-size</code> - The volume size of the Amazon EBS volume, in GiB.</p></li>
386 /// <li>
387 /// <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>
388 /// <li>
389 /// <p><code>block-device-mapping.encrypted</code> - A Boolean that indicates whether the Amazon EBS volume is encrypted.</p></li>
390 /// <li>
391 /// <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>
392 /// <li>
393 /// <p><code>description</code> - The description of the image (provided during image creation).</p></li>
394 /// <li>
395 /// <p><code>ena-support</code> - A Boolean that indicates whether enhanced networking with ENA is enabled.</p></li>
396 /// <li>
397 /// <p><code>hypervisor</code> - The hypervisor type (<code>ovm</code> | <code>xen</code>).</p></li>
398 /// <li>
399 /// <p><code>image-allowed</code> - A Boolean that indicates whether the image meets the criteria specified for Allowed AMIs.</p></li>
400 /// <li>
401 /// <p><code>image-id</code> - The ID of the image.</p></li>
402 /// <li>
403 /// <p><code>image-type</code> - The image type (<code>machine</code> | <code>kernel</code> | <code>ramdisk</code>).</p></li>
404 /// <li>
405 /// <p><code>is-public</code> - A Boolean that indicates whether the image is public.</p></li>
406 /// <li>
407 /// <p><code>kernel-id</code> - The kernel ID.</p></li>
408 /// <li>
409 /// <p><code>manifest-location</code> - The location of the image manifest.</p></li>
410 /// <li>
411 /// <p><code>name</code> - The name of the AMI (provided during image creation).</p></li>
412 /// <li>
413 /// <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>
414 /// <li>
415 /// <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>
416 /// <li>
417 /// <p><code>platform</code> - The platform. The only supported value is <code>windows</code>.</p></li>
418 /// <li>
419 /// <p><code>product-code</code> - The product code.</p></li>
420 /// <li>
421 /// <p><code>product-code.type</code> - The type of the product code (<code>marketplace</code>).</p></li>
422 /// <li>
423 /// <p><code>ramdisk-id</code> - The RAM disk ID.</p></li>
424 /// <li>
425 /// <p><code>root-device-name</code> - The device name of the root device volume (for example, <code>/dev/sda1</code>).</p></li>
426 /// <li>
427 /// <p><code>root-device-type</code> - The type of the root device volume (<code>ebs</code> | <code>instance-store</code>).</p></li>
428 /// <li>
429 /// <p><code>source-image-id</code> - The ID of the source AMI from which the AMI was created.</p></li>
430 /// <li>
431 /// <p><code>source-image-region</code> - The Region of the source AMI.</p></li>
432 /// <li>
433 /// <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>
434 /// <li>
435 /// <p><code>state</code> - The state of the image (<code>available</code> | <code>pending</code> | <code>failed</code>).</p></li>
436 /// <li>
437 /// <p><code>state-reason-code</code> - The reason code for the state change.</p></li>
438 /// <li>
439 /// <p><code>state-reason-message</code> - The message for the state change.</p></li>
440 /// <li>
441 /// <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>
442 /// <li>
443 /// <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>
444 /// <li>
445 /// <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>
446 /// <li>
447 /// <p><code>virtualization-type</code> - The virtualization type (<code>paravirtual</code> | <code>hvm</code>).</p></li>
448 /// </ul>
449 pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
450 self.inner = self.inner.set_filters(input);
451 self
452 }
453 /// <p>The filters.</p>
454 /// <ul>
455 /// <li>
456 /// <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>
457 /// <li>
458 /// <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>
459 /// <li>
460 /// <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>
461 /// <li>
462 /// <p><code>block-device-mapping.snapshot-id</code> - The ID of the snapshot used for the Amazon EBS volume.</p></li>
463 /// <li>
464 /// <p><code>block-device-mapping.volume-size</code> - The volume size of the Amazon EBS volume, in GiB.</p></li>
465 /// <li>
466 /// <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>
467 /// <li>
468 /// <p><code>block-device-mapping.encrypted</code> - A Boolean that indicates whether the Amazon EBS volume is encrypted.</p></li>
469 /// <li>
470 /// <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>
471 /// <li>
472 /// <p><code>description</code> - The description of the image (provided during image creation).</p></li>
473 /// <li>
474 /// <p><code>ena-support</code> - A Boolean that indicates whether enhanced networking with ENA is enabled.</p></li>
475 /// <li>
476 /// <p><code>hypervisor</code> - The hypervisor type (<code>ovm</code> | <code>xen</code>).</p></li>
477 /// <li>
478 /// <p><code>image-allowed</code> - A Boolean that indicates whether the image meets the criteria specified for Allowed AMIs.</p></li>
479 /// <li>
480 /// <p><code>image-id</code> - The ID of the image.</p></li>
481 /// <li>
482 /// <p><code>image-type</code> - The image type (<code>machine</code> | <code>kernel</code> | <code>ramdisk</code>).</p></li>
483 /// <li>
484 /// <p><code>is-public</code> - A Boolean that indicates whether the image is public.</p></li>
485 /// <li>
486 /// <p><code>kernel-id</code> - The kernel ID.</p></li>
487 /// <li>
488 /// <p><code>manifest-location</code> - The location of the image manifest.</p></li>
489 /// <li>
490 /// <p><code>name</code> - The name of the AMI (provided during image creation).</p></li>
491 /// <li>
492 /// <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>
493 /// <li>
494 /// <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>
495 /// <li>
496 /// <p><code>platform</code> - The platform. The only supported value is <code>windows</code>.</p></li>
497 /// <li>
498 /// <p><code>product-code</code> - The product code.</p></li>
499 /// <li>
500 /// <p><code>product-code.type</code> - The type of the product code (<code>marketplace</code>).</p></li>
501 /// <li>
502 /// <p><code>ramdisk-id</code> - The RAM disk ID.</p></li>
503 /// <li>
504 /// <p><code>root-device-name</code> - The device name of the root device volume (for example, <code>/dev/sda1</code>).</p></li>
505 /// <li>
506 /// <p><code>root-device-type</code> - The type of the root device volume (<code>ebs</code> | <code>instance-store</code>).</p></li>
507 /// <li>
508 /// <p><code>source-image-id</code> - The ID of the source AMI from which the AMI was created.</p></li>
509 /// <li>
510 /// <p><code>source-image-region</code> - The Region of the source AMI.</p></li>
511 /// <li>
512 /// <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>
513 /// <li>
514 /// <p><code>state</code> - The state of the image (<code>available</code> | <code>pending</code> | <code>failed</code>).</p></li>
515 /// <li>
516 /// <p><code>state-reason-code</code> - The reason code for the state change.</p></li>
517 /// <li>
518 /// <p><code>state-reason-message</code> - The message for the state change.</p></li>
519 /// <li>
520 /// <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>
521 /// <li>
522 /// <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>
523 /// <li>
524 /// <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>
525 /// <li>
526 /// <p><code>virtualization-type</code> - The virtualization type (<code>paravirtual</code> | <code>hvm</code>).</p></li>
527 /// </ul>
528 pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
529 self.inner.get_filters()
530 }
531}