CfnReplicatorProps Struct
Properties for defining a CfnReplicator.
| Source | |
|---|---|
| Type last changed |
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 cfnReplicatorProps: msk.CfnReplicatorProps = {
kafkaClusters: [{
amazonMskCluster: {
mskClusterArn: 'mskClusterArn',
},
apacheKafkaCluster: {
apacheKafkaClusterId: 'apacheKafkaClusterId',
bootstrapBrokerString: 'bootstrapBrokerString',
},
clientAuthentication: {
mtls: {
secretArn: 'secretArn',
},
saslOAuthBearer: {
tokenEndpointAuthenticationMethod: 'tokenEndpointAuthenticationMethod',
tokenEndpointUrl: 'tokenEndpointUrl',
// the properties below are optional
clientCredentials: {
tokenRequestSecretArn: 'tokenRequestSecretArn',
},
clientCredentialsAssertion: {
audience: 'audience',
signingAlgorithm: 'signingAlgorithm',
// the properties below are optional
tokenRequestSecretArn: 'tokenRequestSecretArn',
},
iamJwtBearer: {
audience: 'audience',
signingAlgorithm: 'signingAlgorithm',
// the properties below are optional
tokenRequestSecretArn: 'tokenRequestSecretArn',
},
scope: 'scope',
tokenEndpointTlsCertificateArn: 'tokenEndpointTlsCertificateArn',
},
saslScram: {
mechanism: 'mechanism',
secretArn: 'secretArn',
},
},
encryptionInTransit: {
encryptionType: 'encryptionType',
// the properties below are optional
rootCaCertificate: 'rootCaCertificate',
},
vpcConfig: {
subnetIds: ['subnetIds'],
// the properties below are optional
securityGroupIds: ['securityGroupIds'],
},
}],
replicationInfoList: [{
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',
}],
replicatorName: 'replicatorName',
serviceExecutionRoleArn: 'serviceExecutionRoleArn',
// the properties below are optional
description: 'description',
logDelivery: {
replicatorLogDelivery: {
cloudWatchLogs: {
enabled: false,
// the properties below are optional
logGroup: 'logGroup',
},
firehose: {
enabled: false,
// the properties below are optional
deliveryStream: 'deliveryStream',
},
s3: {
enabled: false,
// the properties below are optional
bucket: 'bucket',
prefix: 'prefix',
},
},
},
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# 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
cfn_replicator_props = msk.CfnReplicatorProps(
kafka_clusters=[msk.CfnReplicator.KafkaClusterProperty(
amazon_msk_cluster=msk.CfnReplicator.AmazonMskClusterProperty(
msk_cluster_arn="mskClusterArn"
),
apache_kafka_cluster=msk.CfnReplicator.ApacheKafkaClusterProperty(
apache_kafka_cluster_id="apacheKafkaClusterId",
bootstrap_broker_string="bootstrapBrokerString"
),
client_authentication=msk.CfnReplicator.KafkaClusterClientAuthenticationProperty(
mtls=msk.CfnReplicator.KafkaClusterMtlsAuthenticationProperty(
secret_arn="secretArn"
),
sasl_o_auth_bearer=msk.CfnReplicator.KafkaClusterSaslOAuthBearerAuthenticationProperty(
token_endpoint_authentication_method="tokenEndpointAuthenticationMethod",
token_endpoint_url="tokenEndpointUrl",
# the properties below are optional
client_credentials=msk.CfnReplicator.KafkaClusterOAuthClientCredentialsProperty(
token_request_secret_arn="tokenRequestSecretArn"
),
client_credentials_assertion=msk.CfnReplicator.KafkaClusterOAuthClientCredentialsAssertionProperty(
audience="audience",
signing_algorithm="signingAlgorithm",
# the properties below are optional
token_request_secret_arn="tokenRequestSecretArn"
),
iam_jwt_bearer=msk.CfnReplicator.KafkaClusterOAuthIamJwtBearerProperty(
audience="audience",
signing_algorithm="signingAlgorithm",
# the properties below are optional
token_request_secret_arn="tokenRequestSecretArn"
),
scope="scope",
token_endpoint_tls_certificate_arn="tokenEndpointTlsCertificateArn"
),
sasl_scram=msk.CfnReplicator.KafkaClusterSaslScramAuthenticationProperty(
mechanism="mechanism",
secret_arn="secretArn"
)
),
encryption_in_transit=msk.CfnReplicator.KafkaClusterEncryptionInTransitProperty(
encryption_type="encryptionType",
# the properties below are optional
root_ca_certificate="rootCaCertificate"
),
vpc_config=msk.CfnReplicator.KafkaClusterClientVpcConfigProperty(
subnet_ids=["subnetIds"],
# the properties below are optional
security_group_ids=["securityGroupIds"]
)
)],
replication_info_list=[msk.CfnReplicator.ReplicationInfoProperty(
consumer_group_replication=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
),
target_compression_type="targetCompressionType",
topic_replication=msk.CfnReplicator.TopicReplicationProperty(
topics_to_replicate=["topicsToReplicate"],
# the properties below are optional
copy_access_control_lists_for_topics=False,
copy_topic_configurations=False,
detect_and_copy_new_topics=False,
starting_position=msk.CfnReplicator.ReplicationStartingPositionProperty(
type="type"
),
topic_name_configuration=msk.CfnReplicator.ReplicationTopicNameConfigurationProperty(
type="type"
),
topics_to_exclude=["topicsToExclude"]
),
# the properties below are optional
source_kafka_cluster_arn="sourceKafkaClusterArn",
source_kafka_cluster_id="sourceKafkaClusterId",
target_kafka_cluster_arn="targetKafkaClusterArn",
target_kafka_cluster_id="targetKafkaClusterId"
)],
replicator_name="replicatorName",
service_execution_role_arn="serviceExecutionRoleArn",
# the properties below are optional
description="description",
log_delivery=msk.CfnReplicator.LogDeliveryProperty(
replicator_log_delivery=msk.CfnReplicator.ReplicatorLogDeliveryProperty(
cloud_watch_logs=msk.CfnReplicator.CloudWatchLogsProperty(
enabled=False,
# the properties below are optional
log_group="logGroup"
),
firehose=msk.CfnReplicator.FirehoseProperty(
enabled=False,
# the properties below are optional
delivery_stream="deliveryStream"
),
s3=msk.CfnReplicator.S3Property(
enabled=False,
# the properties below are optional
bucket="bucket",
prefix="prefix"
)
)
),
tags=[CfnTag(
key="key",
value="value"
)]
)
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.*;
CfnReplicatorProps cfnReplicatorProps = CfnReplicatorProps.builder()
.kafkaClusters(List.of(KafkaClusterProperty.builder()
.amazonMskCluster(AmazonMskClusterProperty.builder()
.mskClusterArn("mskClusterArn")
.build())
.apacheKafkaCluster(ApacheKafkaClusterProperty.builder()
.apacheKafkaClusterId("apacheKafkaClusterId")
.bootstrapBrokerString("bootstrapBrokerString")
.build())
.clientAuthentication(KafkaClusterClientAuthenticationProperty.builder()
.mtls(KafkaClusterMtlsAuthenticationProperty.builder()
.secretArn("secretArn")
.build())
.saslOAuthBearer(KafkaClusterSaslOAuthBearerAuthenticationProperty.builder()
.tokenEndpointAuthenticationMethod("tokenEndpointAuthenticationMethod")
.tokenEndpointUrl("tokenEndpointUrl")
// the properties below are optional
.clientCredentials(KafkaClusterOAuthClientCredentialsProperty.builder()
.tokenRequestSecretArn("tokenRequestSecretArn")
.build())
.clientCredentialsAssertion(KafkaClusterOAuthClientCredentialsAssertionProperty.builder()
.audience("audience")
.signingAlgorithm("signingAlgorithm")
// the properties below are optional
.tokenRequestSecretArn("tokenRequestSecretArn")
.build())
.iamJwtBearer(KafkaClusterOAuthIamJwtBearerProperty.builder()
.audience("audience")
.signingAlgorithm("signingAlgorithm")
// the properties below are optional
.tokenRequestSecretArn("tokenRequestSecretArn")
.build())
.scope("scope")
.tokenEndpointTlsCertificateArn("tokenEndpointTlsCertificateArn")
.build())
.saslScram(KafkaClusterSaslScramAuthenticationProperty.builder()
.mechanism("mechanism")
.secretArn("secretArn")
.build())
.build())
.encryptionInTransit(KafkaClusterEncryptionInTransitProperty.builder()
.encryptionType("encryptionType")
// the properties below are optional
.rootCaCertificate("rootCaCertificate")
.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
.consumerGroupOffsetSyncMode("consumerGroupOffsetSyncMode")
.consumerGroupsToExclude(List.of("consumerGroupsToExclude"))
.detectAndCopyNewConsumerGroups(false)
.synchroniseConsumerGroupOffsets(false)
.build())
.targetCompressionType("targetCompressionType")
.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())
// the properties below are optional
.sourceKafkaClusterArn("sourceKafkaClusterArn")
.sourceKafkaClusterId("sourceKafkaClusterId")
.targetKafkaClusterArn("targetKafkaClusterArn")
.targetKafkaClusterId("targetKafkaClusterId")
.build()))
.replicatorName("replicatorName")
.serviceExecutionRoleArn("serviceExecutionRoleArn")
// the properties below are optional
.description("description")
.logDelivery(LogDeliveryProperty.builder()
.replicatorLogDelivery(ReplicatorLogDeliveryProperty.builder()
.cloudWatchLogs(CloudWatchLogsProperty.builder()
.enabled(false)
// the properties below are optional
.logGroup("logGroup")
.build())
.firehose(FirehoseProperty.builder()
.enabled(false)
// the properties below are optional
.deliveryStream("deliveryStream")
.build())
.s3(S3Property.builder()
.enabled(false)
// the properties below are optional
.bucket("bucket")
.prefix("prefix")
.build())
.build())
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.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 cfnReplicatorProps = new CfnReplicatorProps {
KafkaClusters = new [] { new KafkaClusterProperty {
AmazonMskCluster = new AmazonMskClusterProperty {
MskClusterArn = "mskClusterArn"
},
ApacheKafkaCluster = new ApacheKafkaClusterProperty {
ApacheKafkaClusterId = "apacheKafkaClusterId",
BootstrapBrokerString = "bootstrapBrokerString"
},
ClientAuthentication = new KafkaClusterClientAuthenticationProperty {
Mtls = new KafkaClusterMtlsAuthenticationProperty {
SecretArn = "secretArn"
},
SaslOAuthBearer = new KafkaClusterSaslOAuthBearerAuthenticationProperty {
TokenEndpointAuthenticationMethod = "tokenEndpointAuthenticationMethod",
TokenEndpointUrl = "tokenEndpointUrl",
// the properties below are optional
ClientCredentials = new KafkaClusterOAuthClientCredentialsProperty {
TokenRequestSecretArn = "tokenRequestSecretArn"
},
ClientCredentialsAssertion = new KafkaClusterOAuthClientCredentialsAssertionProperty {
Audience = "audience",
SigningAlgorithm = "signingAlgorithm",
// the properties below are optional
TokenRequestSecretArn = "tokenRequestSecretArn"
},
IamJwtBearer = new KafkaClusterOAuthIamJwtBearerProperty {
Audience = "audience",
SigningAlgorithm = "signingAlgorithm",
// the properties below are optional
TokenRequestSecretArn = "tokenRequestSecretArn"
},
Scope = "scope",
TokenEndpointTlsCertificateArn = "tokenEndpointTlsCertificateArn"
},
SaslScram = new KafkaClusterSaslScramAuthenticationProperty {
Mechanism = "mechanism",
SecretArn = "secretArn"
}
},
EncryptionInTransit = new KafkaClusterEncryptionInTransitProperty {
EncryptionType = "encryptionType",
// the properties below are optional
RootCaCertificate = "rootCaCertificate"
},
VpcConfig = new KafkaClusterClientVpcConfigProperty {
SubnetIds = new [] { "subnetIds" },
// the properties below are optional
SecurityGroupIds = new [] { "securityGroupIds" }
}
} },
ReplicationInfoList = new [] { new ReplicationInfoProperty {
ConsumerGroupReplication = new ConsumerGroupReplicationProperty {
ConsumerGroupsToReplicate = new [] { "consumerGroupsToReplicate" },
// the properties below are optional
ConsumerGroupOffsetSyncMode = "consumerGroupOffsetSyncMode",
ConsumerGroupsToExclude = new [] { "consumerGroupsToExclude" },
DetectAndCopyNewConsumerGroups = false,
SynchroniseConsumerGroupOffsets = false
},
TargetCompressionType = "targetCompressionType",
TopicReplication = new TopicReplicationProperty {
TopicsToReplicate = new [] { "topicsToReplicate" },
// the properties below are optional
CopyAccessControlListsForTopics = false,
CopyTopicConfigurations = false,
DetectAndCopyNewTopics = false,
StartingPosition = new ReplicationStartingPositionProperty {
Type = "type"
},
TopicNameConfiguration = new ReplicationTopicNameConfigurationProperty {
Type = "type"
},
TopicsToExclude = new [] { "topicsToExclude" }
},
// the properties below are optional
SourceKafkaClusterArn = "sourceKafkaClusterArn",
SourceKafkaClusterId = "sourceKafkaClusterId",
TargetKafkaClusterArn = "targetKafkaClusterArn",
TargetKafkaClusterId = "targetKafkaClusterId"
} },
ReplicatorName = "replicatorName",
ServiceExecutionRoleArn = "serviceExecutionRoleArn",
// the properties below are optional
Description = "description",
LogDelivery = new LogDeliveryProperty {
ReplicatorLogDelivery = new ReplicatorLogDeliveryProperty {
CloudWatchLogs = new CloudWatchLogsProperty {
Enabled = false,
// the properties below are optional
LogGroup = "logGroup"
},
Firehose = new FirehoseProperty {
Enabled = false,
// the properties below are optional
DeliveryStream = "deliveryStream"
},
S3 = new S3Property {
Enabled = false,
// the properties below are optional
Bucket = "bucket",
Prefix = "prefix"
}
}
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnReplicatorProps := &CfnReplicatorProps{
KafkaClusters: []interface{}{
&KafkaClusterProperty{
AmazonMskCluster: &AmazonMskClusterProperty{
MskClusterArn: jsii.String("mskClusterArn"),
},
ApacheKafkaCluster: &ApacheKafkaClusterProperty{
ApacheKafkaClusterId: jsii.String("apacheKafkaClusterId"),
BootstrapBrokerString: jsii.String("bootstrapBrokerString"),
},
ClientAuthentication: &KafkaClusterClientAuthenticationProperty{
Mtls: &KafkaClusterMtlsAuthenticationProperty{
SecretArn: jsii.String("secretArn"),
},
SaslOAuthBearer: &KafkaClusterSaslOAuthBearerAuthenticationProperty{
TokenEndpointAuthenticationMethod: jsii.String("tokenEndpointAuthenticationMethod"),
TokenEndpointUrl: jsii.String("tokenEndpointUrl"),
// the properties below are optional
ClientCredentials: &KafkaClusterOAuthClientCredentialsProperty{
TokenRequestSecretArn: jsii.String("tokenRequestSecretArn"),
},
ClientCredentialsAssertion: &KafkaClusterOAuthClientCredentialsAssertionProperty{
Audience: jsii.String("audience"),
SigningAlgorithm: jsii.String("signingAlgorithm"),
// the properties below are optional
TokenRequestSecretArn: jsii.String("tokenRequestSecretArn"),
},
IamJwtBearer: &KafkaClusterOAuthIamJwtBearerProperty{
Audience: jsii.String("audience"),
SigningAlgorithm: jsii.String("signingAlgorithm"),
// the properties below are optional
TokenRequestSecretArn: jsii.String("tokenRequestSecretArn"),
},
Scope: jsii.String("scope"),
TokenEndpointTlsCertificateArn: jsii.String("tokenEndpointTlsCertificateArn"),
},
SaslScram: &KafkaClusterSaslScramAuthenticationProperty{
Mechanism: jsii.String("mechanism"),
SecretArn: jsii.String("secretArn"),
},
},
EncryptionInTransit: &KafkaClusterEncryptionInTransitProperty{
EncryptionType: jsii.String("encryptionType"),
// the properties below are optional
RootCaCertificate: jsii.String("rootCaCertificate"),
},
VpcConfig: &KafkaClusterClientVpcConfigProperty{
SubnetIds: []*string{
jsii.String("subnetIds"),
},
// the properties below are optional
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
},
},
},
ReplicationInfoList: []interface{}{
&ReplicationInfoProperty{
ConsumerGroupReplication: &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),
},
TargetCompressionType: jsii.String("targetCompressionType"),
TopicReplication: &TopicReplicationProperty{
TopicsToReplicate: []*string{
jsii.String("topicsToReplicate"),
},
// the properties below are optional
CopyAccessControlListsForTopics: jsii.Boolean(false),
CopyTopicConfigurations: jsii.Boolean(false),
DetectAndCopyNewTopics: jsii.Boolean(false),
StartingPosition: &ReplicationStartingPositionProperty{
Type: jsii.String("type"),
},
TopicNameConfiguration: &ReplicationTopicNameConfigurationProperty{
Type: jsii.String("type"),
},
TopicsToExclude: []*string{
jsii.String("topicsToExclude"),
},
},
// the properties below are optional
SourceKafkaClusterArn: jsii.String("sourceKafkaClusterArn"),
SourceKafkaClusterId: jsii.String("sourceKafkaClusterId"),
TargetKafkaClusterArn: jsii.String("targetKafkaClusterArn"),
TargetKafkaClusterId: jsii.String("targetKafkaClusterId"),
},
},
ReplicatorName: jsii.String("replicatorName"),
ServiceExecutionRoleArn: jsii.String("serviceExecutionRoleArn"),
// the properties below are optional
Description: jsii.String("description"),
LogDelivery: &LogDeliveryProperty{
ReplicatorLogDelivery: &ReplicatorLogDeliveryProperty{
CloudWatchLogs: &CloudWatchLogsProperty{
Enabled: jsii.Boolean(false),
// the properties below are optional
LogGroup: jsii.String("logGroup"),
},
Firehose: &FirehoseProperty{
Enabled: jsii.Boolean(false),
// the properties below are optional
DeliveryStream: jsii.String("deliveryStream"),
},
S3: &S3Property{
Enabled: jsii.Boolean(false),
// the properties below are optional
Bucket: jsii.String("bucket"),
Prefix: jsii.String("prefix"),
},
},
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A summary description of the replicator.
kafkaClustersIResolvable | IResolvable | CfnReplicator.kafka_clusterstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, KafkaClusterProperty]]]kafkaClustersIResolvableKafkaClustersIResolvableKafkaClustersinterface{} required #Kafka Clusters to use in setting up sources / targets for replication.
logDeliveryoptionalIResolvable | CfnReplicator.log_deliveryoptionaltyping.Union[IResolvable, LogDeliveryProperty]logDeliveryoptionalIResolvableLogDeliveryoptionalIResolvableLogDeliveryoptionalinterface{} #Configuration for log delivery for the replicator.
replicationInfoListIResolvable | IResolvable | CfnReplicator.replication_info_listtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ReplicationInfoProperty]]]replicationInfoListIResolvableReplicationInfoListIResolvableReplicationInfoListinterface{} required #A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.
replicatorNamestringreplicator_namestrreplicatorNameStringReplicatorNamestringReplicatorName*string required #The name of the replicator.
Alpha-numeric characters with '-' are allowed.
serviceExecutionRoleArnstringservice_execution_role_arnstrserviceExecutionRoleArnStringServiceExecutionRoleArnstringServiceExecutionRoleArn*string required #The ARN of the IAM role used by the replicator to access resources in the customer's account (e.g source and target clusters).