# CfnTopicProps

Properties for defining a `CfnTopic`.

Extends: CfnTopicProps
Used as props by: CfnTopic

- Source: Generated code
- Type last changed: v2.239.0 · 19 Feb 2026

## 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',
};
```

## Properties

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

- `configs`: string — Base64 encoded configuration properties of the topic.

- `partitionCount`: number (required) — The number of partitions for the topic.

- `replicationFactor`: number (required) — The replication factor for the topic.

- `topicName`: string (required) — The name of the topic.
