OrderedComputeEnvironment

class aws_cdk.aws_batch.OrderedComputeEnvironment(*, compute_environment, order)

Bases: object

Assigns an order to a ComputeEnvironment.

The JobQueue will prioritize the lowest-order ComputeEnvironment.

Parameters:
  • compute_environment (IComputeEnvironment) – The ComputeEnvironment to link to this JobQueue.

  • order (Union[int, float]) – The order associated with computeEnvironment.

ExampleMetadata:

fixture=_generated

Example:

# 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

# compute_environment: batch.IComputeEnvironment

ordered_compute_environment = batch.OrderedComputeEnvironment(
    compute_environment=compute_environment,
    order=123
)

Attributes

compute_environment

The ComputeEnvironment to link to this JobQueue.

order

The order associated with computeEnvironment.