# ServiceNamespace

The service that supports Application AutoScaling.

- Source: [`aws-applicationautoscaling/lib/scalable-target.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-applicationautoscaling/lib/scalable-target.ts#L326)
- Type last changed: v2.182.0 · 5 Mar 2025

## Example

```ts
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

| Member | 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. |

## Referenced by

- [`BaseScalableAttributeProps`](/v2/docs/aws-cdk-lib.aws_applicationautoscaling.BaseScalableAttributeProps).serviceNamespace
- [`ScalableTargetProps`](/v2/docs/aws-cdk-lib.aws_applicationautoscaling.ScalableTargetProps).serviceNamespace
