libZSservicesZSamazonka-batchZSamazonka-batch
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Batch.Types.ComputeEnvironmentOrder

Description

 
Synopsis

Documentation

data ComputeEnvironmentOrder Source #

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.

See: newComputeEnvironmentOrder smart constructor.

Constructors

ComputeEnvironmentOrder' 

Fields

  • order :: Int

    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.

  • computeEnvironment :: Text

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

Instances

Instances details
Eq ComputeEnvironmentOrder Source # 
Instance details

Defined in Amazonka.Batch.Types.ComputeEnvironmentOrder

Read ComputeEnvironmentOrder Source # 
Instance details

Defined in Amazonka.Batch.Types.ComputeEnvironmentOrder

Show ComputeEnvironmentOrder Source # 
Instance details

Defined in Amazonka.Batch.Types.ComputeEnvironmentOrder

Generic ComputeEnvironmentOrder Source # 
Instance details

Defined in Amazonka.Batch.Types.ComputeEnvironmentOrder

Associated Types

type Rep ComputeEnvironmentOrder :: Type -> Type #

NFData ComputeEnvironmentOrder Source # 
Instance details

Defined in Amazonka.Batch.Types.ComputeEnvironmentOrder

Methods

rnf :: ComputeEnvironmentOrder -> () #

Hashable ComputeEnvironmentOrder Source # 
Instance details

Defined in Amazonka.Batch.Types.ComputeEnvironmentOrder

ToJSON ComputeEnvironmentOrder Source # 
Instance details

Defined in Amazonka.Batch.Types.ComputeEnvironmentOrder

FromJSON ComputeEnvironmentOrder Source # 
Instance details

Defined in Amazonka.Batch.Types.ComputeEnvironmentOrder

type Rep ComputeEnvironmentOrder Source # 
Instance details

Defined in Amazonka.Batch.Types.ComputeEnvironmentOrder

type Rep ComputeEnvironmentOrder = D1 ('MetaData "ComputeEnvironmentOrder" "Amazonka.Batch.Types.ComputeEnvironmentOrder" "libZSservicesZSamazonka-batchZSamazonka-batch" 'False) (C1 ('MetaCons "ComputeEnvironmentOrder'" 'PrefixI 'True) (S1 ('MetaSel ('Just "order") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "computeEnvironment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newComputeEnvironmentOrder Source #

Create a value of ComputeEnvironmentOrder with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:order:ComputeEnvironmentOrder', computeEnvironmentOrder_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.

$sel:computeEnvironment:ComputeEnvironmentOrder', computeEnvironmentOrder_computeEnvironment - The Amazon Resource Name (ARN) of the compute environment.

computeEnvironmentOrder_order :: Lens' ComputeEnvironmentOrder Int Source #

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.

computeEnvironmentOrder_computeEnvironment :: Lens' ComputeEnvironmentOrder Text Source #

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