#[non_exhaustive]pub struct S3BucketConfigurationBuilder { /* private fields */ }
Expand description
A builder for S3BucketConfiguration
.
Implementations§
source§impl S3BucketConfigurationBuilder
impl S3BucketConfigurationBuilder
sourcepub fn bucket_policy(self, input: impl Into<String>) -> Self
pub fn bucket_policy(self, input: impl Into<String>) -> Self
The proposed bucket policy for the Amazon S3 bucket.
sourcepub fn set_bucket_policy(self, input: Option<String>) -> Self
pub fn set_bucket_policy(self, input: Option<String>) -> Self
The proposed bucket policy for the Amazon S3 bucket.
sourcepub fn get_bucket_policy(&self) -> &Option<String>
pub fn get_bucket_policy(&self) -> &Option<String>
The proposed bucket policy for the Amazon S3 bucket.
sourcepub fn bucket_acl_grants(self, input: S3BucketAclGrantConfiguration) -> Self
pub fn bucket_acl_grants(self, input: S3BucketAclGrantConfiguration) -> Self
Appends an item to bucket_acl_grants
.
To override the contents of this collection use set_bucket_acl_grants
.
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 set_bucket_acl_grants(
self,
input: Option<Vec<S3BucketAclGrantConfiguration>>
) -> Self
pub fn set_bucket_acl_grants( self, input: Option<Vec<S3BucketAclGrantConfiguration>> ) -> Self
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 get_bucket_acl_grants(
&self
) -> &Option<Vec<S3BucketAclGrantConfiguration>>
pub fn get_bucket_acl_grants( &self ) -> &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.
sourcepub fn bucket_public_access_block(
self,
input: S3PublicAccessBlockConfiguration
) -> Self
pub fn bucket_public_access_block( self, input: S3PublicAccessBlockConfiguration ) -> Self
The proposed block public access configuration for the Amazon S3 bucket.
sourcepub fn set_bucket_public_access_block(
self,
input: Option<S3PublicAccessBlockConfiguration>
) -> Self
pub fn set_bucket_public_access_block( self, input: Option<S3PublicAccessBlockConfiguration> ) -> Self
The proposed block public access configuration for the Amazon S3 bucket.
sourcepub fn get_bucket_public_access_block(
&self
) -> &Option<S3PublicAccessBlockConfiguration>
pub fn get_bucket_public_access_block( &self ) -> &Option<S3PublicAccessBlockConfiguration>
The proposed block public access configuration for the Amazon S3 bucket.
sourcepub fn access_points(
self,
k: impl Into<String>,
v: S3AccessPointConfiguration
) -> Self
pub fn access_points( self, k: impl Into<String>, v: S3AccessPointConfiguration ) -> Self
Adds a key-value pair to access_points
.
To override the contents of this collection use set_access_points
.
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.
sourcepub fn set_access_points(
self,
input: Option<HashMap<String, S3AccessPointConfiguration>>
) -> Self
pub fn set_access_points( self, input: Option<HashMap<String, S3AccessPointConfiguration>> ) -> Self
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.
sourcepub fn get_access_points(
&self
) -> &Option<HashMap<String, S3AccessPointConfiguration>>
pub fn get_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.
sourcepub fn build(self) -> S3BucketConfiguration
pub fn build(self) -> S3BucketConfiguration
Consumes the builder and constructs a S3BucketConfiguration
.
Trait Implementations§
source§impl Clone for S3BucketConfigurationBuilder
impl Clone for S3BucketConfigurationBuilder
source§fn clone(&self) -> S3BucketConfigurationBuilder
fn clone(&self) -> S3BucketConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for S3BucketConfigurationBuilder
impl Debug for S3BucketConfigurationBuilder
source§impl Default for S3BucketConfigurationBuilder
impl Default for S3BucketConfigurationBuilder
source§fn default() -> S3BucketConfigurationBuilder
fn default() -> S3BucketConfigurationBuilder
source§impl PartialEq for S3BucketConfigurationBuilder
impl PartialEq for S3BucketConfigurationBuilder
source§fn eq(&self, other: &S3BucketConfigurationBuilder) -> bool
fn eq(&self, other: &S3BucketConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for S3BucketConfigurationBuilder
Auto Trait Implementations§
impl Freeze for S3BucketConfigurationBuilder
impl RefUnwindSafe for S3BucketConfigurationBuilder
impl Send for S3BucketConfigurationBuilder
impl Sync for S3BucketConfigurationBuilder
impl Unpin for S3BucketConfigurationBuilder
impl UnwindSafe for S3BucketConfigurationBuilder
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