OnDemandResizingSpecificationProperty Struct
The resize specification for On-Demand Instances in the instance fleet, which contains the resize timeout period.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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 onDemandResizingSpecificationProperty: emr.CfnCluster.OnDemandResizingSpecificationProperty = {
allocationStrategy: 'allocationStrategy',
capacityReservationOptions: {
capacityReservationPreference: 'capacityReservationPreference',
capacityReservationResourceGroupArn: 'capacityReservationResourceGroupArn',
usageStrategy: 'usageStrategy',
},
timeoutDurationMinutes: 123,
};
python
# 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
on_demand_resizing_specification_property = emr.CfnCluster.OnDemandResizingSpecificationProperty(
allocation_strategy="allocationStrategy",
capacity_reservation_options=emr.CfnCluster.OnDemandCapacityReservationOptionsProperty(
capacity_reservation_preference="capacityReservationPreference",
capacity_reservation_resource_group_arn="capacityReservationResourceGroupArn",
usage_strategy="usageStrategy"
),
timeout_duration_minutes=123
)
java
// 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.*;
OnDemandResizingSpecificationProperty onDemandResizingSpecificationProperty = OnDemandResizingSpecificationProperty.builder()
.allocationStrategy("allocationStrategy")
.capacityReservationOptions(OnDemandCapacityReservationOptionsProperty.builder()
.capacityReservationPreference("capacityReservationPreference")
.capacityReservationResourceGroupArn("capacityReservationResourceGroupArn")
.usageStrategy("usageStrategy")
.build())
.timeoutDurationMinutes(123)
.build();
csharp
// 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 onDemandResizingSpecificationProperty = new OnDemandResizingSpecificationProperty {
AllocationStrategy = "allocationStrategy",
CapacityReservationOptions = new OnDemandCapacityReservationOptionsProperty {
CapacityReservationPreference = "capacityReservationPreference",
CapacityReservationResourceGroupArn = "capacityReservationResourceGroupArn",
UsageStrategy = "usageStrategy"
},
TimeoutDurationMinutes = 123
};
go
// 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"
onDemandResizingSpecificationProperty := &OnDemandResizingSpecificationProperty{
AllocationStrategy: jsii.String("allocationStrategy"),
CapacityReservationOptions: &OnDemandCapacityReservationOptionsProperty{
CapacityReservationPreference: jsii.String("capacityReservationPreference"),
CapacityReservationResourceGroupArn: jsii.String("capacityReservationResourceGroupArn"),
UsageStrategy: jsii.String("usageStrategy"),
},
TimeoutDurationMinutes: jsii.Number(123),
}
Properties
allocationStrategyoptionalstringallocation_strategyoptionalstrallocationStrategyoptionalStringAllocationStrategyoptionalstringAllocationStrategyoptional*string #Specifies the allocation strategy to use to launch On-Demand instances during a resize.
The default is lowest-price .
capacityReservationOptionsoptionalIResolvable | CfnCluster.capacity_reservation_optionsoptionaltyping.Union[IResolvable, OnDemandCapacityReservationOptionsProperty]capacityReservationOptionsoptionalIResolvableCapacityReservationOptionsoptionalIResolvableCapacityReservationOptionsoptionalinterface{} #timeoutDurationMinutesoptionalnumbertimeout_duration_minutesoptionalint | floattimeoutDurationMinutesoptionalNumberTimeoutDurationMinutesoptionaldoubleTimeoutDurationMinutesoptional*float64 #On-Demand resize timeout in minutes.
notes
If On-Demand Instances are not provisioned within this time, the resize workflow stops. The minimum value is 5 minutes, and the 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.