Class: AWSCDK::ECS::CfnPrimaryTaskSetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnPrimaryTaskSetProps
- Defined in:
- ecs/cfn_primary_task_set_props.rb
Overview
Properties for defining a CfnPrimaryTaskSet.
Instance Attribute Summary collapse
-
#cluster ⇒ String
readonly
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task set exists in.
-
#service ⇒ String
readonly
The short name or full Amazon Resource Name (ARN) of the service that the task set exists in.
-
#task_set_id ⇒ String
readonly
The short name or full Amazon Resource Name (ARN) of the task set to set as the primary task set in the deployment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster:, service:, task_set_id:) ⇒ CfnPrimaryTaskSetProps
constructor
A new instance of CfnPrimaryTaskSetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster:, service:, task_set_id:) ⇒ CfnPrimaryTaskSetProps
Returns a new instance of CfnPrimaryTaskSetProps.
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
#cluster ⇒ String (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 |
#service ⇒ String (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_id ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |