Class TableBucket.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TableBucket>
- Enclosing class:
TableBucket
TableBucket
.-
Method Summary
Modifier and TypeMethodDescription(experimental) AWS Account ID of the table bucket owner.build()
static TableBucket.Builder
encryption
(TableBucketEncryption encryption) (experimental) The kind of server-side encryption to apply to this bucket.encryptionKey
(IKey encryptionKey) (experimental) External KMS key to use for bucket encryption.(experimental) AWS region that the table bucket exists in.removalPolicy
(RemovalPolicy removalPolicy) (experimental) Controls what happens to this table bucket it it stoped being managed by cloudformation.tableBucketName
(String tableBucketName) (experimental) Name of the S3 TableBucket.unreferencedFileRemoval
(UnreferencedFileRemoval unreferencedFileRemoval) (experimental) Unreferenced file removal settings for the S3 TableBucket.
-
Method Details
-
create
@Stability(Experimental) public static TableBucket.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
TableBucket.Builder
.
-
tableBucketName
(experimental) Name of the S3 TableBucket.- Parameters:
tableBucketName
- Name of the S3 TableBucket. This parameter is required.- Returns:
this
-
account
(experimental) AWS Account ID of the table bucket owner.Default: - it's assumed the bucket belongs to the same account as the scope it's being imported into
- Parameters:
account
- AWS Account ID of the table bucket owner. This parameter is required.- Returns:
this
-
encryption
(experimental) The kind of server-side encryption to apply to this bucket.If you choose KMS, you can specify a KMS key via
encryptionKey
. If encryption key is not specified, a key will automatically be created.Default: - `KMS` if `encryptionKey` is specified, or `S3_MANAGED` otherwise.
- Parameters:
encryption
- The kind of server-side encryption to apply to this bucket. This parameter is required.- Returns:
this
-
encryptionKey
(experimental) External KMS key to use for bucket encryption.The
encryption
property must be either not specified or set toKMS
. An error will be emitted ifencryption
is set toS3_MANAGED
.Default: - If `encryption` is set to `KMS` and this property is undefined, a new KMS key will be created and associated with this bucket.
- Parameters:
encryptionKey
- External KMS key to use for bucket encryption. This parameter is required.- Returns:
this
-
region
(experimental) AWS region that the table bucket exists in.Default: - it's assumed the bucket is in the same region as the scope it's being imported into
- Parameters:
region
- AWS region that the table bucket exists in. This parameter is required.- Returns:
this
-
removalPolicy
(experimental) Controls what happens to this table bucket it it stoped being managed by cloudformation.Default: RETAIN
- Parameters:
removalPolicy
- Controls what happens to this table bucket it it stoped being managed by cloudformation. This parameter is required.- Returns:
this
-
unreferencedFileRemoval
@Stability(Experimental) public TableBucket.Builder unreferencedFileRemoval(UnreferencedFileRemoval unreferencedFileRemoval) (experimental) Unreferenced file removal settings for the S3 TableBucket.Default: Enabled with default values
- Parameters:
unreferencedFileRemoval
- Unreferenced file removal settings for the S3 TableBucket. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TableBucket>
- Returns:
- a newly built instance of
TableBucket
.
-