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.impl StructuralPartialEq for GetSnapshotBlockPublicAccessStateOutput
Auto Trait Implementations§
impl Freeze for GetSnapshotBlockPublicAccessStateOutput
impl RefUnwindSafe for GetSnapshotBlockPublicAccessStateOutput
impl Send for GetSnapshotBlockPublicAccessStateOutput
impl Sync for GetSnapshotBlockPublicAccessStateOutput
impl Unpin for GetSnapshotBlockPublicAccessStateOutput
impl UnwindSafe for GetSnapshotBlockPublicAccessStateOutput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more