# ScalableTaskCountProps

The properties of a scalable attribute representing task count.

Extends: ScalableTaskCountProps
Extends: BaseScalableAttributeProps
Used as props by: ScalableTaskCount

- Source: [`aws-ecs/lib/base/scalable-task-count.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ecs/lib/base/scalable-task-count.ts#L9)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationautoscaling as appscaling } from 'aws-cdk-lib';
import { aws_ecs as ecs } from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const role: iam.Role;
const scalableTaskCountProps: ecs.ScalableTaskCountProps = {
  dimension: 'dimension',
  maxCapacity: 123,
  resourceId: 'resourceId',
  role: role,
  serviceNamespace: appscaling.ServiceNamespace.ECS,

  // the properties below are optional
  minCapacity: 123,
};
```

## Properties

- `dimension`: string (required) — Scalable dimension of the attribute.

- `maxCapacity`: number (required) — Maximum capacity to scale to.

- `minCapacity`: number = 1 — Minimum capacity to scale to.

- `resourceId`: string (required) — Resource ID of the attribute.

- `role`: [IRole](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) (required) — Role to use for scaling.

- `serviceNamespace`: [ServiceNamespace](/cdk/api/v2/docs/aws-cdk-lib.aws_applicationautoscaling.ServiceNamespace.html) (required) — Service namespace of the scalable attribute.
