# ReplicationInfoProperty

Specifies configuration for replication between a source and target Kafka cluster.

- Source: Generated code
- Type last changed: v2.251.0 · 24 Apr 2026

## 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 replicationInfoProperty: msk.CfnReplicator.ReplicationInfoProperty = {
  consumerGroupReplication: {
    consumerGroupsToReplicate: ['consumerGroupsToReplicate'],

    // the properties below are optional
    consumerGroupOffsetSyncMode: 'consumerGroupOffsetSyncMode',
    consumerGroupsToExclude: ['consumerGroupsToExclude'],
    detectAndCopyNewConsumerGroups: false,
    synchroniseConsumerGroupOffsets: false,
  },
  targetCompressionType: 'targetCompressionType',
  topicReplication: {
    topicsToReplicate: ['topicsToReplicate'],

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

  // the properties below are optional
  sourceKafkaClusterArn: 'sourceKafkaClusterArn',
  sourceKafkaClusterId: 'sourceKafkaClusterId',
  targetKafkaClusterArn: 'targetKafkaClusterArn',
  targetKafkaClusterId: 'targetKafkaClusterId',
};
```

## Properties

- `consumerGroupReplication`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnReplicator.ConsumerGroupReplicationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnReplicator.ConsumerGroupReplicationProperty.html) (required) — Configuration relating to consumer group replication.

- `sourceKafkaClusterArn`: string — The ARN of the source Kafka cluster.

- `sourceKafkaClusterId`: string — The ID of the source Kafka cluster.

- `targetCompressionType`: string (required) — The compression type to use when producing records to target cluster.

- `targetKafkaClusterArn`: string — The ARN of the target Kafka cluster.

- `targetKafkaClusterId`: string — The ID of the target Kafka cluster.

- `topicReplication`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnReplicator.TopicReplicationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnReplicator.TopicReplicationProperty.html) (required) — Configuration relating to topic replication.
