Skip to content

Commit 75a6fa7

Browse files
authored
fix(aws_applicationautoscaling): Add missing members to PredefinedMetric enum (#18978)
Five predefined metrics for autoscaling using target tracking metrics are supported by CloudFormation but missing from the CDK enum PredefinedMetric. Fixes #18969 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 66eae6e commit 75a6fa7

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

Diff for: packages/@aws-cdk/aws-applicationautoscaling/lib/target-tracking-scaling-policy.ts

+22-3
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,31 @@ function renderCustomMetric(metric?: cloudwatch.IMetric): CfnScalingPolicy.Custo
184184
*/
185185
export enum PredefinedMetric {
186186
/**
187-
* DYNAMODB_READ_CAPACITY_UTILIZATIO
188-
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
187+
* Average percentage of instances in an AppStream fleet that are being used.
188+
*/
189+
APPSTREAM_AVERAGE_CAPACITY_UTILIZATION = 'AppStreamAverageCapacityUtilization',
190+
/**
191+
* Percentage of provisioned read capacity units utilized by a Keyspaces table.
192+
*/
193+
CASSANDRA_READ_CAPACITY_UTILIZATION = 'CassandraReadCapacityUtilization',
194+
/**
195+
* Percentage of provisioned write capacity units utilized by a Keyspaces table.
196+
*/
197+
CASSANDRA_WRITE_CAPACITY_UTILIZATION = 'CassandraWriteCapacityUtilization',
198+
/**
199+
* Percentage of provisioned inference units utilized by a Comprehend endpoint.
200+
*/
201+
COMPREHEND_INFERENCE_UTILIZATION = 'ComprehendInferenceUtilization',
202+
/**
203+
* Average CPU Utilization of read replica instances in a Neptune DB cluster.
204+
*/
205+
NEPTURE_READER_AVERAGE_CPU_UTILIZATION = 'NeptuneReaderAverageCPUUtilization',
206+
/**
207+
* Percentage of provisioned read capacity units consumed by a DynamoDB table.
189208
*/
190209
DYNAMODB_READ_CAPACITY_UTILIZATION = 'DynamoDBReadCapacityUtilization',
191210
/**
192-
* DYNAMODB_WRITE_CAPACITY_UTILIZATION
211+
* Percentage of provisioned write capacity units consumed by a DynamoDB table.
193212
*
194213
* Suffix `dummy` is necessary due to jsii bug (https://github.com/aws/jsii/issues/2782).
195214
* Duplicate values will be dropped, so this suffix is added as a workaround.

0 commit comments

Comments
 (0)