# OrderedComputeEnvironment

Assigns an order to a ComputeEnvironment.

The JobQueue will prioritize the lowest-order ComputeEnvironment.

- Source: [`aws-batch/lib/job-queue.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-batch/lib/job-queue.ts#L146)
- Type last changed: v2.234.0 · 8 Jan 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
import { aws_batch as interfaces_batch } from 'aws-cdk-lib/interfaces';

declare const computeEnvironmentRef: interfaces_batch.IComputeEnvironmentRef;
const orderedComputeEnvironment: batch.OrderedComputeEnvironment = {
  computeEnvironment: computeEnvironmentRef,
  order: 123,
};
```

## Properties

- `computeEnvironment`: [IComputeEnvironmentRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_batch.IComputeEnvironmentRef.html) (required) — The ComputeEnvironment to link to this JobQueue.

- `order`: number (required) — The order associated with `computeEnvironment`.
