# TaskSetReference

A reference to a TaskSet resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `cluster`: string (required) — The Cluster of the TaskSet resource.

- `service`: string (required) — The Service of the TaskSet resource.

- `taskSetId`: string (required) — The Id of the TaskSet resource.
