Class: AWSCDK::Interfaces::AWSECS::TaskSetReference

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

Overview

A reference to a TaskSet resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster:, service:, task_set_id:) ⇒ TaskSetReference

Returns a new instance of TaskSetReference.

Parameters:

  • cluster (String)

    The Cluster of the TaskSet resource.

  • service (String)

    The Service of the TaskSet resource.

  • task_set_id (String)

    The Id of the TaskSet resource.



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

#clusterString (readonly)

The Cluster of the TaskSet resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/awsecs/task_set_reference.rb', line 22

def cluster
  @cluster
end

#serviceString (readonly)

The Service of the TaskSet resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/awsecs/task_set_reference.rb', line 26

def service
  @service
end

#task_set_idString (readonly)

The Id of the TaskSet resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/awsecs/task_set_reference.rb', line 30

def task_set_id
  @task_set_id
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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