Skip to content
v2.277.0

TaskSetReference Struct ​

A reference to a TaskSet resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as interfaces_ecs } from 'aws-cdk-lib/interfaces';
const taskSetReference: interfaces_ecs.TaskSetReference = {
  cluster: 'cluster',
  service: 'service',
  taskSetId: 'taskSetId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_ecs as interfaces_ecs

task_set_reference = interfaces_ecs.TaskSetReference(
    cluster="cluster",
    service="service",
    task_set_id="taskSetId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.ecs.*;

TaskSetReference taskSetReference = TaskSetReference.builder()
        .cluster("cluster")
        .service("service")
        .taskSetId("taskSetId")
        .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.Interfaces.ECS;

var taskSetReference = new TaskSetReference {
    Cluster = "cluster",
    Service = "service",
    TaskSetId = "taskSetId"
};
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"

taskSetReference := &TaskSetReference{
	Cluster: jsii.String("cluster"),
	Service: jsii.String("service"),
	TaskSetId: jsii.String("taskSetId"),
}

Properties ​

clusterstringclusterstrclusterStringClusterstringCluster*string required #
The Cluster of the TaskSet resource.
servicestringservicestrserviceStringServicestringService*string required #
The Service of the TaskSet resource.
taskSetIdstringtask_set_idstrtaskSetIdStringTaskSetIdstringTaskSetId*string required #
The Id of the TaskSet resource.