CfnClusterProps Struct
Properties for defining a CfnCluster.
| 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 cfnClusterProps: msk.CfnClusterProps = {
brokerNodeGroupInfo: {
clientSubnets: ['clientSubnets'],
instanceType: 'instanceType',
// the properties below are optional
brokerAzDistribution: 'brokerAzDistribution',
connectivityInfo: {
networkType: 'networkType',
publicAccess: {
type: 'type',
},
vpcConnectivity: {
clientAuthentication: {
sasl: {
iam: {
enabled: false,
},
scram: {
enabled: false,
},
},
tls: {
enabled: false,
},
},
},
},
securityGroups: ['securityGroups'],
storageInfo: {
ebsStorageInfo: {
provisionedThroughput: {
enabled: false,
volumeThroughput: 123,
},
volumeSize: 123,
},
},
topicReassignment: 'topicReassignment',
},
clusterName: 'clusterName',
kafkaVersion: 'kafkaVersion',
numberOfBrokerNodes: 123,
// the properties below are optional
clientAuthentication: {
sasl: {
iam: {
enabled: false,
},
scram: {
enabled: false,
},
},
tls: {
certificateAuthorityArnList: ['certificateAuthorityArnList'],
enabled: false,
},
unauthenticated: {
enabled: false,
},
},
configurationInfo: {
arn: 'arn',
revision: 123,
},
currentVersion: 'currentVersion',
encryptionInfo: {
encryptionAtRest: {
dataVolumeKmsKeyId: 'dataVolumeKmsKeyId',
},
encryptionInTransit: {
clientBroker: 'clientBroker',
inCluster: false,
},
},
enhancedMonitoring: 'enhancedMonitoring',
loggingInfo: {
authorizerLogs: {
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',
},
},
brokerLogs: {
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',
},
},
},
openMonitoring: {
prometheus: {
jmxExporter: {
enabledInBroker: false,
},
nodeExporter: {
enabledInBroker: false,
},
},
},
rebalancing: {
status: 'status',
},
storageMode: 'storageMode',
tags: {
tagsKey: 'tags',
},
zookeeperAccess: {
enabled: 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
cfn_cluster_props = msk.CfnClusterProps(
broker_node_group_info=msk.CfnCluster.BrokerNodeGroupInfoProperty(
client_subnets=["clientSubnets"],
instance_type="instanceType",
# the properties below are optional
broker_az_distribution="brokerAzDistribution",
connectivity_info=msk.CfnCluster.ConnectivityInfoProperty(
network_type="networkType",
public_access=msk.CfnCluster.PublicAccessProperty(
type="type"
),
vpc_connectivity=msk.CfnCluster.VpcConnectivityProperty(
client_authentication=msk.CfnCluster.VpcConnectivityClientAuthenticationProperty(
sasl=msk.CfnCluster.VpcConnectivitySaslProperty(
iam=msk.CfnCluster.VpcConnectivityIamProperty(
enabled=False
),
scram=msk.CfnCluster.VpcConnectivityScramProperty(
enabled=False
)
),
tls=msk.CfnCluster.VpcConnectivityTlsProperty(
enabled=False
)
)
)
),
security_groups=["securityGroups"],
storage_info=msk.CfnCluster.StorageInfoProperty(
ebs_storage_info=msk.CfnCluster.EBSStorageInfoProperty(
provisioned_throughput=msk.CfnCluster.ProvisionedThroughputProperty(
enabled=False,
volume_throughput=123
),
volume_size=123
)
),
topic_reassignment="topicReassignment"
),
cluster_name="clusterName",
kafka_version="kafkaVersion",
number_of_broker_nodes=123,
# the properties below are optional
client_authentication=msk.CfnCluster.ClientAuthenticationProperty(
sasl=msk.CfnCluster.SaslProperty(
iam=msk.CfnCluster.IamProperty(
enabled=False
),
scram=msk.CfnCluster.ScramProperty(
enabled=False
)
),
tls=msk.CfnCluster.TlsProperty(
certificate_authority_arn_list=["certificateAuthorityArnList"],
enabled=False
),
unauthenticated=msk.CfnCluster.UnauthenticatedProperty(
enabled=False
)
),
configuration_info=msk.CfnCluster.ConfigurationInfoProperty(
arn="arn",
revision=123
),
current_version="currentVersion",
encryption_info=msk.CfnCluster.EncryptionInfoProperty(
encryption_at_rest=msk.CfnCluster.EncryptionAtRestProperty(
data_volume_kms_key_id="dataVolumeKmsKeyId"
),
encryption_in_transit=msk.CfnCluster.EncryptionInTransitProperty(
client_broker="clientBroker",
in_cluster=False
)
),
enhanced_monitoring="enhancedMonitoring",
logging_info=msk.CfnCluster.LoggingInfoProperty(
authorizer_logs=msk.CfnCluster.AuthorizerLogsProperty(
cloud_watch_logs=msk.CfnCluster.CloudWatchLogsProperty(
enabled=False,
# the properties below are optional
log_group="logGroup"
),
firehose=msk.CfnCluster.FirehoseProperty(
enabled=False,
# the properties below are optional
delivery_stream="deliveryStream"
),
s3=msk.CfnCluster.S3Property(
enabled=False,
# the properties below are optional
bucket="bucket",
prefix="prefix"
)
),
broker_logs=msk.CfnCluster.BrokerLogsProperty(
cloud_watch_logs=msk.CfnCluster.CloudWatchLogsProperty(
enabled=False,
# the properties below are optional
log_group="logGroup"
),
firehose=msk.CfnCluster.FirehoseProperty(
enabled=False,
# the properties below are optional
delivery_stream="deliveryStream"
),
s3=msk.CfnCluster.S3Property(
enabled=False,
# the properties below are optional
bucket="bucket",
prefix="prefix"
)
)
),
open_monitoring=msk.CfnCluster.OpenMonitoringProperty(
prometheus=msk.CfnCluster.PrometheusProperty(
jmx_exporter=msk.CfnCluster.JmxExporterProperty(
enabled_in_broker=False
),
node_exporter=msk.CfnCluster.NodeExporterProperty(
enabled_in_broker=False
)
)
),
rebalancing=msk.CfnCluster.RebalancingProperty(
status="status"
),
storage_mode="storageMode",
tags={
"tags_key": "tags"
},
zookeeper_access=msk.CfnCluster.ZookeeperAccessProperty(
enabled=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.*;
CfnClusterProps cfnClusterProps = CfnClusterProps.builder()
.brokerNodeGroupInfo(BrokerNodeGroupInfoProperty.builder()
.clientSubnets(List.of("clientSubnets"))
.instanceType("instanceType")
// the properties below are optional
.brokerAzDistribution("brokerAzDistribution")
.connectivityInfo(ConnectivityInfoProperty.builder()
.networkType("networkType")
.publicAccess(PublicAccessProperty.builder()
.type("type")
.build())
.vpcConnectivity(VpcConnectivityProperty.builder()
.clientAuthentication(VpcConnectivityClientAuthenticationProperty.builder()
.sasl(VpcConnectivitySaslProperty.builder()
.iam(VpcConnectivityIamProperty.builder()
.enabled(false)
.build())
.scram(VpcConnectivityScramProperty.builder()
.enabled(false)
.build())
.build())
.tls(VpcConnectivityTlsProperty.builder()
.enabled(false)
.build())
.build())
.build())
.build())
.securityGroups(List.of("securityGroups"))
.storageInfo(StorageInfoProperty.builder()
.ebsStorageInfo(EBSStorageInfoProperty.builder()
.provisionedThroughput(ProvisionedThroughputProperty.builder()
.enabled(false)
.volumeThroughput(123)
.build())
.volumeSize(123)
.build())
.build())
.topicReassignment("topicReassignment")
.build())
.clusterName("clusterName")
.kafkaVersion("kafkaVersion")
.numberOfBrokerNodes(123)
// the properties below are optional
.clientAuthentication(ClientAuthenticationProperty.builder()
.sasl(SaslProperty.builder()
.iam(IamProperty.builder()
.enabled(false)
.build())
.scram(ScramProperty.builder()
.enabled(false)
.build())
.build())
.tls(TlsProperty.builder()
.certificateAuthorityArnList(List.of("certificateAuthorityArnList"))
.enabled(false)
.build())
.unauthenticated(UnauthenticatedProperty.builder()
.enabled(false)
.build())
.build())
.configurationInfo(ConfigurationInfoProperty.builder()
.arn("arn")
.revision(123)
.build())
.currentVersion("currentVersion")
.encryptionInfo(EncryptionInfoProperty.builder()
.encryptionAtRest(EncryptionAtRestProperty.builder()
.dataVolumeKmsKeyId("dataVolumeKmsKeyId")
.build())
.encryptionInTransit(EncryptionInTransitProperty.builder()
.clientBroker("clientBroker")
.inCluster(false)
.build())
.build())
.enhancedMonitoring("enhancedMonitoring")
.loggingInfo(LoggingInfoProperty.builder()
.authorizerLogs(AuthorizerLogsProperty.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())
.brokerLogs(BrokerLogsProperty.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())
.openMonitoring(OpenMonitoringProperty.builder()
.prometheus(PrometheusProperty.builder()
.jmxExporter(JmxExporterProperty.builder()
.enabledInBroker(false)
.build())
.nodeExporter(NodeExporterProperty.builder()
.enabledInBroker(false)
.build())
.build())
.build())
.rebalancing(RebalancingProperty.builder()
.status("status")
.build())
.storageMode("storageMode")
.tags(Map.of(
"tagsKey", "tags"))
.zookeeperAccess(ZookeeperAccessProperty.builder()
.enabled(false)
.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 cfnClusterProps = new CfnClusterProps {
BrokerNodeGroupInfo = new BrokerNodeGroupInfoProperty {
ClientSubnets = new [] { "clientSubnets" },
InstanceType = "instanceType",
// the properties below are optional
BrokerAzDistribution = "brokerAzDistribution",
ConnectivityInfo = new ConnectivityInfoProperty {
NetworkType = "networkType",
PublicAccess = new PublicAccessProperty {
Type = "type"
},
VpcConnectivity = new VpcConnectivityProperty {
ClientAuthentication = new VpcConnectivityClientAuthenticationProperty {
Sasl = new VpcConnectivitySaslProperty {
Iam = new VpcConnectivityIamProperty {
Enabled = false
},
Scram = new VpcConnectivityScramProperty {
Enabled = false
}
},
Tls = new VpcConnectivityTlsProperty {
Enabled = false
}
}
}
},
SecurityGroups = new [] { "securityGroups" },
StorageInfo = new StorageInfoProperty {
EbsStorageInfo = new EBSStorageInfoProperty {
ProvisionedThroughput = new ProvisionedThroughputProperty {
Enabled = false,
VolumeThroughput = 123
},
VolumeSize = 123
}
},
TopicReassignment = "topicReassignment"
},
ClusterName = "clusterName",
KafkaVersion = "kafkaVersion",
NumberOfBrokerNodes = 123,
// the properties below are optional
ClientAuthentication = new ClientAuthenticationProperty {
Sasl = new SaslProperty {
Iam = new IamProperty {
Enabled = false
},
Scram = new ScramProperty {
Enabled = false
}
},
Tls = new TlsProperty {
CertificateAuthorityArnList = new [] { "certificateAuthorityArnList" },
Enabled = false
},
Unauthenticated = new UnauthenticatedProperty {
Enabled = false
}
},
ConfigurationInfo = new ConfigurationInfoProperty {
Arn = "arn",
Revision = 123
},
CurrentVersion = "currentVersion",
EncryptionInfo = new EncryptionInfoProperty {
EncryptionAtRest = new EncryptionAtRestProperty {
DataVolumeKmsKeyId = "dataVolumeKmsKeyId"
},
EncryptionInTransit = new EncryptionInTransitProperty {
ClientBroker = "clientBroker",
InCluster = false
}
},
EnhancedMonitoring = "enhancedMonitoring",
LoggingInfo = new LoggingInfoProperty {
AuthorizerLogs = new AuthorizerLogsProperty {
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"
}
},
BrokerLogs = new BrokerLogsProperty {
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"
}
}
},
OpenMonitoring = new OpenMonitoringProperty {
Prometheus = new PrometheusProperty {
JmxExporter = new JmxExporterProperty {
EnabledInBroker = false
},
NodeExporter = new NodeExporterProperty {
EnabledInBroker = false
}
}
},
Rebalancing = new RebalancingProperty {
Status = "status"
},
StorageMode = "storageMode",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
},
ZookeeperAccess = new ZookeeperAccessProperty {
Enabled = 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"
cfnClusterProps := &CfnClusterProps{
BrokerNodeGroupInfo: &BrokerNodeGroupInfoProperty{
ClientSubnets: []*string{
jsii.String("clientSubnets"),
},
InstanceType: jsii.String("instanceType"),
// the properties below are optional
BrokerAzDistribution: jsii.String("brokerAzDistribution"),
ConnectivityInfo: &ConnectivityInfoProperty{
NetworkType: jsii.String("networkType"),
PublicAccess: &PublicAccessProperty{
Type: jsii.String("type"),
},
VpcConnectivity: &VpcConnectivityProperty{
ClientAuthentication: &VpcConnectivityClientAuthenticationProperty{
Sasl: &VpcConnectivitySaslProperty{
Iam: &VpcConnectivityIamProperty{
Enabled: jsii.Boolean(false),
},
Scram: &VpcConnectivityScramProperty{
Enabled: jsii.Boolean(false),
},
},
Tls: &VpcConnectivityTlsProperty{
Enabled: jsii.Boolean(false),
},
},
},
},
SecurityGroups: []*string{
jsii.String("securityGroups"),
},
StorageInfo: &StorageInfoProperty{
EbsStorageInfo: &EBSStorageInfoProperty{
ProvisionedThroughput: &ProvisionedThroughputProperty{
Enabled: jsii.Boolean(false),
VolumeThroughput: jsii.Number(123),
},
VolumeSize: jsii.Number(123),
},
},
TopicReassignment: jsii.String("topicReassignment"),
},
ClusterName: jsii.String("clusterName"),
KafkaVersion: jsii.String("kafkaVersion"),
NumberOfBrokerNodes: jsii.Number(123),
// the properties below are optional
ClientAuthentication: &ClientAuthenticationProperty{
Sasl: &SaslProperty{
Iam: &IamProperty{
Enabled: jsii.Boolean(false),
},
Scram: &ScramProperty{
Enabled: jsii.Boolean(false),
},
},
Tls: &TlsProperty{
CertificateAuthorityArnList: []*string{
jsii.String("certificateAuthorityArnList"),
},
Enabled: jsii.Boolean(false),
},
Unauthenticated: &UnauthenticatedProperty{
Enabled: jsii.Boolean(false),
},
},
ConfigurationInfo: &ConfigurationInfoProperty{
Arn: jsii.String("arn"),
Revision: jsii.Number(123),
},
CurrentVersion: jsii.String("currentVersion"),
EncryptionInfo: &EncryptionInfoProperty{
EncryptionAtRest: &EncryptionAtRestProperty{
DataVolumeKmsKeyId: jsii.String("dataVolumeKmsKeyId"),
},
EncryptionInTransit: &EncryptionInTransitProperty{
ClientBroker: jsii.String("clientBroker"),
InCluster: jsii.Boolean(false),
},
},
EnhancedMonitoring: jsii.String("enhancedMonitoring"),
LoggingInfo: &LoggingInfoProperty{
AuthorizerLogs: &AuthorizerLogsProperty{
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"),
},
},
BrokerLogs: &BrokerLogsProperty{
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"),
},
},
},
OpenMonitoring: &OpenMonitoringProperty{
Prometheus: &PrometheusProperty{
JmxExporter: &JmxExporterProperty{
EnabledInBroker: jsii.Boolean(false),
},
NodeExporter: &NodeExporterProperty{
EnabledInBroker: jsii.Boolean(false),
},
},
},
Rebalancing: &RebalancingProperty{
Status: jsii.String("status"),
},
StorageMode: jsii.String("storageMode"),
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
ZookeeperAccess: &ZookeeperAccessProperty{
Enabled: jsii.Boolean(false),
},
}
Properties
brokerNodeGroupInfoIResolvable | CfnCluster.broker_node_group_infotyping.Union[IResolvable, BrokerNodeGroupInfoProperty]brokerNodeGroupInfoIResolvableBrokerNodeGroupInfoIResolvableBrokerNodeGroupInfointerface{} required #Information about the broker nodes in the cluster.
clientAuthenticationoptionalIResolvable | CfnCluster.client_authenticationoptionaltyping.Union[IResolvable, ClientAuthenticationProperty]clientAuthenticationoptionalIResolvableClientAuthenticationoptionalIResolvableClientAuthenticationoptionalinterface{} #Includes all client authentication related information.
The name of the cluster.
configurationInfooptionalIResolvable | CfnCluster.configuration_infooptionaltyping.Union[IResolvable, ConfigurationInfoProperty]configurationInfooptionalIResolvableConfigurationInfooptionalIResolvableConfigurationInfooptionalinterface{} #Represents the configuration that you want MSK to use for the cluster.
currentVersionoptionalstringcurrent_versionoptionalstrcurrentVersionoptionalStringCurrentVersionoptionalstringCurrentVersionoptional*string #encryptionInfooptionalIResolvable | CfnCluster.encryption_infooptionaltyping.Union[IResolvable, EncryptionInfoProperty]encryptionInfooptionalIResolvableEncryptionInfooptionalIResolvableEncryptionInfooptionalinterface{} #Includes all encryption-related information.
enhancedMonitoringoptionalstringenhanced_monitoringoptionalstrenhancedMonitoringoptionalStringEnhancedMonitoringoptionalstringEnhancedMonitoringoptional*string #Specifies the level of monitoring for the MSK cluster.
kafkaVersionstringkafka_versionstrkafkaVersionStringKafkaVersionstringKafkaVersion*string required #The version of Apache Kafka.
You can use Amazon MSK to create clusters that use supported Apache Kafka versions .
loggingInfooptionalIResolvable | CfnCluster.LoggingInfoPropertylogging_infooptionaltyping.Union[IResolvable, LoggingInfoProperty]loggingInfooptionalIResolvableLoggingInfooptionalIResolvableLoggingInfooptionalinterface{} #Logging info details for the cluster.
numberOfBrokerNodesnumbernumber_of_broker_nodesint | floatnumberOfBrokerNodesNumberNumberOfBrokerNodesdoubleNumberOfBrokerNodes*float64 required #The number of broker nodes in the cluster.
openMonitoringoptionalIResolvable | CfnCluster.open_monitoringoptionaltyping.Union[IResolvable, OpenMonitoringProperty]openMonitoringoptionalIResolvableOpenMonitoringoptionalIResolvableOpenMonitoringoptionalinterface{} #The settings for open monitoring.
rebalancingoptionalIResolvable | CfnCluster.RebalancingPropertyrebalancingoptionaltyping.Union[IResolvable, RebalancingProperty]rebalancingoptionalIResolvableRebalancingoptionalIResolvableRebalancingoptionalinterface{} #storageModeoptionalstringstorage_modeoptionalstrstorageModeoptionalStringStorageModeoptionalstringStorageModeoptional*string #This controls storage mode for supported storage tiers.
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #An arbitrary set of tags (key-value pairs) for the cluster.
zookeeperAccessoptionalIResolvable | CfnCluster.zookeeper_accessoptionaltyping.Union[IResolvable, ZookeeperAccessProperty]zookeeperAccessoptionalIResolvableZookeeperAccessoptionalIResolvableZookeeperAccessoptionalinterface{} #