@Stability(value=Stable)
public static interface CfnJobQueue.ComputeEnvironmentOrderProperty
extends software.amazon.jsii.JsiiSerializable
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 ); 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 software.amazon.awscdk.services.batch.*;
ComputeEnvironmentOrderProperty computeEnvironmentOrderProperty = ComputeEnvironmentOrderProperty.builder()
.computeEnvironment("computeEnvironment")
.order(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnJobQueue.ComputeEnvironmentOrderProperty.Builder
A builder for
CfnJobQueue.ComputeEnvironmentOrderProperty |
static class |
CfnJobQueue.ComputeEnvironmentOrderProperty.Jsii$Proxy
An implementation for
CfnJobQueue.ComputeEnvironmentOrderProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnJobQueue.ComputeEnvironmentOrderProperty.Builder |
builder() |
String |
getComputeEnvironment()
The Amazon Resource Name (ARN) of the compute environment.
|
Number |
getOrder()
The order of the compute environment.
|
@Stability(value=Stable) @NotNull String getComputeEnvironment()
@Stability(value=Stable) @NotNull Number getOrder()
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.
@Stability(value=Stable) static CfnJobQueue.ComputeEnvironmentOrderProperty.Builder builder()
Copyright © 2022. All rights reserved.