Class: AWSCDK::Deadline::CfnQueueEnvironmentProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
deadline/cfn_queue_environment_props.rb

Overview

Properties for defining a CfnQueueEnvironment.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(farm_id:, priority:, queue_id:, template:, template_type:) ⇒ CfnQueueEnvironmentProps

Returns a new instance of CfnQueueEnvironmentProps.

Parameters:

  • farm_id (String)

    The identifier assigned to the farm that contains the queue.

  • priority (Numeric)

    The queue environment's priority.

  • queue_id (String)

    The unique identifier of the queue that contains the environment.

  • template (String)

    A JSON or YAML template that describes the processing environment for the queue.

  • template_type (String)

    Specifies whether the template for the queue environment is JSON or YAML.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'deadline/cfn_queue_environment_props.rb', line 14

def initialize(farm_id:, priority:, queue_id:, template:, template_type:)
  @farm_id = farm_id
  Jsii::Type.check_type(@farm_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "farmId")
  @priority = priority
  Jsii::Type.check_type(@priority, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "priority")
  @queue_id = queue_id
  Jsii::Type.check_type(@queue_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "queueId")
  @template = template
  Jsii::Type.check_type(@template, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "template")
  @template_type = template_type
  Jsii::Type.check_type(@template_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "templateType")
end

Instance Attribute Details

#farm_idString (readonly)

The identifier assigned to the farm that contains the queue.



31
32
33
# File 'deadline/cfn_queue_environment_props.rb', line 31

def farm_id
  @farm_id
end

#priorityNumeric (readonly)

The queue environment's priority.



36
37
38
# File 'deadline/cfn_queue_environment_props.rb', line 36

def priority
  @priority
end

#queue_idString (readonly)

The unique identifier of the queue that contains the environment.



41
42
43
# File 'deadline/cfn_queue_environment_props.rb', line 41

def queue_id
  @queue_id
end

#templateString (readonly)

A JSON or YAML template that describes the processing environment for the queue.



46
47
48
# File 'deadline/cfn_queue_environment_props.rb', line 46

def template
  @template
end

#template_typeString (readonly)

Specifies whether the template for the queue environment is JSON or YAML.



51
52
53
# File 'deadline/cfn_queue_environment_props.rb', line 51

def template_type
  @template_type
end

Class Method Details

.jsii_propertiesObject



53
54
55
56
57
58
59
60
61
# File 'deadline/cfn_queue_environment_props.rb', line 53

def self.jsii_properties
  {
    :farm_id => "farmId",
    :priority => "priority",
    :queue_id => "queueId",
    :template => "template",
    :template_type => "templateType",
  }
end

Instance Method Details

#to_jsiiObject



63
64
65
66
67
68
69
70
71
72
73
# File 'deadline/cfn_queue_environment_props.rb', line 63

def to_jsii
  result = {}
  result.merge!({
    "farmId" => @farm_id,
    "priority" => @priority,
    "queueId" => @queue_id,
    "template" => @template,
    "templateType" => @template_type,
  })
  result.compact
end