#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for S3Bucket
Implementations
sourceimpl Builder
impl Builder
sourcepub fn allows_unencrypted_object_uploads(
self,
input: AllowsUnencryptedObjectUploads
) -> Self
pub fn allows_unencrypted_object_uploads(
self,
input: AllowsUnencryptedObjectUploads
) -> Self
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are uploaded to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include the x-amz-server-side-encryption header and the value for that header must be AES256 or aws:kms.
TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include the x-amz-server-side-encryption header and it doesn't require the value for that header to be AES256 or aws:kms.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of objects.
sourcepub fn set_allows_unencrypted_object_uploads(
self,
input: Option<AllowsUnencryptedObjectUploads>
) -> Self
pub fn set_allows_unencrypted_object_uploads(
self,
input: Option<AllowsUnencryptedObjectUploads>
) -> Self
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are uploaded to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include the x-amz-server-side-encryption header and the value for that header must be AES256 or aws:kms.
TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include the x-amz-server-side-encryption header and it doesn't require the value for that header to be AES256 or aws:kms.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of objects.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the bucket.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the bucket.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
sourcepub fn default_server_side_encryption(self, input: ServerSideEncryption) -> Self
pub fn default_server_side_encryption(self, input: ServerSideEncryption) -> Self
The type of server-side encryption that's used by default to encrypt objects in the bucket.
sourcepub fn set_default_server_side_encryption(
self,
input: Option<ServerSideEncryption>
) -> Self
pub fn set_default_server_side_encryption(
self,
input: Option<ServerSideEncryption>
) -> Self
The type of server-side encryption that's used by default to encrypt objects in the bucket.
sourcepub fn owner(self, input: S3BucketOwner) -> Self
pub fn owner(self, input: S3BucketOwner) -> Self
The display name and canonical user ID for the Amazon Web Services account that owns the bucket.
sourcepub fn set_owner(self, input: Option<S3BucketOwner>) -> Self
pub fn set_owner(self, input: Option<S3BucketOwner>) -> Self
The display name and canonical user ID for the Amazon Web Services account that owns the bucket.
sourcepub fn public_access(self, input: BucketPublicAccess) -> Self
pub fn public_access(self, input: BucketPublicAccess) -> Self
The permissions settings that determine whether the bucket is publicly accessible.
sourcepub fn set_public_access(self, input: Option<BucketPublicAccess>) -> Self
pub fn set_public_access(self, input: Option<BucketPublicAccess>) -> Self
The permissions settings that determine whether the bucket is publicly accessible.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags that are associated with the bucket.
The tags that are associated with the bucket.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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