aws-cdk-lib.aws_stepfunctions_tasks.EmrCreateCluster.SpotProvisioningSpecificationProperty

interface SpotProvisioningSpecificationProperty

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Tasks.EmrCreateCluster.SpotProvisioningSpecificationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#EmrCreateCluster_SpotProvisioningSpecificationProperty
Javasoftware.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.SpotProvisioningSpecificationProperty
Pythonaws_cdk.aws_stepfunctions_tasks.EmrCreateCluster.SpotProvisioningSpecificationProperty
TypeScript (source)aws-cdk-lib » aws_stepfunctions_tasks » EmrCreateCluster » SpotProvisioningSpecificationProperty

The launch specification for Spot instances in the instance fleet, which determines the defined duration and provisioning timeout behavior.

See also: https://docs.aws.amazon.com/emr/latest/APIReference/API_SpotProvisioningSpecification.html

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';
const spotProvisioningSpecificationProperty: stepfunctions_tasks.EmrCreateCluster.SpotProvisioningSpecificationProperty = {
  timeoutAction: stepfunctions_tasks.EmrCreateCluster.SpotTimeoutAction.SWITCH_TO_ON_DEMAND,
  timeoutDurationMinutes: 123,

  // the properties below are optional
  allocationStrategy: stepfunctions_tasks.EmrCreateCluster.SpotAllocationStrategy.CAPACITY_OPTIMIZED,
  blockDurationMinutes: 123,
};

Properties

NameTypeDescription
timeoutActionSpotTimeoutActionThe action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired.
timeoutDurationMinutesnumberThe spot provisioning timeout period in minutes.
allocationStrategy?SpotAllocationStrategySpecifies the strategy to use in launching Spot Instance fleets.
blockDurationMinutes?numberThe defined duration for Spot instances (also known as Spot blocks) in minutes.

timeoutAction

Type: SpotTimeoutAction

The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired.


timeoutDurationMinutes

Type: number

The spot provisioning timeout period in minutes.


allocationStrategy?

Type: SpotAllocationStrategy (optional, default: No allocation strategy, i.e. spot instance type will be chosen based on current price only)

Specifies the strategy to use in launching Spot Instance fleets.


blockDurationMinutes?

Type: number (optional, default: No blockDurationMinutes)

The defined duration for Spot instances (also known as Spot blocks) in minutes.