# OnDemandAllocationStrategy

Indicates how to allocate instance types to fulfill On-Demand capacity.

- Source: [`aws-autoscaling/lib/auto-scaling-group.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.ts#L533)
- Type last changed: v2.116.0 · 22 Dec 2023

## Members

| Member | Description |
| --- | --- |
| `PRIORITIZED` | This strategy uses the order of instance types in the LaunchTemplateOverrides to define the launch priority of each instance type. |
| `LOWEST_PRICE` | This strategy uses the lowest-price instance types in each Availability Zone based on the current On-Demand instance price. |

## Referenced by

- [`InstancesDistribution`](/v2/docs/aws-cdk-lib.aws_autoscaling.InstancesDistribution).onDemandAllocationStrategy
