TopicReplicationProperty Struct
Details about topic replication.
| 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 topicReplicationProperty: msk.CfnReplicator.TopicReplicationProperty = {
topicsToReplicate: ['topicsToReplicate'],
// the properties below are optional
copyAccessControlListsForTopics: false,
copyTopicConfigurations: false,
detectAndCopyNewTopics: false,
startingPosition: {
type: 'type',
},
topicNameConfiguration: {
type: 'type',
},
topicsToExclude: ['topicsToExclude'],
};
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
topic_replication_property = 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"]
)
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.*;
TopicReplicationProperty topicReplicationProperty = 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();
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 topicReplicationProperty = 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" }
};
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"
topicReplicationProperty := &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"),
},
}
Properties
copyAccessControlListsForTopicsoptionalboolean | IResolvablecopy_access_control_lists_for_topicsoptionaltyping.Union[bool, IResolvable]copyAccessControlListsForTopicsoptionalBooleanCopyAccessControlListsForTopicsoptionalboolCopyAccessControlListsForTopicsoptionalinterface{} #Whether to periodically configure remote topic ACLs to match their corresponding upstream topics.
copyTopicConfigurationsoptionalboolean | IResolvablecopy_topic_configurationsoptionaltyping.Union[bool, IResolvable]copyTopicConfigurationsoptionalBooleanCopyTopicConfigurationsoptionalboolCopyTopicConfigurationsoptionalinterface{} #Whether to periodically configure remote topics to match their corresponding upstream topics.
detectAndCopyNewTopicsoptionalboolean | IResolvabledetect_and_copy_new_topicsoptionaltyping.Union[bool, IResolvable]detectAndCopyNewTopicsoptionalBooleanDetectAndCopyNewTopicsoptionalboolDetectAndCopyNewTopicsoptionalinterface{} #Whether to periodically check for new topics and partitions.
startingPositionoptionalIResolvable | CfnReplicator.starting_positionoptionaltyping.Union[IResolvable, ReplicationStartingPositionProperty]startingPositionoptionalIResolvableStartingPositionoptionalIResolvableStartingPositionoptionalinterface{} #Specifies the position in the topics to start replicating from.
topicNameConfigurationoptionalIResolvable | CfnReplicator.topic_name_configurationoptionaltyping.Union[IResolvable, ReplicationTopicNameConfigurationProperty]topicNameConfigurationoptionalIResolvableTopicNameConfigurationoptionalIResolvableTopicNameConfigurationoptionalinterface{} #Configuration for specifying replicated topic names will be the same as their corresponding upstream topics or prefixed with source cluster alias.
topicsToExcludeoptionalstring[]topics_to_excludeoptionaltyping.List[str]topicsToExcludeoptionalList<String>TopicsToExcludeoptionalstring[]TopicsToExcludeoptional*[]*string #List of regular expression patterns indicating the topics that should not be replicated.
topicsToReplicatestring[]topics_to_replicatetyping.List[str]topicsToReplicateList<String>TopicsToReplicatestring[]TopicsToReplicate*[]*string required #List of regular expression patterns indicating the topics to copy.