Class: AWSCDK::Interfaces::AWSECS::PrimaryTaskSetReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSECS::PrimaryTaskSetReference
- Defined in:
- interfaces/awsecs/primary_task_set_reference.rb
Overview
A reference to a PrimaryTaskSet resource.
Instance Attribute Summary collapse
-
#cluster ⇒ String
readonly
The Cluster of the PrimaryTaskSet resource.
-
#service ⇒ String
readonly
The Service of the PrimaryTaskSet resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster:, service:) ⇒ PrimaryTaskSetReference
constructor
A new instance of PrimaryTaskSetReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster:, service:) ⇒ PrimaryTaskSetReference
Returns a new instance of PrimaryTaskSetReference.
9 10 11 12 13 14 |
# File 'interfaces/awsecs/primary_task_set_reference.rb', line 9 def initialize(cluster:, service:) @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") end |
Instance Attribute Details
#cluster ⇒ String (readonly)
The Cluster of the PrimaryTaskSet resource.
19 20 21 |
# File 'interfaces/awsecs/primary_task_set_reference.rb', line 19 def cluster @cluster end |
#service ⇒ String (readonly)
The Service of the PrimaryTaskSet resource.
23 24 25 |
# File 'interfaces/awsecs/primary_task_set_reference.rb', line 23 def service @service end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/awsecs/primary_task_set_reference.rb', line 25 def self.jsii_properties { :cluster => "cluster", :service => "service", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/awsecs/primary_task_set_reference.rb', line 32 def to_jsii result = {} result.merge!({ "cluster" => @cluster, "service" => @service, }) result.compact end |