Class CfnAutoScalingGroup.DistributionSegmentProperty
Use this structure to specify the capacity types that Amazon EC2 Auto Scaling prioritizes when it launches instances.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAutoScalingGroup.DistributionSegmentProperty : CfnAutoScalingGroup.IDistributionSegmentProperty
Syntax (vb)
Public Class CfnAutoScalingGroup.DistributionSegmentProperty Implements CfnAutoScalingGroup.IDistributionSegmentProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AutoScaling;
var distributionSegmentProperty = new DistributionSegmentProperty {
TargetCapacityTypes = new [] { "targetCapacityTypes" }
};
Synopsis
Constructors
| DistributionSegmentProperty() | Use this structure to specify the capacity types that Amazon EC2 Auto Scaling prioritizes when it launches instances. |
Properties
| TargetCapacityTypes | The capacity types to prioritize, in order. |
Constructors
DistributionSegmentProperty()
Use this structure to specify the capacity types that Amazon EC2 Auto Scaling prioritizes when it launches instances.
public DistributionSegmentProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AutoScaling;
var distributionSegmentProperty = new DistributionSegmentProperty {
TargetCapacityTypes = new [] { "targetCapacityTypes" }
};
Properties
TargetCapacityTypes
The capacity types to prioritize, in order.
public string[] TargetCapacityTypes { get; set; }
Property Value
string[]
Remarks
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: