interface ComputeEnvironmentOrderProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Batch.Mixins.CfnJobQueuePropsMixin.ComputeEnvironmentOrderProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbatch/mixins#CfnJobQueuePropsMixin_ComputeEnvironmentOrderProperty |
Java | software.amazon.awscdk.mixins.preview.services.batch.mixins.CfnJobQueuePropsMixin.ComputeEnvironmentOrderProperty |
Python | aws_cdk.mixins_preview.aws_batch.mixins.CfnJobQueuePropsMixin.ComputeEnvironmentOrderProperty |
TypeScript | @aws-cdk/mixins-preview » aws_batch » mixins » CfnJobQueuePropsMixin » ComputeEnvironmentOrderProperty |
The order that compute environments are tried in for job placement within a queue.
Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower order integer value is tried for job placement first. Compute environments must be in the VALID state before you can associate them with a job queue. All of the compute environments must be either EC2 ( EC2 or SPOT ) or Fargate ( FARGATE or FARGATE_SPOT ); Amazon EC2 and Fargate compute environments can't be mixed.
All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as batch_mixins } from '@aws-cdk/mixins-preview/aws-batch';
const computeEnvironmentOrderProperty: batch_mixins.CfnJobQueuePropsMixin.ComputeEnvironmentOrderProperty = {
computeEnvironment: 'computeEnvironment',
order: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| compute | string | The Amazon Resource Name (ARN) of the compute environment. |
| order? | number | The order of the compute environment. |
computeEnvironment?
Type:
string
(optional)
The Amazon Resource Name (ARN) of the compute environment.
order?
Type:
number
(optional)
The order of the compute environment.
Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower order integer value is tried for job placement first.

.NET
Go
Java
Python
TypeScript