class Aws::Batch::Types::ComputeEnvironmentOrder

The order in which compute environments are tried for job placement within a queue. 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.

<note markdown=“1”> All compute environments that are associated with a job queue must share the same architecture. Batch doesn't support mixing compute environment architecture types in a single job queue.

</note>

@note When making an API call, you may pass ComputeEnvironmentOrder

data as a hash:

    {
      order: 1, # required
      compute_environment: "String", # required
    }

@!attribute [rw] order

The order of the compute environment. 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.
@return [Integer]

@!attribute [rw] compute_environment

The Amazon Resource Name (ARN) of the compute environment.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ComputeEnvironmentOrder AWS API Documentation

Constants

SENSITIVE