interface IScalableFunctionAttribute
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lambda.IScalableFunctionAttribute |
Java | software.amazon.awscdk.services.lambda.IScalableFunctionAttribute |
Python | aws_cdk.aws_lambda.IScalableFunctionAttribute |
TypeScript (source) | @aws-cdk/aws-lambda » IScalableFunctionAttribute |
Obtainable from
Alias.addAutoScaling()
Interface for scalable attributes.
Properties
| Name | Type | Description |
|---|---|---|
| node | Construct | The construct tree node for this construct. |
node
Type:
Construct
The construct tree node for this construct.
Methods
| Name | Description |
|---|---|
| scale | Scale out or in based on schedule. |
| scale | Scale out or in to keep utilization at a given level. |
scaleOnSchedule(id, actions)
public scaleOnSchedule(id: string, actions: ScalingSchedule): void
Parameters
- id
string - actions
ScalingSchedule
Scale out or in based on schedule.
scaleOnUtilization(options)
public scaleOnUtilization(options: UtilizationScalingOptions): void
Parameters
- options
UtilizationScaling Options
Scale out or in to keep utilization at a given level.
The utilization is tracked by the LambdaProvisionedConcurrencyUtilization metric, emitted by lambda. See: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics.html#monitoring-metrics-concurrency

.NET
Java
Python
TypeScript (