AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

ScalableTaskCount

The scalable attribute representing task count.

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as ScalableTaskCountProps.

4 properties inherited from BaseScalableAttributeProps
dimensionRequiredinherited from BaseScalableAttributeProps
string

Scalable dimension of the attribute.

resourceIdRequiredinherited from BaseScalableAttributeProps
string

Resource ID of the attribute.

roleRequiredinherited from BaseScalableAttributeProps
IRole

Role to use for scaling.

serviceNamespaceRequiredinherited from BaseScalableAttributeProps
ServiceNamespace

Service namespace of the scalable attribute.

2 properties inherited from EnableScalingProps
maxCapacityRequiredinherited from EnableScalingProps
number

Maximum capacity to scale to.

minCapacityOptionalinherited from EnableScalingProps
number

Minimum capacity to scale to.

Default: 1

Get the Amazon ECS Cheat Sheet

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

Download Free Infographic