Struct aws_sdk_macie2::types::builders::S3BucketBuilder
source · #[non_exhaustive]pub struct S3BucketBuilder { /* private fields */ }
Expand description
A builder for S3Bucket
.
Implementations§
source§impl S3BucketBuilder
impl S3BucketBuilder
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 added to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.
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 a valid server-side encryption header.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.
Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.
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 added to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.
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 a valid server-side encryption header.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.
Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.
sourcepub fn get_allows_unencrypted_object_uploads(
&self
) -> &Option<AllowsUnencryptedObjectUploads>
pub fn get_allows_unencrypted_object_uploads( &self ) -> &Option<AllowsUnencryptedObjectUploads>
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are added to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.
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 a valid server-side encryption header.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.
Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.
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. This value can also indicate when changes such as edits to the bucket's policy were most recently made to the bucket, relative to when the finding was created or last updated.
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. This value can also indicate when changes such as edits to the bucket's policy were most recently made to the bucket, relative to when the finding was created or last updated.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The date and time, in UTC and extended ISO 8601 format, when the bucket was created. This value can also indicate when changes such as edits to the bucket's policy were most recently made to the bucket, relative to when the finding was created or last updated.
sourcepub fn default_server_side_encryption(self, input: ServerSideEncryption) -> Self
pub fn default_server_side_encryption(self, input: ServerSideEncryption) -> Self
The default server-side encryption settings for 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 default server-side encryption settings for the bucket.
sourcepub fn get_default_server_side_encryption(
&self
) -> &Option<ServerSideEncryption>
pub fn get_default_server_side_encryption( &self ) -> &Option<ServerSideEncryption>
The default server-side encryption settings for 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 get_owner(&self) -> &Option<S3BucketOwner>
pub fn get_owner(&self) -> &Option<S3BucketOwner>
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.
sourcepub fn get_public_access(&self) -> &Option<BucketPublicAccess>
pub fn get_public_access(&self) -> &Option<BucketPublicAccess>
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.
The tags that are associated with the bucket.
Trait Implementations§
source§impl Clone for S3BucketBuilder
impl Clone for S3BucketBuilder
source§fn clone(&self) -> S3BucketBuilder
fn clone(&self) -> S3BucketBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for S3BucketBuilder
impl Debug for S3BucketBuilder
source§impl Default for S3BucketBuilder
impl Default for S3BucketBuilder
source§fn default() -> S3BucketBuilder
fn default() -> S3BucketBuilder
source§impl PartialEq for S3BucketBuilder
impl PartialEq for S3BucketBuilder
source§fn eq(&self, other: &S3BucketBuilder) -> bool
fn eq(&self, other: &S3BucketBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.