# CfnCluster

Creates a new MSK cluster.

Extends: [Construct](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Construct.html) › [CfnElement](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnElement.html) › [CfnRefElement](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnRefElement.html) › [CfnResource](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnResource.html) › CfnCluster
Implements: [IInspectable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IInspectable.html), [ITaggable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.ITaggable.html), [IEnvironmentAware](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.IEnvironmentAware.html), [IClusterRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_msk.IClusterRef.html), [IConstruct](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.IConstruct.html), IDependable

- CloudFormation: [`AWS::MSK::Cluster`](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-msk-cluster.html)
- Source: Generated at build time
- Type last changed: v2.253.0 · 6 May 2026

## Example

TypeScript:

```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 cfnCluster = new msk.CfnCluster(this, 'MyCfnCluster', {
  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:

```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 = msk.CfnCluster(self, "MyCfnCluster",
    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:

```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.*;

CfnCluster cfnCluster = CfnCluster.Builder.create(this, "MyCfnCluster")
        .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();
```

C# / .NET:

```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 cfnCluster = new CfnCluster(this, "MyCfnCluster", 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
    }
});
```

Golang:

```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"

cfnCluster := awscdk.Aws_msk.NewCfnCluster(this, jsii.String("MyCfnCluster"), &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),
	},
})
```

## Initializer

TypeScript:

```ts
new CfnCluster(scope: Construct, id: string, props: CfnClusterProps)
```

Python:

```python
CfnCluster(scope: Construct, id: str, props: CfnClusterProps)
```

Java:

```java
new CfnCluster(Construct scope, String id, CfnClusterProps props)
```

C# / .NET:

```csharp
new CfnCluster(Construct scope, string id, CfnClusterProps props)
```

Golang:

```go
NewCfnCluster(Scope Construct, Id *string, Props CfnClusterProps)
```

## Construct Props

- `brokerNodeGroupInfo`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.BrokerNodeGroupInfoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.BrokerNodeGroupInfoProperty.html) (required) — Information about the broker nodes in the cluster.

- `clientAuthentication`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.ClientAuthenticationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.ClientAuthenticationProperty.html) — Includes all client authentication related information.

- `clusterName`: string (required) — The name of the cluster.

- `configurationInfo`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.ConfigurationInfoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.ConfigurationInfoProperty.html) — Represents the configuration that you want MSK to use for the cluster.

- `currentVersion`: string

- `encryptionInfo`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.EncryptionInfoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.EncryptionInfoProperty.html) — Includes all encryption-related information.

- `enhancedMonitoring`: string — Specifies the level of monitoring for the MSK cluster.

- `kafkaVersion`: string (required) — The version of Apache Kafka.

  You can use Amazon MSK to create clusters that use [supported Apache Kafka versions](https://docs.aws.amazon.com/msk/latest/developerguide/supported-kafka-versions.html) .

- `loggingInfo`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.LoggingInfoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.LoggingInfoProperty.html) — Logging info details for the cluster.

- `numberOfBrokerNodes`: number (required) — The number of broker nodes in the cluster.

- `openMonitoring`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.OpenMonitoringProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.OpenMonitoringProperty.html) — The settings for open monitoring.

- `rebalancing`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.RebalancingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.RebalancingProperty.html)

- `storageMode`: string — This controls storage mode for supported storage tiers.

- `tags`: { [key: string]: string } — An arbitrary set of tags (key-value pairs) for the cluster.

- `zookeeperAccess`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.ZookeeperAccessProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.ZookeeperAccessProperty.html)

## Properties

- `attrArn`: string — The Amazon Resource Name (ARN) of the MSK cluster.

- `attrCurrentVersion`: string — The current version of the MSK cluster.

- `brokerNodeGroupInfo`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.BrokerNodeGroupInfoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.BrokerNodeGroupInfoProperty.html) — Information about the broker nodes in the cluster.

- `CFN_RESOURCE_TYPE_NAME`: string (static) — The CloudFormation resource type name for this resource class.

- `cfnOptions`: [ICfnResourceOptions](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.ICfnResourceOptions.html) — Options for this resource, such as condition, update policy etc.

- `cfnResourceType`: string — AWS resource type.

- `clientAuthentication`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.ClientAuthenticationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.ClientAuthenticationProperty.html) — Includes all client authentication related information.

- `clusterName`: string — The name of the cluster.

- `clusterRef`: [ClusterReference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_msk.ClusterReference.html) — A reference to a Cluster resource.

- `configurationInfo`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.ConfigurationInfoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.ConfigurationInfoProperty.html) — Represents the configuration that you want MSK to use for the cluster.

- `creationStack`: string[]

- `currentVersion`: string

- `encryptionInfo`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.EncryptionInfoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.EncryptionInfoProperty.html) — Includes all encryption-related information.

- `enhancedMonitoring`: string — Specifies the level of monitoring for the MSK cluster.

- `env`: [ResourceEnvironment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html)

- `kafkaVersion`: string — The version of Apache Kafka.

- `loggingInfo`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.LoggingInfoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.LoggingInfoProperty.html) — Logging info details for the cluster.

- `logicalId`: string — The logical ID for this CloudFormation stack element.

  The logical ID of the element
  is calculated from the path of the resource node in the construct tree.

  To override this value, use `overrideLogicalId(newLogicalId)`.

- `node`: [Node](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Node.html) — The tree node.

- `numberOfBrokerNodes`: number — The number of broker nodes in the cluster.

- `openMonitoring`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.OpenMonitoringProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.OpenMonitoringProperty.html) — The settings for open monitoring.

- `rebalancing`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.RebalancingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.RebalancingProperty.html)

- `ref`: string — Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.

  If, by any chance, the intrinsic reference of a resource is not a string, you could
  coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.

- `stack`: [Stack](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Stack.html) — The stack in which this element is defined.

  CfnElements must be defined within a stack scope (directly or indirectly).

- `storageMode`: string — This controls storage mode for supported storage tiers.

- `tags`: [TagManager](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.TagManager.html) — Tag Manager which manages the tags for this resource.

- `tagsRaw`: { [key: string]: string } — An arbitrary set of tags (key-value pairs) for the cluster.

- `zookeeperAccess`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.ZookeeperAccessProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.ZookeeperAccessProperty.html)

## Methods

- `addDeletionOverride(path: string): void` — Syntactic sugar for `addOverride(path, undefined)`.

  **Parameters**

  - `path` — The path of the value to delete.

- `addDependency(target: CfnResource): void` — Use `addResourceDependency` instead.

  This method has been renamed to `addResourceDependency` to more clearly
  set it apart from `construct.node.addDependency`. See the documentation
  of that function for more details.

- `addDependsOn(target: CfnResource): void` — Use `addResourceDependency` instead.

  This can be used for resources across stacks (or nested stack) boundaries
  and the dependency will automatically be transferred to the relevant scope.

  This method has been renamed to `addResourceDependency`, which makes it
  more clear that this method operates at a different level from the
  construct-level `construct.node.addDependency()` mechanism.

- `addMetadata(key: string, value: any): void` — Add a value to the CloudFormation Resource Metadata.

- `addOverride(path: string, value: any): void` — Adds an override to the synthesized CloudFormation resource.

  To add a
  property override, either use `addPropertyOverride` or prefix `path` with
  "Properties." (i.e. `Properties.TopicName`).

  If the override is nested, separate each nested level using a dot (.) in the path parameter.
  If there is an array as part of the nesting, specify the index in the path.

  To include a literal `.` in the property name, prefix with a `\`. In most
  programming languages you will need to write this as `"\\."` because the
  `\` itself will need to be escaped.

  For example,
  ```typescript
  cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
  cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
  ```
  would add the overrides
  ```json
  "Properties": {
    "GlobalSecondaryIndexes": [
      {
        "Projection": {
          "NonKeyAttributes": [ "myattribute" ]
          ...
        }
        ...
      },
      {
        "ProjectionType": "INCLUDE"
        ...
      },
    ]
    ...
  }
  ```

  The `value` argument to `addOverride` will not be processed or translated
  in any way. Pass raw JSON values in here with the correct capitalization
  for CloudFormation. If you pass CDK classes or structs, they will be
  rendered with lowercased key names, and CloudFormation will reject the
  template.

  **Parameters**

  - `path` — - The path of the property, you can use dot notation to override values in complex types.
  - `value` — - The value.

- `addPropertyDeletionOverride(propertyPath: string): void` — Adds an override that deletes the value of a property from the resource definition.

  **Parameters**

  - `propertyPath` — The path to the property.

- `addPropertyOverride(propertyPath: string, value: any): void` — Adds an override to a resource property.

  Syntactic sugar for `addOverride("Properties.<...>", value)`.

  **Parameters**

  - `propertyPath` — The path of the property.
  - `value` — The value.

- `addResourceDependency(target: CfnResource, reason?: string): void` — Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

  This can be used for resources across stacks (or nested stack) boundaries
  and the dependency will automatically be transferred to the relevant scope.

  This method only adds dependencies between L1 resources. If you are
  looking for a generic construct-to-construct dependency mechanism that works
  for all constructs including L2s, use `construct.node.addDependency` instead.

- `applyCrossStackReferenceStrength(strength: ReferenceStrength): void` — Sets the cross-stack reference strength for this resource.

  When set, any cross-stack reference to this resource will use the specified
  strength instead of the global default from the consuming stack's context.

  **Parameters**

  - `strength` — - The reference strength to use for this resource.

- `applyRemovalPolicy(policy?: RemovalPolicy, options?: RemovalPolicyOptions): void` — Sets the deletion policy of the resource based on the removal policy specified.

  The Removal Policy controls what happens to this resource when it stops
  being managed by CloudFormation, either because you've removed it from the
  CDK application or because you've made a change that requires the resource
  to be replaced.

  The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
  account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
  cases, a snapshot can be taken of the resource prior to deletion
  (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
  can be found in the following link:

- `arnForCluster(resource: IClusterRef): string` (static)

- `cfnPropertyName(cdkPropertyName: string): string`

- `getAtt(attributeName: string, typeHint?: ResolutionTypeHint): Reference` — Returns a token for an runtime attribute of this resource.

  Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
  in case there is no generated attribute.

  **Parameters**

  - `attributeName` — The name of the attribute.

- `getMetadata(key: string): any` — Retrieve a value value from the CloudFormation Resource Metadata.

- `inspect(inspector: TreeInspector): void` — Examines the CloudFormation resource and discloses attributes.

  **Parameters**

  - `inspector` — tree inspector to collect and process attributes.

- `isCfnCluster(x: any): boolean` (static) — Checks whether the given object is a CfnCluster.

- `isCfnElement(x: any): boolean` (static) — Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

  Uses duck-typing instead of `instanceof` to allow stack elements from different
  versions of this library to be included in the same stack.

  **Returns:** The construct as a stack element or undefined if it is not a stack element.

- `isCfnResource(x: any): boolean` (static) — Check whether the given object is a CfnResource.

- `isConstruct(x: any): boolean` (static) — Checks if `x` is a construct.

  Use this method instead of `instanceof` to properly detect `Construct`
  instances, even when the construct library is symlinked.

  Explanation: in JavaScript, multiple copies of the `constructs` library on
  disk are seen as independent, completely different libraries. As a
  consequence, the class `Construct` in each copy of the `constructs` library
  is seen as a different class, and an instance of one class will not test as
  `instanceof` the other class. `npm install` will not create installations
  like this, but users may manually symlink construct libraries together or
  use a monorepo tool: in those cases, multiple copies of the `constructs`
  library can be accidentally installed, and `instanceof` will behave
  unpredictably. It is safest to avoid using `instanceof`, and using
  this type-testing method instead.

  **Parameters**

  - `x` — Any object.

  **Returns:** true if `x` is an object created from a class which extends `Construct`.

- `obtainDependencies(): Stack | CfnResource[]` — Retrieves an array of resources and stacks this resource depends on.

  For resources depended on directly, returns the `CfnResource` object. For
  dependencies on other stacks, returns the `Stack` object. The order of the
  array is not guaranteed.

- `overrideLogicalId(newLogicalId: string): void` — Overrides the auto-generated logical ID with a specific ID.

  **Parameters**

  - `newLogicalId` — The new logical ID to use for this stack element.

- `removeDependency(target: CfnResource): void` — Use `removeResourceDependency` instead

  This can be used for resources across stacks (including nested stacks)
  and the dependency will automatically be removed from the relevant scope.

- `removeResourceDependency(target: CfnResource): void` — Indicates that this resource no longer depends on another resource.

  This can be used for resources across stacks (including nested stacks)
  and the dependency will automatically be removed from the relevant scope.

- `replaceDependency(target: CfnResource, newTarget: CfnResource): void` — Replaces one dependency with another.

  **Parameters**

  - `target` — The dependency to replace.
  - `newTarget` — The new dependency to add.

- `toString(): string` — Returns a string representation of this construct.

  **Returns:** a string representation of this resource

- `with(...mixins: IMixin[]): IConstruct` — Applies one or more mixins to this construct.

  Mixins are applied in order. The list of constructs is captured at the
  start of the call, so constructs added by a mixin will not be visited.
  Use multiple `with()` calls if subsequent mixins should apply to added
  constructs.
