#[non_exhaustive]pub struct S3BucketConfiguration {
pub bucket_policy: Option<String>,
pub bucket_acl_grants: Option<Vec<S3BucketAclGrantConfiguration>>,
pub bucket_public_access_block: Option<S3PublicAccessBlockConfiguration>,
pub access_points: Option<HashMap<String, S3AccessPointConfiguration>>,
}
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.
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.bucket_policy: Option<String>
The proposed bucket policy for the Amazon S3 bucket.
bucket_acl_grants: Option<Vec<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.
bucket_public_access_block: Option<S3PublicAccessBlockConfiguration>
The proposed block public access configuration for the Amazon S3 bucket.
access_points: 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.
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) -> &[S3BucketAclGrantConfiguration]
pub fn bucket_acl_grants(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .bucket_acl_grants.is_none()
.
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() -> S3BucketConfigurationBuilder
pub fn builder() -> S3BucketConfigurationBuilder
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 for S3BucketConfiguration
impl PartialEq 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 ==
.impl StructuralPartialEq for S3BucketConfiguration
Auto Trait Implementations§
impl Freeze for S3BucketConfiguration
impl RefUnwindSafe for S3BucketConfiguration
impl Send for S3BucketConfiguration
impl Sync for S3BucketConfiguration
impl Unpin for S3BucketConfiguration
impl UnwindSafe for S3BucketConfiguration
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