SpotResizingSpecificationProperty Struct
The resize specification for Spot Instances in the instance fleet, which contains the resize timeout period.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emr as emr } from 'aws-cdk-lib';
const spotResizingSpecificationProperty: emr.CfnInstanceFleetConfig.SpotResizingSpecificationProperty = {
allocationStrategy: 'allocationStrategy',
timeoutDurationMinutes: 123,
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_emr as emr
spot_resizing_specification_property = emr.CfnInstanceFleetConfig.SpotResizingSpecificationProperty(
allocation_strategy="allocationStrategy",
timeout_duration_minutes=123
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.emr.*;
SpotResizingSpecificationProperty spotResizingSpecificationProperty = SpotResizingSpecificationProperty.builder()
.allocationStrategy("allocationStrategy")
.timeoutDurationMinutes(123)
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EMR;
var spotResizingSpecificationProperty = new SpotResizingSpecificationProperty {
AllocationStrategy = "allocationStrategy",
TimeoutDurationMinutes = 123
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
spotResizingSpecificationProperty := &SpotResizingSpecificationProperty{
AllocationStrategy: jsii.String("allocationStrategy"),
TimeoutDurationMinutes: jsii.Number(123),
}
Properties
allocationStrategyoptionalstringallocation_strategyoptionalstrallocationStrategyoptionalStringAllocationStrategyoptionalstringAllocationStrategyoptional*string #If you run Amazon EMR releases 6.9.0 or higher, the default is price-capacity-optimized . If you run Amazon EMR releases 6.8.0 or lower, the default is capacity-optimized .
timeoutDurationMinutesoptionalnumbertimeout_duration_minutesoptionalint | floattimeoutDurationMinutesoptionalNumberTimeoutDurationMinutesoptionaldoubleTimeoutDurationMinutesoptional*float64 #notes
If Spot Instances are not provisioned within this time, the resize workflow will stop provisioning of Spot instances. Minimum value is 5 minutes and maximum value is 10,080 minutes (7 days). The timeout applies to all resize workflows on the Instance Fleet. The resize could be triggered by Amazon EMR Managed Scaling or by the customer (via Amazon EMR Console, Amazon EMR CLI modify-instance-fleet or Amazon EMR SDK ModifyInstanceFleet API) or by Amazon EMR due to Amazon EC2 Spot Reclamation.