#[non_exhaustive]pub struct S3BucketConfiguration { /* private fields */ }
Expand description
Proposed access control configuration for an Amazon S3 bucket. You can propose a configuration for a new Amazon S3 bucket or an existing Amazon S3 bucket that you own by specifying the Amazon S3 bucket policy, bucket ACLs, bucket BPA settings, Amazon S3 access points, and multi-region access points attached to the bucket. If the configuration is for an existing Amazon S3 bucket and you do not specify the Amazon S3 bucket policy, the access preview uses the existing policy attached to the bucket. If the access preview is for a new resource and you do not specify the Amazon S3 bucket policy, the access preview assumes a bucket without a policy. To propose deletion of an existing bucket policy, you can specify an empty string. For more information about bucket policy limits, see Bucket Policy Examples.
Implementations§
source§impl S3BucketConfiguration
impl S3BucketConfiguration
sourcepub fn bucket_policy(&self) -> Option<&str>
pub fn bucket_policy(&self) -> Option<&str>
The proposed bucket policy for the Amazon S3 bucket.
sourcepub fn bucket_acl_grants(&self) -> Option<&[S3BucketAclGrantConfiguration]>
pub fn bucket_acl_grants(&self) -> Option<&[S3BucketAclGrantConfiguration]>
The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.
sourcepub fn bucket_public_access_block(
&self
) -> Option<&S3PublicAccessBlockConfiguration>
pub fn bucket_public_access_block(
&self
) -> Option<&S3PublicAccessBlockConfiguration>
The proposed block public access configuration for the Amazon S3 bucket.
sourcepub fn access_points(
&self
) -> Option<&HashMap<String, S3AccessPointConfiguration>>
pub fn access_points(
&self
) -> Option<&HashMap<String, S3AccessPointConfiguration>>
The configuration of Amazon S3 access points or multi-region access points for the bucket. You can propose up to 10 new access points per bucket.
source§impl S3BucketConfiguration
impl S3BucketConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture S3BucketConfiguration
.
Trait Implementations§
source§impl Clone for S3BucketConfiguration
impl Clone for S3BucketConfiguration
source§fn clone(&self) -> S3BucketConfiguration
fn clone(&self) -> S3BucketConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for S3BucketConfiguration
impl Debug for S3BucketConfiguration
source§impl PartialEq<S3BucketConfiguration> for S3BucketConfiguration
impl PartialEq<S3BucketConfiguration> for S3BucketConfiguration
source§fn eq(&self, other: &S3BucketConfiguration) -> bool
fn eq(&self, other: &S3BucketConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.