Class: AWSCDK::Batch::CfnJobQueue::ServiceEnvironmentOrderProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobQueue::ServiceEnvironmentOrderProperty
- Defined in:
- batch/cfn_job_queue.rb
Overview
Specifies the order of a service environment for a job queue.
This determines the priority order when multiple service environments are associated with the same job queue.
Instance Attribute Summary collapse
-
#order ⇒ Numeric
readonly
The order of the service environment.
-
#service_environment ⇒ String
readonly
The name or ARN of the service environment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(order:, service_environment:) ⇒ ServiceEnvironmentOrderProperty
constructor
A new instance of ServiceEnvironmentOrderProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(order:, service_environment:) ⇒ ServiceEnvironmentOrderProperty
Returns a new instance of ServiceEnvironmentOrderProperty.
743 744 745 746 747 748 |
# File 'batch/cfn_job_queue.rb', line 743 def initialize(order:, service_environment:) @order = order Jsii::Type.check_type(@order, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "order") @service_environment = service_environment Jsii::Type.check_type(@service_environment, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceEnvironment") end |
Instance Attribute Details
#order ⇒ Numeric (readonly)
The order of the service environment.
Job queues with a higher priority are evaluated first when associated with the same service environment.
756 757 758 |
# File 'batch/cfn_job_queue.rb', line 756 def order @order end |
#service_environment ⇒ String (readonly)
The name or ARN of the service environment.
761 762 763 |
# File 'batch/cfn_job_queue.rb', line 761 def service_environment @service_environment end |
Class Method Details
.jsii_properties ⇒ Object
763 764 765 766 767 768 |
# File 'batch/cfn_job_queue.rb', line 763 def self.jsii_properties { :order => "order", :service_environment => "serviceEnvironment", } end |
Instance Method Details
#to_jsii ⇒ Object
770 771 772 773 774 775 776 777 |
# File 'batch/cfn_job_queue.rb', line 770 def to_jsii result = {} result.merge!({ "order" => @order, "serviceEnvironment" => @service_environment, }) result.compact end |