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

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

Overview

Note:

When making an API call, you may pass ComputeEnvironmentOrder data as a hash:

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

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.

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#compute_environmentString

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

Returns:

  • (String)


346
347
348
349
350
351
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 346

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)


346
347
348
349
350
351
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 346

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