Interface CfnAutoScalingGroup.InstancesDistributionProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnAutoScalingGroup.InstancesDistributionProperty.Jsii$Proxy
Enclosing class:
CfnAutoScalingGroup

@Stability(Stable) public static interface CfnAutoScalingGroup.InstancesDistributionProperty extends software.amazon.jsii.JsiiSerializable
Use this structure to specify the distribution of On-Demand Instances and Spot Instances and the allocation strategies used to fulfill On-Demand and Spot capacities for a mixed instances policy.

For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide .

InstancesDistribution is a property of the AWS::AutoScaling::AutoScalingGroup MixedInstancesPolicy property type.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.autoscaling.*;
 InstancesDistributionProperty instancesDistributionProperty = InstancesDistributionProperty.builder()
         .onDemandAllocationStrategy("onDemandAllocationStrategy")
         .onDemandBaseCapacity(123)
         .onDemandPercentageAboveBaseCapacity(123)
         .spotAllocationStrategy("spotAllocationStrategy")
         .spotInstancePools(123)
         .spotMaxPrice("spotMaxPrice")
         .build();
 

See Also: