Class CfnReplicator
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.msk.CfnReplicator
- All Implemented Interfaces:
IInspectable,ITaggableV2,IReplicatorRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:43.870Z")
@Stability(Stable)
public class CfnReplicator
extends CfnResource
implements IInspectable, IReplicatorRef, ITaggableV2
Creates the replicator.
Example:
// 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.*;
CfnReplicator cfnReplicator = CfnReplicator.Builder.create(this, "MyCfnReplicator")
.kafkaClusters(List.of(KafkaClusterProperty.builder()
.amazonMskCluster(AmazonMskClusterProperty.builder()
.mskClusterArn("mskClusterArn")
.build())
.vpcConfig(KafkaClusterClientVpcConfigProperty.builder()
.subnetIds(List.of("subnetIds"))
// the properties below are optional
.securityGroupIds(List.of("securityGroupIds"))
.build())
.build()))
.replicationInfoList(List.of(ReplicationInfoProperty.builder()
.consumerGroupReplication(ConsumerGroupReplicationProperty.builder()
.consumerGroupsToReplicate(List.of("consumerGroupsToReplicate"))
// the properties below are optional
.consumerGroupsToExclude(List.of("consumerGroupsToExclude"))
.detectAndCopyNewConsumerGroups(false)
.synchroniseConsumerGroupOffsets(false)
.build())
.sourceKafkaClusterArn("sourceKafkaClusterArn")
.targetCompressionType("targetCompressionType")
.targetKafkaClusterArn("targetKafkaClusterArn")
.topicReplication(TopicReplicationProperty.builder()
.topicsToReplicate(List.of("topicsToReplicate"))
// the properties below are optional
.copyAccessControlListsForTopics(false)
.copyTopicConfigurations(false)
.detectAndCopyNewTopics(false)
.startingPosition(ReplicationStartingPositionProperty.builder()
.type("type")
.build())
.topicNameConfiguration(ReplicationTopicNameConfigurationProperty.builder()
.type("type")
.build())
.topicsToExclude(List.of("topicsToExclude"))
.build())
.build()))
.replicatorName("replicatorName")
.serviceExecutionRoleArn("serviceExecutionRoleArn")
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDetails of an Amazon MSK Cluster.static final classA fluent builder forCfnReplicator.static interfaceDetails about consumer group replication.static interfaceDetails of an Amazon VPC which has network connectivity to the Apache Kafka cluster.static interfaceInformation about Kafka Cluster to be used as source / target for replication.static interfaceSpecifies configuration for replication between a source and target Kafka cluster.static interfaceSpecifies the position in the topics to start replicating from.static interfaceConfiguration for specifying replicated topic names will be the same as their corresponding upstream topics or prefixed with source cluster alias.static interfaceDetails about topic replication.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.msk.IReplicatorRef
IReplicatorRef.Jsii$Default, IReplicatorRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnReplicator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnReplicator(software.amazon.jsii.JsiiObjectRef objRef) CfnReplicator(software.constructs.Construct scope, String id, CfnReplicatorProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe current version number of the replicator.Amazon Resource Name (ARN) for the created replicator.Tag Manager which manages the tags for this resource.A summary description of the replicator.Kafka Clusters to use in setting up sources / targets for replication.A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.The name of the replicator.A reference to a Replicator resource.The ARN of the IAM role used by the replicator to access resources in the customer's account (e.g source and target clusters).getTags()List of tags to attach to created Replicator.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) A summary description of the replicator.voidsetKafkaClusters(List<Object> value) Kafka Clusters to use in setting up sources / targets for replication.voidsetKafkaClusters(IResolvable value) Kafka Clusters to use in setting up sources / targets for replication.voidsetReplicationInfoList(List<Object> value) A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.voidA list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.voidsetReplicatorName(String value) The name of the replicator.voidsetServiceExecutionRoleArn(String value) The ARN of the IAM role used by the replicator to access resources in the customer's account (e.g source and target clusters).voidList of tags to attach to created Replicator.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnReplicator
protected CfnReplicator(software.amazon.jsii.JsiiObjectRef objRef) -
CfnReplicator
protected CfnReplicator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnReplicator
@Stability(Stable) public CfnReplicator(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnReplicatorProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCurrentVersion
The current version number of the replicator. -
getAttrReplicatorArn
Amazon Resource Name (ARN) for the created replicator. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getReplicatorRef
A reference to a Replicator resource.- Specified by:
getReplicatorRefin interfaceIReplicatorRef
-
getKafkaClusters
Kafka Clusters to use in setting up sources / targets for replication.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnReplicator.KafkaClusterProperty> -
setKafkaClusters
Kafka Clusters to use in setting up sources / targets for replication. -
setKafkaClusters
Kafka Clusters to use in setting up sources / targets for replication. -
getReplicationInfoList
A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnReplicator.ReplicationInfoProperty> -
setReplicationInfoList
A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow. -
setReplicationInfoList
A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow. -
getReplicatorName
The name of the replicator. -
setReplicatorName
The name of the replicator. -
getServiceExecutionRoleArn
The ARN of the IAM role used by the replicator to access resources in the customer's account (e.g source and target clusters). -
setServiceExecutionRoleArn
The ARN of the IAM role used by the replicator to access resources in the customer's account (e.g source and target clusters). -
getDescription
A summary description of the replicator. -
setDescription
A summary description of the replicator. -
getTags
List of tags to attach to created Replicator. -
setTags
List of tags to attach to created Replicator.
-