enum ServiceNamespace
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ApplicationAutoScaling.ServiceNamespace |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapplicationautoscaling#ServiceNamespace |
Java | software.amazon.awscdk.services.applicationautoscaling.ServiceNamespace |
Python | aws_cdk.aws_applicationautoscaling.ServiceNamespace |
TypeScript (source) | aws-cdk-lib » aws_applicationautoscaling » ServiceNamespace |
The service that supports Application AutoScaling.
Example
const shardsScalableTarget = new appscaling.ScalableTarget(this, 'ElastiCacheRedisShardsScalableTarget', {
serviceNamespace: appscaling.ServiceNamespace.ELASTICACHE,
scalableDimension: 'elasticache:replication-group:NodeGroups',
minCapacity: 2,
maxCapacity: 10,
resourceId: 'replication-group/main-cluster',
});
shardsScalableTarget.scaleToTrackMetric('ElastiCacheRedisShardsCPUUtilization', {
targetValue: 20,
predefinedMetric: appscaling.PredefinedMetric.ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION,
});
Members
| Name | Description |
|---|---|
| ECS | Elastic Container Service. |
| ELASTIC_MAP_REDUCE | Elastic Map Reduce. |
| EC2 | Elastic Compute Cloud. |
| APPSTREAM | App Stream. |
| DYNAMODB | Dynamo DB. |
| RDS | Relational Database Service. |
| SAGEMAKER | SageMaker. |
| CUSTOM_RESOURCE | Custom Resource. |
| LAMBDA | Lambda. |
| COMPREHEND | Comprehend. |
| KAFKA | Kafka. |
| ELASTICACHE | ElastiCache. |
| NEPTUNE | Neptune. |
| CASSANDRA | Cassandra. |
| WORKSPACES | Workspaces. |
ECS
Elastic Container Service.
ELASTIC_MAP_REDUCE
Elastic Map Reduce.
EC2
Elastic Compute Cloud.
APPSTREAM
App Stream.
DYNAMODB
Dynamo DB.
RDS
Relational Database Service.
SAGEMAKER
SageMaker.
CUSTOM_RESOURCE
Custom Resource.
LAMBDA
Lambda.
COMPREHEND
Comprehend.
KAFKA
Kafka.
ELASTICACHE
ElastiCache.
NEPTUNE
Neptune.
CASSANDRA
Cassandra.
WORKSPACES
Workspaces.

.NET
Go
Java
Python
TypeScript (