Skip to content

Commit

Permalink
feat(aws-applicationautoscaling): support Lambda and Comprehend (#6191)
Browse files Browse the repository at this point in the history
* feat(aws-applicationautoscaling): support Lambda and Comprehend

Application Auto Scaling supports Lambda and Comprehend services.

* docs(aws-applicationautoscaling): add description on Lambda and Comprehend

This patch adds description on Lambda and Comprehend scalable resources.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
jungseoklee and mergify[bot] authored Feb 18, 2020
1 parent 1811e00 commit bdab747
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-applicationautoscaling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

**Application AutoScaling** is used to configure autoscaling for all
services other than scaling EC2 instances. For example, you will use this to
scale ECS tasks, DynamoDB capacity, Spot Fleet sizes and more.
scale ECS tasks, DynamoDB capacity, Spot Fleet sizes, Comprehend document classification endpoints, Lambda function provisioned concurrency and more.

As a CDK user, you will probably not have to interact with this library
directly; instead, it will be used by other construct libraries to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,14 @@ export enum ServiceNamespace {
* Custom Resource
*/
CUSTOM_RESOURCE = 'custom-resource',

/**
* Lambda
*/
LAMBDA = 'lambda',

/**
* Comprehend
*/
COMPREHEND = 'comprehend',
}
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,18 @@ export = {

test.done();
},

'test service namespace enum'(test: Test) {
test.equals(appscaling.ServiceNamespace.APPSTREAM, 'appstream');
test.equals(appscaling.ServiceNamespace.COMPREHEND, 'comprehend');
test.equals(appscaling.ServiceNamespace.CUSTOM_RESOURCE, 'custom-resource');
test.equals(appscaling.ServiceNamespace.DYNAMODB, 'dynamodb');
test.equals(appscaling.ServiceNamespace.EC2, 'ec2');
test.equals(appscaling.ServiceNamespace.ECS, 'ecs');
test.equals(appscaling.ServiceNamespace.ELASTIC_MAP_REDUCE, 'elasticmapreduce');
test.equals(appscaling.ServiceNamespace.LAMBDA, 'lambda');
test.equals(appscaling.ServiceNamespace.RDS, 'rds');
test.equals(appscaling.ServiceNamespace.SAGEMAKER, 'sagemaker');
test.done();
},
};

0 comments on commit bdab747

Please sign in to comment.