@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.590Z") @Stability(value=Stable) public interface CfnTableProps extends software.amazon.jsii.JsiiSerializable
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() |
String |
getDatabaseName()
The name of the Timestream database that contains this table.
|
default Object |
getMagneticStoreWriteProperties()
Contains properties to set on the table when enabling magnetic store writes.
|
default Object |
getRetentionProperties()
The retention duration for the memory store and magnetic store.
|
default String |
getTableName()
The name of the Timestream table.
|
default List<CfnTag> |
getTags()
The tags to add to the table.
|
@Stability(value=Stable) @NotNull String getDatabaseName()
Length Constraints : Minimum length of 3 bytes. Maximum length of 256 bytes.
@Stability(value=Stable) @Nullable default 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"
@Stability(value=Stable) @Nullable default 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"
@Stability(value=Stable) @Nullable default String getTableName()
Length Constraints : Minimum length of 3 bytes. Maximum length of 256 bytes.
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) static CfnTableProps.Builder builder()
CfnTableProps.Builder of CfnTablePropsCopyright © 2022. All rights reserved.