interface IScalableFunctionAttribute
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Lambda.IScalableFunctionAttribute |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#IScalableFunctionAttribute |
![]() | software.amazon.awscdk.services.lambda.IScalableFunctionAttribute |
![]() | aws_cdk.aws_lambda.IScalableFunctionAttribute |
![]() | aws-cdk-lib » aws_lambda » IScalableFunctionAttribute |
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. |
scaleOnSchedule(id, actions)
public scaleOnSchedule(id: string, actions: ScalingSchedule): void
Parameters
- id
string
- actions
Scaling
Schedule
Scale out or in based on schedule.
scaleOnUtilization(options)
public scaleOnUtilization(options: UtilizationScalingOptions): void
Parameters
- options
Utilization
Scaling 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