# PrimaryTaskSetReference

A reference to a PrimaryTaskSet 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 primaryTaskSetReference: interfaces_ecs.PrimaryTaskSetReference = {
  cluster: 'cluster',
  service: 'service',
};
```

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

primary_task_set_reference = interfaces_ecs.PrimaryTaskSetReference(
    cluster="cluster",
    service="service"
)
```

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.*;

PrimaryTaskSetReference primaryTaskSetReference = PrimaryTaskSetReference.builder()
        .cluster("cluster")
        .service("service")
        .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 primaryTaskSetReference = new PrimaryTaskSetReference {
    Cluster = "cluster",
    Service = "service"
};
```

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"

primaryTaskSetReference := &PrimaryTaskSetReference{
	Cluster: jsii.String("cluster"),
	Service: jsii.String("service"),
}
```

## Properties

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

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