AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::ECS::PrimaryTaskSet

CfnPrimaryTaskSet

Modifies which task set in a service is the primary task set. Any parameters that are updated on the primary task set in a service will transition to the service. This is used when a service uses the `EXTERNAL` deployment controller type. For more information, see [Amazon ECS Deployment Types](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html) in the *Amazon Elastic Container Service Developer Guide* .

Import

import { CfnPrimaryTaskSet } from 'aws-cdk-lib/aws-ecs';

Or use the module namespace:

import * as ecs from 'aws-cdk-lib/aws-ecs';
// ecs.CfnPrimaryTaskSet

Properties

Configuration passed to the constructor as CfnPrimaryTaskSetProps.

clusterRequired
string

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task set exists in.

serviceRequired
string

The short name or full Amazon Resource Name (ARN) of the service that the task set exists in.

taskSetIdRequired
string

The short name or full Amazon Resource Name (ARN) of the task set to set as the primary task set in the deployment.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon ECS Cheat Sheet

Everything you need to know about Amazon ECS on one page. HD quality, print-friendly.

Download Free Infographic