Skip to content
v2.274.0

OrderedComputeEnvironment Struct ​

Assigns an order to a ComputeEnvironment.

The JobQueue will prioritize the lowest-order ComputeEnvironment.

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 ​

computeEnvironmentIComputeEnvironmentRefcompute_environmentIComputeEnvironmentRefcomputeEnvironmentIComputeEnvironmentRefComputeEnvironmentIComputeEnvironmentRefComputeEnvironmentIComputeEnvironmentRefrequired#
The ComputeEnvironment to link to this JobQueue.
ordernumberorderint | floatorderNumberOrderdoubleOrder*float64required#
The order associated with `computeEnvironment`.