Interface CfnAutoScalingGroupPropsMixin.DistributionSegmentProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAutoScalingGroupPropsMixin.DistributionSegmentProperty.Jsii$Proxy
- Enclosing class:
CfnAutoScalingGroupPropsMixin
@Stability(Stable)
public static interface CfnAutoScalingGroupPropsMixin.DistributionSegmentProperty
extends software.amazon.jsii.JsiiSerializable
Use this structure to specify the capacity types that Amazon EC2 Auto Scaling prioritizes when it launches instances.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.autoscaling.*;
DistributionSegmentProperty distributionSegmentProperty = DistributionSegmentProperty.builder()
.targetCapacityTypes(List.of("targetCapacityTypes"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnAutoScalingGroupPropsMixin.DistributionSegmentProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTargetCapacityTypes
The capacity types to prioritize, in order.Amazon EC2 Auto Scaling attempts to launch instances in the priority order of the capacity types, and within each capacity type, in the order of instance types listed in your launch template
Overrides. The following lists the valid values:- on-demand-capacity-reservation On-Demand Capacity Reservations. + capacity-block Capacity Blocks. + interruptible-capacity-reservation Interruptible Capacity Reservations. + on-demand On-Demand capacity. Include this value to allow the group to fall back to On-Demand capacity when the preceding capacity types are unavailable.
- See Also:
-
builder
@Stability(Stable) static CfnAutoScalingGroupPropsMixin.DistributionSegmentProperty.Builder builder()
-