Class CfnAutoScalingGroupPropsMixin.DistributionSegmentProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.autoscaling.CfnAutoScalingGroupPropsMixin.DistributionSegmentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutoScalingGroupPropsMixin.DistributionSegmentProperty>
- Enclosing interface:
CfnAutoScalingGroupPropsMixin.DistributionSegmentProperty
@Stability(Stable)
public static final class CfnAutoScalingGroupPropsMixin.DistributionSegmentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutoScalingGroupPropsMixin.DistributionSegmentProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.targetCapacityTypes(List<String> targetCapacityTypes)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetCapacityTypes
@Stability(Stable) public CfnAutoScalingGroupPropsMixin.DistributionSegmentProperty.Builder targetCapacityTypes(List<String> targetCapacityTypes) Sets the value ofCfnAutoScalingGroupPropsMixin.DistributionSegmentProperty.getTargetCapacityTypes()- Parameters:
targetCapacityTypes- 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 templateOverrides. 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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAutoScalingGroupPropsMixin.DistributionSegmentProperty>- Returns:
- a new instance of
CfnAutoScalingGroupPropsMixin.DistributionSegmentProperty - Throws:
NullPointerException- if any required attribute was not provided
-