1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::disable_image::_disable_image_output::DisableImageOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::disable_image::_disable_image_input::DisableImageInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::disable_image::_disable_image_output::DisableImageOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::disable_image::builders::DisableImageInputBuilder {
|
7 7 | /// Sends a request with this input using the given client.
|
8 8 | pub async fn send_with(
|
9 9 | self,
|
10 10 | client: &crate::Client,
|
11 11 | ) -> ::std::result::Result<
|
12 12 | crate::operation::disable_image::DisableImageOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::disable_image::DisableImageError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.disable_image();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `DisableImage`.
|
24 24 | ///
|
25 25 | /// <p>Sets the AMI state to <code>disabled</code> and removes all launch permissions from the AMI. A disabled AMI can't be used for instance launches.</p>
|
26 26 | /// <p>A disabled AMI can't be shared. If an AMI was public or previously shared, it is made private. If an AMI was shared with an Amazon Web Services account, organization, or Organizational Unit, they lose access to the disabled AMI.</p>
|
27 27 | /// <p>A disabled AMI does not appear in <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html">DescribeImages</a> API calls by default.</p>
|
28 28 | /// <p>Only the AMI owner can disable an AMI.</p>
|
29 29 | /// <p>You can re-enable a disabled AMI using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EnableImage.html">EnableImage</a>.</p>
|
30 30 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/disable-an-ami.html">Disable an AMI</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
31 31 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
32 32 | pub struct DisableImageFluentBuilder {
|
33 33 | handle: ::std::sync::Arc<crate::client::Handle>,
|
34 34 | inner: crate::operation::disable_image::builders::DisableImageInputBuilder,
|
35 35 | config_override: ::std::option::Option<crate::config::Builder>,
|