Skip to content
v2.277.0

PrimaryTaskSetReference Struct ​

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

clusterstringclusterstrclusterStringClusterstringCluster*string required #
The Cluster of the PrimaryTaskSet resource.
servicestringservicestrserviceStringServicestringService*string required #
The Service of the PrimaryTaskSet resource.