Class EmrCreateCluster.SpotTimeoutAction
Spot Timeout Actions.
Inheritance
System.Object
EmrCreateCluster.SpotTimeoutAction
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class SpotTimeoutAction : Enum
Syntax (vb)
Public NotInheritable Class SpotTimeoutAction
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
SWITCH_TO_ON_DEMAND | SWITCH_TO_ON_DEMAND. |
TERMINATE_CLUSTER | TERMINATE_CLUSTER. |
value__ |
Fields
SWITCH_TO_ON_DEMAND
SWITCH_TO_ON_DEMAND.
public const EmrCreateCluster.SpotTimeoutAction SWITCH_TO_ON_DEMAND
Field Value
Type | Description |
---|---|
EmrCreateCluster.SpotTimeoutAction |
TERMINATE_CLUSTER
TERMINATE_CLUSTER.
public const EmrCreateCluster.SpotTimeoutAction TERMINATE_CLUSTER
Field Value
Type | Description |
---|---|
EmrCreateCluster.SpotTimeoutAction |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |