Skip to content
v2.278.0

CdcSpecificationProperty Struct ​

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 ​

ts
// 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
  tags: [{
    key: 'key',
    value: 'value',
  }],
  viewType: 'viewType',
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cassandra as cassandra

cdc_specification_property = cassandra.CfnTable.CdcSpecificationProperty(
    status="status",

    # the properties below are optional
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    view_type="viewType"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cassandra.*;

CdcSpecificationProperty cdcSpecificationProperty = CdcSpecificationProperty.builder()
        .status("status")

        // the properties below are optional
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .viewType("viewType")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cassandra;

var cdcSpecificationProperty = new CdcSpecificationProperty {
    Status = "status",

    // the properties below are optional
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    ViewType = "viewType"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cdcSpecificationProperty := &CdcSpecificationProperty{
	Status: jsii.String("status"),

	// the properties below are optional
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	ViewType: jsii.String("viewType"),
}

Properties ​

statusstringstatusstrstatusStringStatusstringStatus*string required #
The status of the CDC stream.

You can enable or disable a stream for a table.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags (key-value pairs) that you want to apply to the stream.
viewTypeoptionalstringview_typeoptionalstrviewTypeoptionalStringViewTypeoptionalstringViewTypeoptional*string = "NEW_AND_OLD_IMAGES" #
The view type specifies the changes Amazon Keyspaces records for each changed row in the stream.
notes

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.