CfnPrimaryTaskSetProps Struct
Properties for defining a CfnPrimaryTaskSet.
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 ecs } from 'aws-cdk-lib';
const cfnPrimaryTaskSetProps: ecs.CfnPrimaryTaskSetProps = {
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 import aws_ecs as ecs
cfn_primary_task_set_props = ecs.CfnPrimaryTaskSetProps(
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.services.ecs.*;
CfnPrimaryTaskSetProps cfnPrimaryTaskSetProps = CfnPrimaryTaskSetProps.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.AWS.ECS;
var cfnPrimaryTaskSetProps = new CfnPrimaryTaskSetProps {
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"
cfnPrimaryTaskSetProps := &CfnPrimaryTaskSetProps{
Cluster: jsii.String("cluster"),
Service: jsii.String("service"),
TaskSetId: jsii.String("taskSetId"),
}
Properties
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task set exists in.
The short name or full Amazon Resource Name (ARN) of the service that the task set exists in.
The short name or full Amazon Resource Name (ARN) of the task set to set as the primary task set in the deployment.