# ConsumerGroupReplicationProperty

Details about consumer group replication.

- 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 consumerGroupReplicationProperty: msk.CfnReplicator.ConsumerGroupReplicationProperty = {
  consumerGroupsToReplicate: ['consumerGroupsToReplicate'],

  // the properties below are optional
  consumerGroupOffsetSyncMode: 'consumerGroupOffsetSyncMode',
  consumerGroupsToExclude: ['consumerGroupsToExclude'],
  detectAndCopyNewConsumerGroups: false,
  synchroniseConsumerGroupOffsets: false,
};
```

## Properties

- `consumerGroupOffsetSyncMode`: string — The consumer group offset synchronization mode.

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

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

- `detectAndCopyNewConsumerGroups`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Enables synchronization of consumer groups to target cluster.

- `synchroniseConsumerGroupOffsets`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Enables synchronization of consumer group offsets to target cluster.

  The translated offsets will be written to topic __consumer_offsets.
