Class: AWSCDK::Interfaces::AWSECS::TaskSetReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSECS::TaskSetReference
- Defined in:
- interfaces/awsecs/task_set_reference.rb
Overview
A reference to a TaskSet resource.
Instance Attribute Summary collapse
-
#cluster ⇒ String
readonly
The Cluster of the TaskSet resource.
-
#service ⇒ String
readonly
The Service of the TaskSet resource.
-
#task_set_id ⇒ String
readonly
The Id of the TaskSet resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster:, service:, task_set_id:) ⇒ TaskSetReference
constructor
A new instance of TaskSetReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster:, service:, task_set_id:) ⇒ TaskSetReference
Returns a new instance of TaskSetReference.
10 11 12 13 14 15 16 17 |
# File 'interfaces/awsecs/task_set_reference.rb', line 10 def initialize(cluster:, service:, task_set_id:) @cluster = cluster Jsii::Type.check_type(@cluster, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cluster") @service = service Jsii::Type.check_type(@service, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "service") @task_set_id = task_set_id Jsii::Type.check_type(@task_set_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "taskSetId") end |
Instance Attribute Details
#cluster ⇒ String (readonly)
The Cluster of the TaskSet resource.
22 23 24 |
# File 'interfaces/awsecs/task_set_reference.rb', line 22 def cluster @cluster end |
#service ⇒ String (readonly)
The Service of the TaskSet resource.
26 27 28 |
# File 'interfaces/awsecs/task_set_reference.rb', line 26 def service @service end |
#task_set_id ⇒ String (readonly)
The Id of the TaskSet resource.
30 31 32 |
# File 'interfaces/awsecs/task_set_reference.rb', line 30 def task_set_id @task_set_id end |
Class Method Details
.jsii_properties ⇒ Object
32 33 34 35 36 37 38 |
# File 'interfaces/awsecs/task_set_reference.rb', line 32 def self.jsii_properties { :cluster => "cluster", :service => "service", :task_set_id => "taskSetId", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'interfaces/awsecs/task_set_reference.rb', line 40 def to_jsii result = {} result.merge!({ "cluster" => @cluster, "service" => @service, "taskSetId" => @task_set_id, }) result.compact end |