Class: AWSCDK::ECS::CfnPrimaryTaskSetProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecs/cfn_primary_task_set_props.rb

Overview

Properties for defining a CfnPrimaryTaskSet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CfnPrimaryTaskSetProps.

Parameters:

  • cluster (String)

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task set exists in.

  • service (String)

    The short name or full Amazon Resource Name (ARN) of the service that the task set exists in.

  • task_set_id (String)

    The short name or full Amazon Resource Name (ARN) of the task set to set as the primary task set in the deployment.



12
13
14
15
16
17
18
19
# File 'ecs/cfn_primary_task_set_props.rb', line 12

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 short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task set exists in.



25
26
27
# File 'ecs/cfn_primary_task_set_props.rb', line 25

def cluster
  @cluster
end

#serviceString (readonly)

The short name or full Amazon Resource Name (ARN) of the service that the task set exists in.



30
31
32
# File 'ecs/cfn_primary_task_set_props.rb', line 30

def service
  @service
end

#task_set_idString (readonly)

The short name or full Amazon Resource Name (ARN) of the task set to set as the primary task set in the deployment.



35
36
37
# File 'ecs/cfn_primary_task_set_props.rb', line 35

def task_set_id
  @task_set_id
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
# File 'ecs/cfn_primary_task_set_props.rb', line 37

def self.jsii_properties
  {
    :cluster => "cluster",
    :service => "service",
    :task_set_id => "taskSetId",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
53
# File 'ecs/cfn_primary_task_set_props.rb', line 45

def to_jsii
  result = {}
  result.merge!({
    "cluster" => @cluster,
    "service" => @service,
    "taskSetId" => @task_set_id,
  })
  result.compact
end