enum PredefinedMetric
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ApplicationAutoScaling.PredefinedMetric |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapplicationautoscaling#PredefinedMetric |
Java | software.amazon.awscdk.services.applicationautoscaling.PredefinedMetric |
Python | aws_cdk.aws_applicationautoscaling.PredefinedMetric |
TypeScript (source) | aws-cdk-lib » aws_applicationautoscaling » PredefinedMetric |
One of the predefined autoscaling metrics.
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 |
---|---|
APPSTREAM_AVERAGE_CAPACITY_UTILIZATION | Average percentage of instances in an AppStream fleet that are being used. |
CASSANDRA_READ_CAPACITY_UTILIZATION | Percentage of provisioned read capacity units utilized by a Keyspaces table. |
CASSANDRA_WRITE_CAPACITY_UTILIZATION | Percentage of provisioned write capacity units utilized by a Keyspaces table. |
COMPREHEND_INFERENCE_UTILIZATION | Percentage of provisioned inference units utilized by a Comprehend endpoint. |
NEPTURE_READER_AVERAGE_CPU_UTILIZATION | Average CPU Utilization of read replica instances in a Neptune DB cluster. |
DYNAMODB_READ_CAPACITY_UTILIZATION | Percentage of provisioned read capacity units consumed by a DynamoDB table. |
DYNAMODB_WRITE_CAPACITY_UTILIZATION | Percentage of provisioned write capacity units consumed by a DynamoDB table. |
DYANMODB_WRITE_CAPACITY_UTILIZATION | DYANMODB_WRITE_CAPACITY_UTILIZATION. |
ALB_REQUEST_COUNT_PER_TARGET | ALB_REQUEST_COUNT_PER_TARGET. |
RDS_READER_AVERAGE_CPU_UTILIZATION | RDS_READER_AVERAGE_CPU_UTILIZATION. |
RDS_READER_AVERAGE_DATABASE_CONNECTIONS | RDS_READER_AVERAGE_DATABASE_CONNECTIONS. |
EC2_SPOT_FLEET_REQUEST_AVERAGE_CPU_UTILIZATION | EC2_SPOT_FLEET_REQUEST_AVERAGE_CPU_UTILIZATION. |
EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_IN | EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_IN. |
EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_OUT | EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_OUT. |
SAGEMAKER_VARIANT_INVOCATIONS_PER_INSTANCE | SAGEMAKER_VARIANT_INVOCATIONS_PER_INSTANCE. |
SAGEMAKER_VARIANT_PROVISIONED_CONCURRENCY_UTILIZATION | SAGEMAKER_VARIANT_PROVISIONED_CONCURRENCY_UTILIZATION. |
SAGEMAKER_INFERENCE_COMPONENT_INVOCATIONS_PER_COPY | SAGEMAKER_INFERENCE_COMPONENT_INVOCATIONS_PER_COPY. |
ECS_SERVICE_AVERAGE_CPU_UTILIZATION | ECS_SERVICE_AVERAGE_CPU_UTILIZATION. |
ECS_SERVICE_AVERAGE_MEMORY_UTILIZATION | ECS_SERVICE_AVERAGE_MEMORY_UTILIZATION. |
LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION | LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION. |
KAFKA_BROKER_STORAGE_UTILIZATION | KAFKA_BROKER_STORAGE_UTILIZATION. |
ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION | ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION. |
ELASTICACHE_REPLICA_ENGINE_CPU_UTILIZATION | ELASTICACHE_REPLICA_ENGINE_CPU_UTILIZATION. |
ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE | ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE. |
ELASTICACHE_DATABASE_CAPACITY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE | ELASTICACHE_DATABASE_CAPACITY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE. |
SAGEMAKER_INFERENCE_COMPONENT_CONCURRENT_REQUESTS_PER_COPY_HIGH_RESOLUTION | SAGEMAKER_INFERENCE_COMPONENT_CONCURRENT_REQUESTS_PER_COPY_HIGH_RESOLUTION. |
SAGEMAKER_VARIANT_CONCURRENT_REQUESTS_PER_MODEL_HIGH_RESOLUTION | SAGEMAKER_VARIANT_CONCURRENT_REQUESTS_PER_MODEL_HIGH_RESOLUTION. |
WORKSPACES_AVERAGE_USER_SESSIONS_CAPACITY_UTILIZATION | WORKSPACES_AVERAGE_USER_SESSIONS_CAPACITY_UTILIZATION. |
APPSTREAM_AVERAGE_CAPACITY_UTILIZATION
Average percentage of instances in an AppStream fleet that are being used.
CASSANDRA_READ_CAPACITY_UTILIZATION
Percentage of provisioned read capacity units utilized by a Keyspaces table.
CASSANDRA_WRITE_CAPACITY_UTILIZATION
Percentage of provisioned write capacity units utilized by a Keyspaces table.
COMPREHEND_INFERENCE_UTILIZATION
Percentage of provisioned inference units utilized by a Comprehend endpoint.
NEPTURE_READER_AVERAGE_CPU_UTILIZATION
Average CPU Utilization of read replica instances in a Neptune DB cluster.
DYNAMODB_READ_CAPACITY_UTILIZATION
Percentage of provisioned read capacity units consumed by a DynamoDB table.
DYNAMODB_WRITE_CAPACITY_UTILIZATION
Percentage of provisioned write capacity units consumed by a DynamoDB table.
Suffix dummy
is necessary due to jsii bug (https://github.com/aws/jsii/issues/2782).
Duplicate values will be dropped, so this suffix is added as a workaround.
The value will be replaced when this enum is used.
DYANMODB_WRITE_CAPACITY_UTILIZATION
DYANMODB_WRITE_CAPACITY_UTILIZATION.
ALB_REQUEST_COUNT_PER_TARGET
ALB_REQUEST_COUNT_PER_TARGET.
RDS_READER_AVERAGE_CPU_UTILIZATION
RDS_READER_AVERAGE_CPU_UTILIZATION.
RDS_READER_AVERAGE_DATABASE_CONNECTIONS
RDS_READER_AVERAGE_DATABASE_CONNECTIONS.
EC2_SPOT_FLEET_REQUEST_AVERAGE_CPU_UTILIZATION
EC2_SPOT_FLEET_REQUEST_AVERAGE_CPU_UTILIZATION.
EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_IN
EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_IN.
EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_OUT
EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_OUT.
SAGEMAKER_VARIANT_INVOCATIONS_PER_INSTANCE
SAGEMAKER_VARIANT_INVOCATIONS_PER_INSTANCE.
SAGEMAKER_VARIANT_PROVISIONED_CONCURRENCY_UTILIZATION
SAGEMAKER_VARIANT_PROVISIONED_CONCURRENCY_UTILIZATION.
SAGEMAKER_INFERENCE_COMPONENT_INVOCATIONS_PER_COPY
SAGEMAKER_INFERENCE_COMPONENT_INVOCATIONS_PER_COPY.
ECS_SERVICE_AVERAGE_CPU_UTILIZATION
ECS_SERVICE_AVERAGE_CPU_UTILIZATION.
ECS_SERVICE_AVERAGE_MEMORY_UTILIZATION
ECS_SERVICE_AVERAGE_MEMORY_UTILIZATION.
LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION
LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION.
KAFKA_BROKER_STORAGE_UTILIZATION
KAFKA_BROKER_STORAGE_UTILIZATION.
ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION
ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION.
ELASTICACHE_REPLICA_ENGINE_CPU_UTILIZATION
ELASTICACHE_REPLICA_ENGINE_CPU_UTILIZATION.
ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE
ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE.
ELASTICACHE_DATABASE_CAPACITY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE
ELASTICACHE_DATABASE_CAPACITY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE.
SAGEMAKER_INFERENCE_COMPONENT_CONCURRENT_REQUESTS_PER_COPY_HIGH_RESOLUTION
SAGEMAKER_INFERENCE_COMPONENT_CONCURRENT_REQUESTS_PER_COPY_HIGH_RESOLUTION.
SAGEMAKER_VARIANT_CONCURRENT_REQUESTS_PER_MODEL_HIGH_RESOLUTION
SAGEMAKER_VARIANT_CONCURRENT_REQUESTS_PER_MODEL_HIGH_RESOLUTION.
WORKSPACES_AVERAGE_USER_SESSIONS_CAPACITY_UTILIZATION
WORKSPACES_AVERAGE_USER_SESSIONS_CAPACITY_UTILIZATION.