Class: AWSCDK::Batch::CfnJobQueue::ServiceEnvironmentOrderProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(order:, service_environment:) ⇒ ServiceEnvironmentOrderProperty

Returns a new instance of ServiceEnvironmentOrderProperty.

Parameters:

  • order (Numeric)

    The order of the service environment.

  • service_environment (String)

    The name or ARN of the service environment.



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

#orderNumeric (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_environmentString (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_propertiesObject



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_jsiiObject



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