ServiceNamespace

class aws_cdk.aws_applicationautoscaling.ServiceNamespace(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

The service that supports Application AutoScaling.

ExampleMetadata:

infused

Example:

shards_scalable_target = appscaling.ScalableTarget(self, "ElastiCacheRedisShardsScalableTarget",
    service_namespace=appscaling.ServiceNamespace.ELASTICACHE,
    scalable_dimension="elasticache:replication-group:NodeGroups",
    min_capacity=2,
    max_capacity=10,
    resource_id="replication-group/main-cluster"
)

shards_scalable_target.scale_to_track_metric("ElastiCacheRedisShardsCPUUtilization",
    target_value=20,
    predefined_metric=appscaling.PredefinedMetric.ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION
)

Attributes

APPSTREAM

App Stream.

COMPREHEND

Comprehend.

CUSTOM_RESOURCE

Custom Resource.

DYNAMODB

Dynamo DB.

EC2

Elastic Compute Cloud.

ECS

Elastic Container Service.

ELASTICACHE

ElastiCache.

ELASTIC_MAP_REDUCE

Elastic Map Reduce.

KAFKA

Kafka.

LAMBDA

Lambda.

NEPTUNE

Neptune.

RDS

Relational Database Service.

SAGEMAKER

SageMaker.