1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::enable_snapshot_block_public_access::_enable_snapshot_block_public_access_output::EnableSnapshotBlockPublicAccessOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::enable_snapshot_block_public_access::_enable_snapshot_block_public_access_input::EnableSnapshotBlockPublicAccessInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::enable_snapshot_block_public_access::_enable_snapshot_block_public_access_output::EnableSnapshotBlockPublicAccessOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::enable_snapshot_block_public_access::builders::EnableSnapshotBlockPublicAccessInputBuilder {
|
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::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::enable_snapshot_block_public_access::EnableSnapshotBlockPublicAccessError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.enable_snapshot_block_public_access();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `EnableSnapshotBlockPublicAccess`.
|
24 24 | ///
|
25 25 | /// <p>Enables or modifies the <i>block public access for snapshots</i> setting at the account level for the specified Amazon Web Services Region. After you enable block public access for snapshots in a Region, users can no longer request public sharing for snapshots in that Region. Snapshots that are already publicly shared are either treated as private or they remain publicly shared, depending on the <b>State</b> that you specify.</p><important>
|
26 26 | /// <p>Enabling block public access for snapshots in <i>block all sharing</i> mode does not change the permissions for snapshots that are already publicly shared. Instead, it prevents these snapshots from be publicly visible and publicly accessible. Therefore, the attributes for these snapshots still indicate that they are publicly shared, even though they are not publicly available.</p>
|
27 27 | /// <p>If you later disable block public access or change the mode to <i>block new sharing</i>, these snapshots will become publicly available again.</p>
|
28 28 | /// </important>
|
29 29 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/block-public-access-snapshots.html"> Block public access for snapshots</a> in the <i>Amazon EBS User Guide</i>.</p>
|
30 30 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
31 31 | pub struct EnableSnapshotBlockPublicAccessFluentBuilder {
|
32 32 | handle: ::std::sync::Arc<crate::client::Handle>,
|
33 33 | inner: crate::operation::enable_snapshot_block_public_access::builders::EnableSnapshotBlockPublicAccessInputBuilder,
|
34 34 | config_override: ::std::option::Option<crate::config::Builder>,
|
35 35 | }
|