Struct aws_sdk_ec2::operation::get_snapshot_block_public_access_state::GetSnapshotBlockPublicAccessStateOutput
source · #[non_exhaustive]pub struct GetSnapshotBlockPublicAccessStateOutput {
pub state: Option<SnapshotBlockPublicAccessState>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.state: Option<SnapshotBlockPublicAccessState>
The current state of block public access for snapshots. Possible values include:
-
block-all-sharing
- 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. -
block-new-sharing
- 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. -
unblocked
- Public sharing is not blocked. Users can publicly share snapshots.
Implementations§
source§impl GetSnapshotBlockPublicAccessStateOutput
impl GetSnapshotBlockPublicAccessStateOutput
sourcepub fn state(&self) -> Option<&SnapshotBlockPublicAccessState>
pub fn state(&self) -> Option<&SnapshotBlockPublicAccessState>
The current state of block public access for snapshots. Possible values include:
-
block-all-sharing
- 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. -
block-new-sharing
- 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. -
unblocked
- Public sharing is not blocked. Users can publicly share snapshots.
source§impl GetSnapshotBlockPublicAccessStateOutput
impl GetSnapshotBlockPublicAccessStateOutput
sourcepub fn builder() -> GetSnapshotBlockPublicAccessStateOutputBuilder
pub fn builder() -> GetSnapshotBlockPublicAccessStateOutputBuilder
Creates a new builder-style object to manufacture GetSnapshotBlockPublicAccessStateOutput
.
Trait Implementations§
source§impl Clone for GetSnapshotBlockPublicAccessStateOutput
impl Clone for GetSnapshotBlockPublicAccessStateOutput
source§fn clone(&self) -> GetSnapshotBlockPublicAccessStateOutput
fn clone(&self) -> GetSnapshotBlockPublicAccessStateOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for GetSnapshotBlockPublicAccessStateOutput
impl PartialEq for GetSnapshotBlockPublicAccessStateOutput
source§fn eq(&self, other: &GetSnapshotBlockPublicAccessStateOutput) -> bool
fn eq(&self, other: &GetSnapshotBlockPublicAccessStateOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetSnapshotBlockPublicAccessStateOutput
impl RequestId for GetSnapshotBlockPublicAccessStateOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.