> **Experimental**
>
> `@aws-cdk/aws-medialive-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# ClusterProps

Properties for creating a MediaLive Cluster.

Used as props by: [Cluster](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.Cluster.html)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-medialive-alpha/lib/cluster.ts#L96)

## Example

TypeScript:

```ts
declare const stack: Stack;
declare const instanceRole: iam.IRole;

const cluster = new medialive.Cluster(stack, 'Cluster', {
  clusterName: 'on-prem-cluster',
  clusterType: medialive.ClusterType.ON_PREMISES,
  instanceRole,
});
```

Python:

```python
# stack: Stack
# instance_role: iam.IRole

cluster = medialive.Cluster(stack, "Cluster",
    cluster_name="on-prem-cluster",
    cluster_type=medialive.ClusterType.ON_PREMISES,
    instance_role=instance_role
)
```

Java:

```java
Stack stack;
IRole instanceRole;

Cluster cluster = Cluster.Builder.create(stack, "Cluster")
        .clusterName("on-prem-cluster")
        .clusterType(ClusterType.ON_PREMISES)
        .instanceRole(instanceRole)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
Stack stack;
IRole instanceRole;

var cluster = new Cluster(stack, "Cluster", new ClusterProps {
    ClusterName = "on-prem-cluster",
    ClusterType = ClusterType.ON_PREMISES,
    InstanceRole = instanceRole
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
var stack Stack
var instanceRole IRole

cluster := medialive.NewCluster(stack, jsii.String("Cluster"), &ClusterProps{
	ClusterName: jsii.String("on-prem-cluster"),
	ClusterType: medialive.ClusterType_ON_PREMISES(),
	InstanceRole: InstanceRole,
})
```

## Properties

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

  **Default:** auto-generated name

- `clusterType`: [ClusterType](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.ClusterType.html) = ClusterType.ON_PREMISES — The hardware type for the cluster.

- `instanceRole`: [IRole](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) (required) — The IAM role for nodes in the cluster.

  [disable-awslint:prefer-ref-interface]

- `networkSettings`: [ClusterNetworkSettings](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.ClusterNetworkSettings.html) — Network settings for the cluster - only required if your networking setup requires it.

  **Default:** no network settings

- `tags`: { [key: string]: string } — Tags to add to the cluster.

  **Default:** no tags
