Skip to content
v2.277.0

ServiceEnvironmentOrderProperty Struct ​

Specifies the order of a service environment for a job queue.

This determines the priority order when multiple service environments are associated with the same job queue.

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';
const serviceEnvironmentOrderProperty: batch.CfnJobQueue.ServiceEnvironmentOrderProperty = {
  order: 123,
  serviceEnvironment: 'serviceEnvironment',
};
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

service_environment_order_property = batch.CfnJobQueue.ServiceEnvironmentOrderProperty(
    order=123,
    service_environment="serviceEnvironment"
)
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.*;

ServiceEnvironmentOrderProperty serviceEnvironmentOrderProperty = ServiceEnvironmentOrderProperty.builder()
        .order(123)
        .serviceEnvironment("serviceEnvironment")
        .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;

var serviceEnvironmentOrderProperty = new ServiceEnvironmentOrderProperty {
    Order = 123,
    ServiceEnvironment = "serviceEnvironment"
};
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"

serviceEnvironmentOrderProperty := &ServiceEnvironmentOrderProperty{
	Order: jsii.Number(123),
	ServiceEnvironment: jsii.String("serviceEnvironment"),
}

Properties ​

ordernumberorderint | floatorderNumberOrderdoubleOrder*float64 required #
The order of the service environment.

Job queues with a higher priority are evaluated first when associated with the same service environment.

serviceEnvironmentstringservice_environmentstrserviceEnvironmentStringServiceEnvironmentstringServiceEnvironment*string required #
The name or ARN of the service environment.