Class EmrCreateCluster.InstanceRoleType
Instance Role Types.
Inheritance
System.Object
EmrCreateCluster.InstanceRoleType
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class InstanceRoleType : Enum
Syntax (vb)
Public NotInheritable Class InstanceRoleType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
new EmrCreateCluster(this, "OnDemandSpecification", new EmrCreateClusterProps {
Instances = new InstancesConfigProperty {
InstanceFleets = new [] { new InstanceFleetConfigProperty {
InstanceFleetType = EmrCreateCluster.InstanceRoleType.MASTER,
LaunchSpecifications = new InstanceFleetProvisioningSpecificationsProperty {
OnDemandSpecification = new OnDemandProvisioningSpecificationProperty {
AllocationStrategy = EmrCreateCluster.OnDemandAllocationStrategy.LOWEST_PRICE
}
}
} }
},
Name = "OnDemandCluster",
IntegrationPattern = IntegrationPattern.RUN_JOB
});
new EmrCreateCluster(this, "SpotSpecification", new EmrCreateClusterProps {
Instances = new InstancesConfigProperty {
InstanceFleets = new [] { new InstanceFleetConfigProperty {
InstanceFleetType = EmrCreateCluster.InstanceRoleType.MASTER,
LaunchSpecifications = new InstanceFleetProvisioningSpecificationsProperty {
SpotSpecification = new SpotProvisioningSpecificationProperty {
AllocationStrategy = EmrCreateCluster.SpotAllocationStrategy.CAPACITY_OPTIMIZED,
TimeoutAction = EmrCreateCluster.SpotTimeoutAction.TERMINATE_CLUSTER,
Timeout = Duration.Minutes(5)
}
}
} }
},
Name = "SpotCluster",
IntegrationPattern = IntegrationPattern.RUN_JOB
});
Synopsis
Fields
CORE | Core Node. |
MASTER | Master Node. |
TASK | Task Node. |
value__ |
Fields
CORE
Core Node.
public const EmrCreateCluster.InstanceRoleType CORE
Field Value
Type | Description |
---|---|
EmrCreateCluster.InstanceRoleType |
MASTER
Master Node.
public const EmrCreateCluster.InstanceRoleType MASTER
Field Value
Type | Description |
---|---|
EmrCreateCluster.InstanceRoleType |
TASK
Task Node.
public const EmrCreateCluster.InstanceRoleType TASK
Field Value
Type | Description |
---|---|
EmrCreateCluster.InstanceRoleType |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |