Struct aws_sdk_macie2::model::s3_bucket::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for S3Bucket
.
Implementations§
source§impl 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 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 uploaded 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.
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.