interface ScalableTaskCountProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.ScalableTaskCountProps |
Java | software.amazon.awscdk.services.ecs.ScalableTaskCountProps |
Python | aws_cdk.aws_ecs.ScalableTaskCountProps |
TypeScript (source) | @aws-cdk/aws-ecs » ScalableTaskCountProps |
The properties of a scalable attribute representing task count.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as appscaling from '@aws-cdk/aws-applicationautoscaling';
import * as ecs from '@aws-cdk/aws-ecs';
import * as iam from '@aws-cdk/aws-iam';
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
Name | Type | Description |
---|---|---|
dimension | string | Scalable dimension of the attribute. |
max | number | Maximum capacity to scale to. |
resource | string | Resource ID of the attribute. |
role | IRole | Role to use for scaling. |
service | Service | Service namespace of the scalable attribute. |
min | number | Minimum capacity to scale to. |
dimension
Type:
string
Scalable dimension of the attribute.
maxCapacity
Type:
number
Maximum capacity to scale to.
resourceId
Type:
string
Resource ID of the attribute.
role
Type:
IRole
Role to use for scaling.
serviceNamespace
Type:
Service
Service namespace of the scalable attribute.
minCapacity?
Type:
number
(optional, default: 1)
Minimum capacity to scale to.