Experimental
@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
ClusterType Class
The hardware type for the cluster.
Example
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
# 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
Stack stack;
IRole instanceRole;
Cluster cluster = Cluster.Builder.create(stack, "Cluster")
.clusterName("on-prem-cluster")
.clusterType(ClusterType.ON_PREMISES)
.instanceRole(instanceRole)
.build();
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
});
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
Amazon EC2.
ON_PREMISESClusterTypeon_premisesClusterTypeON_PREMISESClusterTypeON_PREMISESClusterTypeON_PREMISESClusterTypestatic#On-premises cluster.
OUTPOSTS_RACKClusterTypeoutposts_rackClusterTypeOUTPOSTS_RACKClusterTypeOUTPOSTS_RACKClusterTypeOUTPOSTS_RACKClusterTypestatic#AWS Outposts rack.
OUTPOSTS_SERVERClusterTypeoutposts_serverClusterTypeOUTPOSTS_SERVERClusterTypeOUTPOSTS_SERVERClusterTypeOUTPOSTS_SERVERClusterTypestatic#AWS Outposts server.
The underlying string value passed to CloudFormation.
Methods
of(value: string): ClusterType // chainable@staticmethod def of(value: str) -> ClusterTypepublic static ClusterType of(String value)public static ClusterType Of(string value)func Of(Value *string) ClusterTypestatic#A value not yet modelled by AWS CDK.