Class CfnTable.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable>
- Enclosing class:
- CfnTable
CfnTable.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnTable.BuilderdatabaseName(String databaseName) The name of the Timestream database that contains this table.magneticStoreWriteProperties(IResolvable magneticStoreWriteProperties) Contains properties to set on the table when enabling magnetic store writes.magneticStoreWriteProperties(CfnTable.MagneticStoreWritePropertiesProperty magneticStoreWriteProperties) Contains properties to set on the table when enabling magnetic store writes.retentionProperties(IResolvable retentionProperties) The retention duration for the memory store and magnetic store.retentionProperties(CfnTable.RetentionPropertiesProperty retentionProperties) The retention duration for the memory store and magnetic store.The name of the Timestream table.The tags to add to the table.
-
Method Details
-
create
- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnTable.Builder.
-
databaseName
The name of the Timestream database that contains this table.Length Constraints : Minimum length of 3 bytes. Maximum length of 256 bytes.
- Parameters:
databaseName- The name of the Timestream database that contains this table. This parameter is required.- Returns:
this
-
magneticStoreWriteProperties
@Stability(Stable) public CfnTable.Builder magneticStoreWriteProperties(IResolvable magneticStoreWriteProperties) Contains properties to set on the table when enabling magnetic store writes.This object has the following attributes:
- EnableMagneticStoreWrites : A
booleanflag to enable magnetic store writes. - MagneticStoreRejectedDataLocation : The location to write error reports for records rejected, asynchronously, during magnetic store writes. Only
S3Configurationobjects are allowed. TheS3Configurationobject has the following attributes: - BucketName : The name of the S3 bucket.
- EncryptionOption : The encryption option for the S3 location. Valid values are S3 server-side encryption with an S3 managed key (
SSE_S3) or AWS managed key (SSE_KMS). - KmsKeyId : The AWS KMS key ID to use when encrypting with an AWS managed key.
- ObjectKeyPrefix : The prefix to use option for the objects stored in S3.
Both
BucketNameandEncryptionOptionare required whenS3Configurationis specified. If you specifySSE_KMSas yourEncryptionOptionthenKmsKeyIdis required .EnableMagneticStoreWritesattribute is required whenMagneticStoreWritePropertiesis specified.MagneticStoreRejectedDataLocationattribute is required whenEnableMagneticStoreWritesis set totrue.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" KmsKeyId: "1234abcd-12ab-34cd-56ef-1234567890ab" ObjectKeyPrefix: "prefix"
- Parameters:
magneticStoreWriteProperties- Contains properties to set on the table when enabling magnetic store writes. This parameter is required.- Returns:
this
- EnableMagneticStoreWrites : A
-
magneticStoreWriteProperties
@Stability(Stable) public CfnTable.Builder magneticStoreWriteProperties(CfnTable.MagneticStoreWritePropertiesProperty magneticStoreWriteProperties) Contains properties to set on the table when enabling magnetic store writes.This object has the following attributes:
- EnableMagneticStoreWrites : A
booleanflag to enable magnetic store writes. - MagneticStoreRejectedDataLocation : The location to write error reports for records rejected, asynchronously, during magnetic store writes. Only
S3Configurationobjects are allowed. TheS3Configurationobject has the following attributes: - BucketName : The name of the S3 bucket.
- EncryptionOption : The encryption option for the S3 location. Valid values are S3 server-side encryption with an S3 managed key (
SSE_S3) or AWS managed key (SSE_KMS). - KmsKeyId : The AWS KMS key ID to use when encrypting with an AWS managed key.
- ObjectKeyPrefix : The prefix to use option for the objects stored in S3.
Both
BucketNameandEncryptionOptionare required whenS3Configurationis specified. If you specifySSE_KMSas yourEncryptionOptionthenKmsKeyIdis required .EnableMagneticStoreWritesattribute is required whenMagneticStoreWritePropertiesis specified.MagneticStoreRejectedDataLocationattribute is required whenEnableMagneticStoreWritesis set totrue.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" KmsKeyId: "1234abcd-12ab-34cd-56ef-1234567890ab" ObjectKeyPrefix: "prefix"
- Parameters:
magneticStoreWriteProperties- Contains properties to set on the table when enabling magnetic store writes. This parameter is required.- Returns:
this
- EnableMagneticStoreWrites : A
-
retentionProperties
The retention duration for the memory store and magnetic store. This object has the following attributes:.- MemoryStoreRetentionPeriodInHours : Retention duration for memory store, in hours.
- MagneticStoreRetentionPeriodInDays : Retention duration for magnetic store, in days.
Both attributes are of type
string. Both attributes are required whenRetentionPropertiesis 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"
- Parameters:
retentionProperties- The retention duration for the memory store and magnetic store. This object has the following attributes:. This parameter is required.- Returns:
this
-
retentionProperties
@Stability(Stable) public CfnTable.Builder retentionProperties(CfnTable.RetentionPropertiesProperty retentionProperties) The retention duration for the memory store and magnetic store. This object has the following attributes:.- MemoryStoreRetentionPeriodInHours : Retention duration for memory store, in hours.
- MagneticStoreRetentionPeriodInDays : Retention duration for magnetic store, in days.
Both attributes are of type
string. Both attributes are required whenRetentionPropertiesis 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"
- Parameters:
retentionProperties- The retention duration for the memory store and magnetic store. This object has the following attributes:. This parameter is required.- Returns:
this
-
tableName
The name of the Timestream table.Length Constraints : Minimum length of 3 bytes. Maximum length of 256 bytes.
- Parameters:
tableName- The name of the Timestream table. This parameter is required.- Returns:
this
-
tags
The tags to add to the table.- Parameters:
tags- The tags to add to the table. This parameter is required.- Returns:
this
-
build
-