Skip to content
v2.278.0

DatabaseCDCProperty Struct ​

Defines the Change Data Capture (CDC) of the database.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apptest as apptest } from 'aws-cdk-lib';
const databaseCDCProperty: apptest.CfnTestCase.DatabaseCDCProperty = {
  sourceMetadata: {
    captureTool: 'captureTool',
    type: 'type',
  },
  targetMetadata: {
    captureTool: 'captureTool',
    type: 'type',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apptest as apptest

database_cdc_property = apptest.CfnTestCase.DatabaseCDCProperty(
    source_metadata=apptest.CfnTestCase.SourceDatabaseMetadataProperty(
        capture_tool="captureTool",
        type="type"
    ),
    target_metadata=apptest.CfnTestCase.TargetDatabaseMetadataProperty(
        capture_tool="captureTool",
        type="type"
    )
)
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.apptest.*;

DatabaseCDCProperty databaseCDCProperty = DatabaseCDCProperty.builder()
        .sourceMetadata(SourceDatabaseMetadataProperty.builder()
                .captureTool("captureTool")
                .type("type")
                .build())
        .targetMetadata(TargetDatabaseMetadataProperty.builder()
                .captureTool("captureTool")
                .type("type")
                .build())
        .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.AppTest;

var databaseCDCProperty = new DatabaseCDCProperty {
    SourceMetadata = new SourceDatabaseMetadataProperty {
        CaptureTool = "captureTool",
        Type = "type"
    },
    TargetMetadata = new TargetDatabaseMetadataProperty {
        CaptureTool = "captureTool",
        Type = "type"
    }
};
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"

databaseCDCProperty := &DatabaseCDCProperty{
	SourceMetadata: &SourceDatabaseMetadataProperty{
		CaptureTool: jsii.String("captureTool"),
		Type: jsii.String("type"),
	},
	TargetMetadata: &TargetDatabaseMetadataProperty{
		CaptureTool: jsii.String("captureTool"),
		Type: jsii.String("type"),
	},
}

Properties ​

sourceMetadataIResolvable | CfnTestCase.SourceDatabaseMetadataPropertysource_metadatatyping.Union[IResolvable, SourceDatabaseMetadataProperty]sourceMetadataIResolvableSourceMetadataIResolvableSourceMetadatainterface{} required #
The source metadata of the database CDC.
targetMetadataIResolvable | CfnTestCase.TargetDatabaseMetadataPropertytarget_metadatatyping.Union[IResolvable, TargetDatabaseMetadataProperty]targetMetadataIResolvableTargetMetadataIResolvableTargetMetadatainterface{} required #
The target metadata of the database CDC.