Class EmrCreateCluster.SpotProvisioningSpecificationProperty
The launch specification for Spot instances in the instance fleet, which determines the defined duration and provisioning timeout behavior.
Inheritance
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public class SpotProvisioningSpecificationProperty : Object, EmrCreateCluster.ISpotProvisioningSpecificationProperty
Syntax (vb)
Public Class SpotProvisioningSpecificationProperty
Inherits Object
Implements EmrCreateCluster.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
Constructors
SpotProvisioningSpecificationProperty() |
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. |
Constructors
SpotProvisioningSpecificationProperty()
public SpotProvisioningSpecificationProperty()
Properties
AllocationStrategy
Specifies the strategy to use in launching Spot Instance fleets.
public Nullable<EmrCreateCluster.SpotAllocationStrategy> AllocationStrategy { get; set; }
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.
public Nullable<double> BlockDurationMinutes { get; set; }
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.
public EmrCreateCluster.SpotTimeoutAction TimeoutAction { get; set; }
Property Value
EmrCreateCluster.SpotTimeoutAction
TimeoutDurationMinutes
The spot provisioning timeout period in minutes.
public double TimeoutDurationMinutes { get; set; }
Property Value
System.Double