# ServiceEnvironmentOrderProperty

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.

- Source: Generated at build time
- Type last changed: v2.211.0 · 13 Aug 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `order`: number (required) — The order of the service environment.

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

- `serviceEnvironment`: string (required) — The name or ARN of the service environment.
