interface CdcSpecificationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Cassandra.CfnTable.CdcSpecificationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscassandra#CfnTable_CdcSpecificationProperty |
![]() | software.amazon.awscdk.services.cassandra.CfnTable.CdcSpecificationProperty |
![]() | aws_cdk.aws_cassandra.CfnTable.CdcSpecificationProperty |
![]() | aws-cdk-lib » aws_cassandra » CfnTable » CdcSpecificationProperty |
The settings for the CDC stream of a table.
For more information about CDC streams, see Working with change data capture (CDC) streams in Amazon Keyspaces in the Amazon Keyspaces Developer Guide .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cassandra as cassandra } from 'aws-cdk-lib';
const cdcSpecificationProperty: cassandra.CfnTable.CdcSpecificationProperty = {
status: 'status',
// the properties below are optional
viewType: 'viewType',
};
Properties
Name | Type | Description |
---|---|---|
status | string | The status of the CDC stream. |
view | string | The view type specifies the changes Amazon Keyspaces records for each changed row in the stream. |
status
Type:
string
The status of the CDC stream.
You can enable or disable a stream for a table.
viewType?
Type:
string
(optional, default: "NEW_AND_OLD_IMAGES")
The view type specifies the changes Amazon Keyspaces records for each changed row in the stream.
After you create the stream, you can't make changes to this selection.
The options are:
NEW_AND_OLD_IMAGES
- both versions of the row, before and after the change. This is the default.NEW_IMAGE
- the version of the row after the change.OLD_IMAGE
- the version of the row before the change.KEYS_ONLY
- the partition and clustering keys of the row that was changed.