> **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.
# ClusterType

The hardware type for the cluster.

Obtainable from: ClusterType.EC2, ClusterType.ON_PREMISES, ClusterType.OUTPOSTS_RACK, ClusterType.OUTPOSTS_SERVER, ClusterType.of

- 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#L14)

## 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

- `EC2`: [ClusterType](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.ClusterType.html) (static) — Amazon EC2.

- `ON_PREMISES`: [ClusterType](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.ClusterType.html) (static) — On-premises cluster.

- `OUTPOSTS_RACK`: [ClusterType](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.ClusterType.html) (static) — AWS Outposts rack.

- `OUTPOSTS_SERVER`: [ClusterType](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.ClusterType.html) (static) — AWS Outposts server.

- `value`: string — The underlying string value passed to CloudFormation.

## Methods

- `of(value: string): ClusterType // chainable` (static) — A value not yet modelled by AWS CDK.
