@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)",
date="2022-08-09T19:16:35.079Z")
public interface CfnTableProps
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.timestream.*; Object magneticStoreWriteProperties; Object retentionProperties; CfnTableProps cfnTableProps = CfnTableProps.builder() .databaseName("databaseName") // the properties below are optional .magneticStoreWriteProperties(magneticStoreWriteProperties) .retentionProperties(retentionProperties) .tableName("tableName") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnTableProps.Builder
A builder for
CfnTableProps |
static class |
CfnTableProps.Jsii$Proxy
An implementation for
CfnTableProps |
Modifier and Type | Method and Description |
---|---|
static CfnTableProps.Builder |
builder() |
java.lang.String |
getDatabaseName()
The name of the Timestream database that contains this table.
|
default java.lang.Object |
getMagneticStoreWriteProperties()
Contains properties to set on the table when enabling magnetic store writes.
|
default java.lang.Object |
getRetentionProperties()
The retention duration for the memory store and magnetic store.
|
default java.lang.String |
getTableName()
The name of the Timestream table.
|
default java.util.List<CfnTag> |
getTags()
The tags to add to the table.
|
java.lang.String getDatabaseName()
Length Constraints : Minimum length of 3 bytes. Maximum length of 256 bytes.
default java.lang.Object getMagneticStoreWriteProperties()
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"
default java.lang.Object getRetentionProperties()
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"
default java.lang.String getTableName()
Length Constraints : Minimum length of 3 bytes. Maximum length of 256 bytes.
default java.util.List<CfnTag> getTags()
static CfnTableProps.Builder builder()
CfnTableProps.Builder
of CfnTableProps