> **Experimental**
>
> `@aws-cdk/aws-msk-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# ServerlessClusterProps

Properties for a MSK Serverless Cluster.

Used as props by: [ServerlessCluster](/cdk/api/v2/docs/@aws-cdk_aws-msk-alpha.ServerlessCluster.html)

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/serverless-cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-msk-alpha/lib/serverless-cluster.ts#L14)

## Example

TypeScript:

```ts
declare const vpc: ec2.Vpc;

const serverlessCluster = new msk.ServerlessCluster(this, 'ServerlessCluster', {
  clusterName: 'MyServerlessCluster',
  vpcConfigs: [
    { vpc },
  ],
});
```

Python:

```python
# vpc: ec2.Vpc

serverless_cluster = msk.ServerlessCluster(self, "ServerlessCluster",
    cluster_name="MyServerlessCluster",
    vpc_configs=[msk.VpcConfig(vpc=vpc)
    ]
)
```

Java:

```java
Vpc vpc;

ServerlessCluster serverlessCluster = ServerlessCluster.Builder.create(this, "ServerlessCluster")
        .clusterName("MyServerlessCluster")
        .vpcConfigs(List.of(VpcConfig.builder().vpc(vpc).build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.MSK.Alpha
Vpc vpc;

var serverlessCluster = new ServerlessCluster(this, "ServerlessCluster", new ServerlessClusterProps {
    ClusterName = "MyServerlessCluster",
    VpcConfigs = new [] { new VpcConfig { Vpc = vpc } }
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdkmskalpha/v2
var vpc Vpc

serverlessCluster := msk.NewServerlessCluster(this, jsii.String("ServerlessCluster"), &ServerlessClusterProps{
	ClusterName: jsii.String("MyServerlessCluster"),
	VpcConfigs: []VpcConfig{
		&VpcConfig{
			Vpc: *Vpc,
		},
	},
})
```

## Properties

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

  **Default:** auto generate

- `vpcConfigs`: [VpcConfig](/cdk/api/v2/docs/@aws-cdk_aws-msk-alpha.VpcConfig.html)[] (required) — The configuration of the Amazon VPCs for the cluster.

  You can specify up to 5 VPC configurations.
