interface ScalableTaskCountProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.ScalableTaskCountProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#ScalableTaskCountProps |
Java | software.amazon.awscdk.services.ecs.ScalableTaskCountProps |
Python | aws_cdk.aws_ecs.ScalableTaskCountProps |
TypeScript (source) | aws-cdk-lib » 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 { 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
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.