@Stability(value=Stable) public static final class CfnTableProps.Builder extends Object implements software.amazon.jsii.Builder<CfnTableProps>
CfnTableProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnTableProps |
build()
Builds the configured instance.
|
CfnTableProps.Builder |
databaseName(String databaseName)
Sets the value of
CfnTableProps.getDatabaseName() |
CfnTableProps.Builder |
magneticStoreWriteProperties(Object magneticStoreWriteProperties)
Sets the value of
CfnTableProps.getMagneticStoreWriteProperties() |
CfnTableProps.Builder |
retentionProperties(Object retentionProperties)
Sets the value of
CfnTableProps.getRetentionProperties() |
CfnTableProps.Builder |
tableName(String tableName)
Sets the value of
CfnTableProps.getTableName() |
CfnTableProps.Builder |
tags(List<? extends CfnTag> tags)
Sets the value of
CfnTableProps.getTags() |
@Stability(value=Stable) public CfnTableProps.Builder databaseName(String databaseName)
CfnTableProps.getDatabaseName()databaseName - The name of the Timestream database that contains this table. This parameter is required.
Length Constraints : Minimum length of 3 bytes. Maximum length of 256 bytes.this@Stability(value=Stable) public CfnTableProps.Builder magneticStoreWriteProperties(Object magneticStoreWriteProperties)
CfnTableProps.getMagneticStoreWriteProperties()magneticStoreWriteProperties - Contains properties to set on the table when enabling magnetic store writes.
This object has the following attributes:
boolean flag to enable magnetic store writes.S3Configuration objects are allowed. The S3Configuration object has the following attributes:SSE_S3 ) or AWS managed key ( SSE_KMS ).
Both BucketName and EncryptionOption are required when S3Configuration is specified. If you specify SSE_KMS as your EncryptionOption then KmsKeyId is required .
EnableMagneticStoreWrites attribute is required when MagneticStoreWriteProperties is specified. MagneticStoreRejectedDataLocation attribute is required when EnableMagneticStoreWrites is set to true .
See the following examples:
JSON
{ "Type" : AWS::Timestream::Table", "Properties":{ "DatabaseName":"TestDatabase", "TableName":"TestTable", "MagneticStoreWriteProperties":{ "EnableMagneticStoreWrites":true, "MagneticStoreRejectedDataLocation":{ "S3Configuration":{ "BucketName":"testbucket", "EncryptionOption":"SSE_KMS", "KmsKeyId":"1234abcd-12ab-34cd-56ef-1234567890ab", "ObjectKeyPrefix":"prefix" } } } }
}
YAML
Type: AWS::Timestream::Table
DependsOn: TestDatabase
Properties: TableName: "TestTable" DatabaseName: "TestDatabase" MagneticStoreWriteProperties: EnableMagneticStoreWrites: true MagneticStoreRejectedDataLocation: S3Configuration: BucketName: "testbucket" EncryptionOption: "SSE_KMS" BucketName: "1234abcd-12ab-34cd-56ef-1234567890ab" EncryptionOption: "prefix"
this@Stability(value=Stable) public CfnTableProps.Builder retentionProperties(Object retentionProperties)
CfnTableProps.getRetentionProperties()retentionProperties - The retention duration for the memory store and magnetic store. This object has the following attributes:.
Both attributes are of type string . Both attributes are required when RetentionProperties is specified.
See the following examples:
JSON
{ "Type" : AWS::Timestream::Table", "Properties" : { "DatabaseName" : "TestDatabase", "TableName" : "TestTable", "RetentionProperties" : { "MemoryStoreRetentionPeriodInHours": "24", "MagneticStoreRetentionPeriodInDays": "7" } } }
YAML
Type: AWS::Timestream::Table
DependsOn: TestDatabase
Properties: TableName: "TestTable" DatabaseName: "TestDatabase" RetentionProperties: MemoryStoreRetentionPeriodInHours: "24" MagneticStoreRetentionPeriodInDays: "7"
this@Stability(value=Stable) public CfnTableProps.Builder tableName(String tableName)
CfnTableProps.getTableName()tableName - The name of the Timestream table.
Length Constraints : Minimum length of 3 bytes. Maximum length of 256 bytes.this@Stability(value=Stable) public CfnTableProps.Builder tags(List<? extends CfnTag> tags)
CfnTableProps.getTags()tags - The tags to add to the table.this@Stability(value=Stable) public CfnTableProps build()
build in interface software.amazon.jsii.Builder<CfnTableProps>CfnTablePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.