aws_sdk_ec2/client/get_snapshot_block_public_access_state.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetSnapshotBlockPublicAccessState`](crate::operation::get_snapshot_block_public_access_state::builders::GetSnapshotBlockPublicAccessStateFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`dry_run(bool)`](crate::operation::get_snapshot_block_public_access_state::builders::GetSnapshotBlockPublicAccessStateFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::get_snapshot_block_public_access_state::builders::GetSnapshotBlockPublicAccessStateFluentBuilder::set_dry_run):<br>required: **false**<br><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><br>
7 /// - On success, responds with [`GetSnapshotBlockPublicAccessStateOutput`](crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateOutput) with field(s):
8 /// - [`state(Option<SnapshotBlockPublicAccessState>)`](crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateOutput::state): <p>The current state of block public access for snapshots. Possible values include:</p> <ul> <li> <p><code>block-all-sharing</code> - All public sharing of snapshots is blocked. Users in the account can't request new public sharing. Additionally, snapshots that were already publicly shared are treated as private and are not publicly available.</p></li> <li> <p><code>block-new-sharing</code> - Only new public sharing of snapshots is blocked. Users in the account can't request new public sharing. However, snapshots that were already publicly shared, remain publicly available.</p></li> <li> <p><code>unblocked</code> - Public sharing is not blocked. Users can publicly share snapshots.</p></li> </ul>
9 /// - [`managed_by(Option<ManagedBy>)`](crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateOutput::managed_by): <p>The entity that manages the state for block public access for snapshots. Possible values include:</p> <ul> <li> <p><code>account</code> - The state is managed by the account.</p></li> <li> <p><code>declarative-policy</code> - The state is managed by a declarative policy and can't be modified by the account.</p></li> </ul>
10 /// - On failure, responds with [`SdkError<GetSnapshotBlockPublicAccessStateError>`](crate::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateError)
11 pub fn get_snapshot_block_public_access_state(
12 &self,
13 ) -> crate::operation::get_snapshot_block_public_access_state::builders::GetSnapshotBlockPublicAccessStateFluentBuilder {
14 crate::operation::get_snapshot_block_public_access_state::builders::GetSnapshotBlockPublicAccessStateFluentBuilder::new(self.handle.clone())
15 }
16}