# TopicReplicationProperty

Details about topic replication.

- Source: Generated code
- Type last changed: v2.154.1 · 23 Aug 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_msk as msk } from 'aws-cdk-lib';
const topicReplicationProperty: msk.CfnReplicator.TopicReplicationProperty = {
  topicsToReplicate: ['topicsToReplicate'],

  // the properties below are optional
  copyAccessControlListsForTopics: false,
  copyTopicConfigurations: false,
  detectAndCopyNewTopics: false,
  startingPosition: {
    type: 'type',
  },
  topicNameConfiguration: {
    type: 'type',
  },
  topicsToExclude: ['topicsToExclude'],
};
```

## Properties

- `copyAccessControlListsForTopics`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether to periodically configure remote topic ACLs to match their corresponding upstream topics.

- `copyTopicConfigurations`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether to periodically configure remote topics to match their corresponding upstream topics.

- `detectAndCopyNewTopics`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether to periodically check for new topics and partitions.

- `startingPosition`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnReplicator.ReplicationStartingPositionProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnReplicator.ReplicationStartingPositionProperty.html) — Specifies the position in the topics to start replicating from.

- `topicNameConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnReplicator.ReplicationTopicNameConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnReplicator.ReplicationTopicNameConfigurationProperty.html) — Configuration for specifying replicated topic names will be the same as their corresponding upstream topics or prefixed with source cluster alias.

- `topicsToExclude`: string[] — List of regular expression patterns indicating the topics that should not be replicated.

- `topicsToReplicate`: string[] (required) — List of regular expression patterns indicating the topics to copy.
