Class: Aws::Batch::Types::ComputeEnvironmentOrder

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-batch/types.rb

Overview

The order that compute environments are tried in 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`); Amazon 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>

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#compute_environmentString

The Amazon Resource Name (ARN) of the compute environment.

Returns:

  • (String)


451
452
453
454
455
456
# File 'lib/aws-sdk-batch/types.rb', line 451

class ComputeEnvironmentOrder < Struct.new(
  :order,
  :compute_environment)
  SENSITIVE = []
  include Aws::Structure
end

#orderInteger

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.

Returns:

  • (Integer)


451
452
453
454
455
456
# File 'lib/aws-sdk-batch/types.rb', line 451

class ComputeEnvironmentOrder < Struct.new(
  :order,
  :compute_environment)
  SENSITIVE = []
  include Aws::Structure
end