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,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_batch as batch
from aws_cdk.interfaces import aws_batch as interfaces_batch
# compute_environment_ref: interfaces_batch.IComputeEnvironmentRef
ordered_compute_environment = batch.OrderedComputeEnvironment(
compute_environment=compute_environment_ref,
order=123
)
java
// 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.*;
import software.amazon.awscdk.interfaces.batch.*;
IComputeEnvironmentRef computeEnvironmentRef;
OrderedComputeEnvironment orderedComputeEnvironment = OrderedComputeEnvironment.builder()
.computeEnvironment(computeEnvironmentRef)
.order(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
using Amazon.CDK.Interfaces.Batch;
IComputeEnvironmentRef computeEnvironmentRef;
var orderedComputeEnvironment = new OrderedComputeEnvironment {
ComputeEnvironment = computeEnvironmentRef,
Order = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var computeEnvironmentRef IComputeEnvironmentRef
orderedComputeEnvironment := &OrderedComputeEnvironment{
ComputeEnvironment: computeEnvironmentRef,
Order: jsii.Number(123),
}
Properties
computeEnvironmentIComputeEnvironmentRefcompute_environmentIComputeEnvironmentRefcomputeEnvironmentIComputeEnvironmentRefComputeEnvironmentIComputeEnvironmentRefComputeEnvironmentIComputeEnvironmentRefrequired#The ComputeEnvironment to link to this JobQueue.
The order associated with `computeEnvironment`.