Skip to content
v2.278.0

ConsumerGroupReplicationProperty Struct ​

Details about consumer group replication.

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,
};
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_msk as msk

consumer_group_replication_property = msk.CfnReplicator.ConsumerGroupReplicationProperty(
    consumer_groups_to_replicate=["consumerGroupsToReplicate"],

    # the properties below are optional
    consumer_group_offset_sync_mode="consumerGroupOffsetSyncMode",
    consumer_groups_to_exclude=["consumerGroupsToExclude"],
    detect_and_copy_new_consumer_groups=False,
    synchronise_consumer_group_offsets=False
)
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.msk.*;

ConsumerGroupReplicationProperty consumerGroupReplicationProperty = ConsumerGroupReplicationProperty.builder()
        .consumerGroupsToReplicate(List.of("consumerGroupsToReplicate"))

        // the properties below are optional
        .consumerGroupOffsetSyncMode("consumerGroupOffsetSyncMode")
        .consumerGroupsToExclude(List.of("consumerGroupsToExclude"))
        .detectAndCopyNewConsumerGroups(false)
        .synchroniseConsumerGroupOffsets(false)
        .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.MSK;

var consumerGroupReplicationProperty = new ConsumerGroupReplicationProperty {
    ConsumerGroupsToReplicate = new [] { "consumerGroupsToReplicate" },

    // the properties below are optional
    ConsumerGroupOffsetSyncMode = "consumerGroupOffsetSyncMode",
    ConsumerGroupsToExclude = new [] { "consumerGroupsToExclude" },
    DetectAndCopyNewConsumerGroups = false,
    SynchroniseConsumerGroupOffsets = false
};
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"

consumerGroupReplicationProperty := &ConsumerGroupReplicationProperty{
	ConsumerGroupsToReplicate: []*string{
		jsii.String("consumerGroupsToReplicate"),
	},

	// the properties below are optional
	ConsumerGroupOffsetSyncMode: jsii.String("consumerGroupOffsetSyncMode"),
	ConsumerGroupsToExclude: []*string{
		jsii.String("consumerGroupsToExclude"),
	},
	DetectAndCopyNewConsumerGroups: jsii.Boolean(false),
	SynchroniseConsumerGroupOffsets: jsii.Boolean(false),
}

Properties ​

consumerGroupOffsetSyncModeoptionalstringconsumer_group_offset_sync_modeoptionalstrconsumerGroupOffsetSyncModeoptionalStringConsumerGroupOffsetSyncModeoptionalstringConsumerGroupOffsetSyncModeoptional*string #
The consumer group offset synchronization mode.
consumerGroupsToExcludeoptionalstring[]consumer_groups_to_excludeoptionaltyping.List[str]consumerGroupsToExcludeoptionalList<String>ConsumerGroupsToExcludeoptionalstring[]ConsumerGroupsToExcludeoptional*[]*string #
List of regular expression patterns indicating the consumer groups that should not be replicated.
consumerGroupsToReplicatestring[]consumer_groups_to_replicatetyping.List[str]consumerGroupsToReplicateList<String>ConsumerGroupsToReplicatestring[]ConsumerGroupsToReplicate*[]*string required #
List of regular expression patterns indicating the consumer groups to copy.
detectAndCopyNewConsumerGroupsoptionalboolean | IResolvabledetect_and_copy_new_consumer_groupsoptionaltyping.Union[bool, IResolvable]detectAndCopyNewConsumerGroupsoptionalBooleanDetectAndCopyNewConsumerGroupsoptionalboolDetectAndCopyNewConsumerGroupsoptionalinterface{} #
Enables synchronization of consumer groups to target cluster.
synchroniseConsumerGroupOffsetsoptionalboolean | IResolvablesynchronise_consumer_group_offsetsoptionaltyping.Union[bool, IResolvable]synchroniseConsumerGroupOffsetsoptionalBooleanSynchroniseConsumerGroupOffsetsoptionalboolSynchroniseConsumerGroupOffsetsoptionalinterface{} #
Enables synchronization of consumer group offsets to target cluster.

The translated offsets will be written to topic __consumer_offsets.