Interface EmrCreateCluster.ISpotProvisioningSpecificationProperty
The launch specification for Spot instances in the instance fleet, which determines the defined duration and provisioning timeout behavior.
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public interface ISpotProvisioningSpecificationProperty
Syntax (vb)
Public Interface ISpotProvisioningSpecificationProperty
Remarks
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_SpotProvisioningSpecification.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.StepFunctions.Tasks;
var spotProvisioningSpecificationProperty = new SpotProvisioningSpecificationProperty {
TimeoutAction = EmrCreateCluster.SpotTimeoutAction.SWITCH_TO_ON_DEMAND,
TimeoutDurationMinutes = 123,
// the properties below are optional
AllocationStrategy = EmrCreateCluster.SpotAllocationStrategy.CAPACITY_OPTIMIZED,
BlockDurationMinutes = 123
};
Synopsis
Properties
AllocationStrategy | Specifies the strategy to use in launching Spot Instance fleets. |
BlockDurationMinutes | The defined duration for Spot instances (also known as Spot blocks) in minutes. |
TimeoutAction | The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired. |
TimeoutDurationMinutes | The spot provisioning timeout period in minutes. |
Properties
AllocationStrategy
Specifies the strategy to use in launching Spot Instance fleets.
virtual Nullable<EmrCreateCluster.SpotAllocationStrategy> AllocationStrategy { get; }
Property Value
System.Nullable<EmrCreateCluster.SpotAllocationStrategy>
Remarks
Default: - No allocation strategy, i.e. spot instance type will be chosen based on current price only
BlockDurationMinutes
The defined duration for Spot instances (also known as Spot blocks) in minutes.
virtual Nullable<double> BlockDurationMinutes { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - No blockDurationMinutes
TimeoutAction
The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired.
EmrCreateCluster.SpotTimeoutAction TimeoutAction { get; }
Property Value
EmrCreateCluster.SpotTimeoutAction
TimeoutDurationMinutes
The spot provisioning timeout period in minutes.
double TimeoutDurationMinutes { get; }
Property Value
System.Double