interface IScalableFunctionAttribute
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lambda.IScalableFunctionAttribute |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#IScalableFunctionAttribute |
Java | software.amazon.awscdk.services.lambda.IScalableFunctionAttribute |
Python | aws_cdk.aws_lambda.IScalableFunctionAttribute |
TypeScript (source) | aws-cdk-lib » aws_lambda » IScalableFunctionAttribute |
Implements
IDependable, IConstruct
Obtainable from
Alias.addAutoScaling()
Interface for scalable attributes.
Properties
| Name | Type | Description |
|---|---|---|
| node | Node | The tree node. |
node
Type:
Node
The tree node.
Methods
| Name | Description |
|---|---|
| scale | Scale out or in based on schedule. |
| scale | Scale out or in to keep utilization at a given level. |
| with(...mixins) | Applies one or more mixins to this construct. |
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
with(...mixins)
public with(...mixins: IMixin[]): IConstruct
Parameters
- mixins
IMixin— The mixins to apply.
Returns
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited.

.NET
Go
Java
Python
TypeScript (