Skip to content

/AWS1/CL_ASCMIXEDINSTSPOLICY

Use this structure to launch multiple instance types and configure how capacity is distributed across On-Demand, Spot, and supported Capacity Reservation types within a single Auto Scaling group.

A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances, prioritize capacity types, and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide. To learn how to prioritize multiple capacity types, see Use Distribution Segments to target multiple capacity types in the Amazon EC2 Auto Scaling User Guide.

CONSTRUCTOR

IMPORTING

Optional arguments:

io_launchtemplate TYPE REF TO /AWS1/CL_ASCLAUNCHTEMPLATE /AWS1/CL_ASCLAUNCHTEMPLATE

One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill the configured capacities.

io_instancesdistribution TYPE REF TO /AWS1/CL_ASCINSTSDISTRIBUTION /AWS1/CL_ASCINSTSDISTRIBUTION

The instances distribution.


Queryable Attributes

LaunchTemplate

One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill the configured capacities.

Accessible with the following methods

Method Description
GET_LAUNCHTEMPLATE() Getter for LAUNCHTEMPLATE

InstancesDistribution

The instances distribution.

Accessible with the following methods

Method Description
GET_INSTANCESDISTRIBUTION() Getter for INSTANCESDISTRIBUTION