Class: AWSCDK::Batch::CfnJobQueue::ComputeEnvironmentOrderProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobQueue::ComputeEnvironmentOrderProperty
- Defined in:
- batch/cfn_job_queue.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.
All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
Instance Attribute Summary collapse
-
#compute_environment ⇒ String
readonly
The Amazon Resource Name (ARN) of the compute environment.
-
#order ⇒ Numeric
readonly
The order of the compute environment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(compute_environment:, order:) ⇒ ComputeEnvironmentOrderProperty
constructor
A new instance of ComputeEnvironmentOrderProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(compute_environment:, order:) ⇒ ComputeEnvironmentOrderProperty
Returns a new instance of ComputeEnvironmentOrderProperty.
627 628 629 630 631 632 |
# File 'batch/cfn_job_queue.rb', line 627 def initialize(compute_environment:, order:) @compute_environment = compute_environment Jsii::Type.check_type(@compute_environment, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "computeEnvironment") @order = order Jsii::Type.check_type(@order, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "order") end |
Instance Attribute Details
#compute_environment ⇒ String (readonly)
The Amazon Resource Name (ARN) of the compute environment.
638 639 640 |
# File 'batch/cfn_job_queue.rb', line 638 def compute_environment @compute_environment end |
#order ⇒ Numeric (readonly)
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.
645 646 647 |
# File 'batch/cfn_job_queue.rb', line 645 def order @order end |
Class Method Details
.jsii_properties ⇒ Object
647 648 649 650 651 652 |
# File 'batch/cfn_job_queue.rb', line 647 def self.jsii_properties { :compute_environment => "computeEnvironment", :order => "order", } end |
Instance Method Details
#to_jsii ⇒ Object
654 655 656 657 658 659 660 661 |
# File 'batch/cfn_job_queue.rb', line 654 def to_jsii result = {} result.merge!({ "computeEnvironment" => @compute_environment, "order" => @order, }) result.compact end |