Interface IScalableFunctionAttribute
Interface for scalable attributes.
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public interface IScalableFunctionAttribute : IConstruct, IDependable
Syntax (vb)
Public Interface IScalableFunctionAttribute
Inherits IConstruct, IConstruct, IDependable
Synopsis
Methods
ScaleOnSchedule(String, IScalingSchedule) | Scale out or in based on schedule. |
ScaleOnUtilization(IUtilizationScalingOptions) | Scale out or in to keep utilization at a given level. |
Methods
ScaleOnSchedule(String, IScalingSchedule)
Scale out or in based on schedule.
void ScaleOnSchedule(string id, IScalingSchedule actions)
Parameters
- id System.String
- actions IScalingSchedule
ScaleOnUtilization(IUtilizationScalingOptions)
Scale out or in to keep utilization at a given level.
void ScaleOnUtilization(IUtilizationScalingOptions options)
Parameters
- options IUtilizationScalingOptions
Remarks
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