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