Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::ECSServiceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_deploy/cfn_deployment_group.rb

Overview

Contains the service and cluster names used to identify an Amazon ECS deployment's target.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_name:, service_name:) ⇒ ECSServiceProperty

Returns a new instance of ECSServiceProperty.

Parameters:

  • cluster_name (String)

    The name of the cluster that the Amazon ECS service is associated with.

  • service_name (String)

    The name of the target Amazon ECS service.



1310
1311
1312
1313
1314
1315
# File 'code_deploy/cfn_deployment_group.rb', line 1310

def initialize(cluster_name:, service_name:)
  @cluster_name = cluster_name
  Jsii::Type.check_type(@cluster_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterName")
  @service_name = service_name
  Jsii::Type.check_type(@service_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceName")
end

Instance Attribute Details

#cluster_nameString (readonly)

The name of the cluster that the Amazon ECS service is associated with.



1321
1322
1323
# File 'code_deploy/cfn_deployment_group.rb', line 1321

def cluster_name
  @cluster_name
end

#service_nameString (readonly)

The name of the target Amazon ECS service.



1326
1327
1328
# File 'code_deploy/cfn_deployment_group.rb', line 1326

def service_name
  @service_name
end

Class Method Details

.jsii_propertiesObject



1328
1329
1330
1331
1332
1333
# File 'code_deploy/cfn_deployment_group.rb', line 1328

def self.jsii_properties
  {
    :cluster_name => "clusterName",
    :service_name => "serviceName",
  }
end

Instance Method Details

#to_jsiiObject



1335
1336
1337
1338
1339
1340
1341
1342
# File 'code_deploy/cfn_deployment_group.rb', line 1335

def to_jsii
  result = {}
  result.merge!({
    "clusterName" => @cluster_name,
    "serviceName" => @service_name,
  })
  result.compact
end