# DatabaseCDCProperty

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

- Source: Generated at build time
- Type last changed: v2.148.0 · 5 Jul 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    }
};
```

Golang:

```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

- `sourceMetadata`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTestCase.SourceDatabaseMetadataProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apptest.CfnTestCase.SourceDatabaseMetadataProperty.html) (required) — The source metadata of the database CDC.

- `targetMetadata`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTestCase.TargetDatabaseMetadataProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apptest.CfnTestCase.TargetDatabaseMetadataProperty.html) (required) — The target metadata of the database CDC.
