Class: AWSCDK::Interfaces::AWSECS::PrimaryTaskSetReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awsecs/primary_task_set_reference.rb

Overview

A reference to a PrimaryTaskSet resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster:, service:) ⇒ PrimaryTaskSetReference

Returns a new instance of PrimaryTaskSetReference.

Parameters:

  • cluster (String)

    The Cluster of the PrimaryTaskSet resource.

  • service (String)

    The Service of the PrimaryTaskSet resource.



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

#clusterString (readonly)

The Cluster of the PrimaryTaskSet resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/awsecs/primary_task_set_reference.rb', line 19

def cluster
  @cluster
end

#serviceString (readonly)

The Service of the PrimaryTaskSet resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/awsecs/primary_task_set_reference.rb', line 23

def service
  @service
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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