interface DistributionSegmentProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AutoScaling.CfnAutoScalingGroup.DistributionSegmentProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#CfnAutoScalingGroup_DistributionSegmentProperty |
Java | software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.DistributionSegmentProperty |
Python | aws_cdk.aws_autoscaling.CfnAutoScalingGroup.DistributionSegmentProperty |
TypeScript | aws-cdk-lib » aws_autoscaling » CfnAutoScalingGroup » DistributionSegmentProperty |
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 { aws_autoscaling as autoscaling } from 'aws-cdk-lib';
const distributionSegmentProperty: autoscaling.CfnAutoScalingGroup.DistributionSegmentProperty = {
targetCapacityTypes: ['targetCapacityTypes'],
};
Properties
| Name | Type | Description |
|---|---|---|
| target | string[] | The capacity types to prioritize, in order. |
targetCapacityTypes
Type:
string[]
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.

.NET
Go
Java
Python
TypeScript