CfnTopicProps Struct
Properties for defining a CfnTopic.
| 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 cfnTopicProps: msk.CfnTopicProps = {
clusterArn: 'clusterArn',
partitionCount: 123,
replicationFactor: 123,
topicName: 'topicName',
// the properties below are optional
configs: 'configs',
};
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
cfn_topic_props = msk.CfnTopicProps(
cluster_arn="clusterArn",
partition_count=123,
replication_factor=123,
topic_name="topicName",
# the properties below are optional
configs="configs"
)
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.*;
CfnTopicProps cfnTopicProps = CfnTopicProps.builder()
.clusterArn("clusterArn")
.partitionCount(123)
.replicationFactor(123)
.topicName("topicName")
// the properties below are optional
.configs("configs")
.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 cfnTopicProps = new CfnTopicProps {
ClusterArn = "clusterArn",
PartitionCount = 123,
ReplicationFactor = 123,
TopicName = "topicName",
// the properties below are optional
Configs = "configs"
};
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"
cfnTopicProps := &CfnTopicProps{
ClusterArn: jsii.String("clusterArn"),
PartitionCount: jsii.Number(123),
ReplicationFactor: jsii.Number(123),
TopicName: jsii.String("topicName"),
// the properties below are optional
Configs: jsii.String("configs"),
}
Properties
The Amazon Resource Name (ARN) of the MSK cluster.
configsoptionalstringconfigsoptionalstrconfigsoptionalStringConfigsoptionalstringConfigsoptional*string #Base64 encoded configuration properties of the topic.
partitionCountnumberpartition_countint | floatpartitionCountNumberPartitionCountdoublePartitionCount*float64 required #The number of partitions for the topic.
replicationFactornumberreplication_factorint | floatreplicationFactorNumberReplicationFactordoubleReplicationFactor*float64 required #The replication factor for the topic.
The name of the topic.