#[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
sourceimpl 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.
sourceimpl S3BucketConfiguration
impl S3BucketConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture S3BucketConfiguration
.
Trait Implementations
sourceimpl Clone for S3BucketConfiguration
impl Clone for S3BucketConfiguration
sourcefn clone(&self) -> S3BucketConfiguration
fn clone(&self) -> S3BucketConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for S3BucketConfiguration
impl Debug for S3BucketConfiguration
sourceimpl PartialEq<S3BucketConfiguration> for S3BucketConfiguration
impl PartialEq<S3BucketConfiguration> for S3BucketConfiguration
sourcefn eq(&self, other: &S3BucketConfiguration) -> bool
fn eq(&self, other: &S3BucketConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &S3BucketConfiguration) -> bool
fn ne(&self, other: &S3BucketConfiguration) -> bool
This method tests for !=
.
impl StructuralPartialEq for S3BucketConfiguration
Auto Trait Implementations
impl RefUnwindSafe for S3BucketConfiguration
impl Send for S3BucketConfiguration
impl Sync for S3BucketConfiguration
impl Unpin for S3BucketConfiguration
impl UnwindSafe for S3BucketConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more