#[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: boolSpecifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
restrict_public_buckets: boolSpecifies 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 ==.