Skip to content
v2.277.0

ECSServiceProperty Struct ​

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

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const eCSServiceProperty: codedeploy.CfnDeploymentGroup.ECSServiceProperty = {
  clusterName: 'clusterName',
  serviceName: 'serviceName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codedeploy as codedeploy

e_cs_service_property = codedeploy.CfnDeploymentGroup.ECSServiceProperty(
    cluster_name="clusterName",
    service_name="serviceName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codedeploy.*;

ECSServiceProperty eCSServiceProperty = ECSServiceProperty.builder()
        .clusterName("clusterName")
        .serviceName("serviceName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeDeploy;

var eCSServiceProperty = new ECSServiceProperty {
    ClusterName = "clusterName",
    ServiceName = "serviceName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

eCSServiceProperty := &ECSServiceProperty{
	ClusterName: jsii.String("clusterName"),
	ServiceName: jsii.String("serviceName"),
}

Properties ​

clusterNamestringcluster_namestrclusterNameStringClusterNamestringClusterName*stringrequired#
The name of the cluster that the Amazon ECS service is associated with.
serviceNamestringservice_namestrserviceNameStringServiceNamestringServiceName*stringrequired#
The name of the target Amazon ECS service.