#[non_exhaustive]pub struct S3PublicAccessBlockConfiguration {
pub ignore_public_acls: bool,
pub restrict_public_buckets: bool,
}
Expand description
The PublicAccessBlock
configuration to apply to this Amazon S3 bucket. If the proposed configuration is for an existing Amazon S3 bucket and the configuration is not specified, the access preview uses the existing setting. If the proposed configuration is for a new bucket and the configuration is not specified, the access preview uses false
. If the proposed configuration is for a new access point or multi-region access point and the access point BPA configuration is not specified, the access preview uses true
. For more information, see PublicAccessBlockConfiguration.
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.ignore_public_acls: bool
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
restrict_public_buckets: bool
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
Implementations§
source§impl S3PublicAccessBlockConfiguration
impl S3PublicAccessBlockConfiguration
sourcepub fn ignore_public_acls(&self) -> bool
pub fn ignore_public_acls(&self) -> bool
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
sourcepub fn restrict_public_buckets(&self) -> bool
pub fn restrict_public_buckets(&self) -> bool
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
source§impl S3PublicAccessBlockConfiguration
impl S3PublicAccessBlockConfiguration
sourcepub fn builder() -> S3PublicAccessBlockConfigurationBuilder
pub fn builder() -> S3PublicAccessBlockConfigurationBuilder
Creates a new builder-style object to manufacture S3PublicAccessBlockConfiguration
.
Trait Implementations§
source§impl Clone for S3PublicAccessBlockConfiguration
impl Clone for S3PublicAccessBlockConfiguration
source§fn clone(&self) -> S3PublicAccessBlockConfiguration
fn clone(&self) -> S3PublicAccessBlockConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for S3PublicAccessBlockConfiguration
impl PartialEq for S3PublicAccessBlockConfiguration
source§fn eq(&self, other: &S3PublicAccessBlockConfiguration) -> bool
fn eq(&self, other: &S3PublicAccessBlockConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for S3PublicAccessBlockConfiguration
Auto Trait Implementations§
impl Freeze for S3PublicAccessBlockConfiguration
impl RefUnwindSafe for S3PublicAccessBlockConfiguration
impl Send for S3PublicAccessBlockConfiguration
impl Sync for S3PublicAccessBlockConfiguration
impl Unpin for S3PublicAccessBlockConfiguration
impl UnwindSafe for S3PublicAccessBlockConfiguration
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