Skip to content
v2.273.0

IScalableFunctionAttribute Interface ​

Interface for scalable attributes.

Properties ​

nodeNodenodeNodenodeNodeNodeNodeNodeNoderequired#
The tree node.

Methods ​

scaleOnSchedule(id: string, actions: ScalingSchedule): voiddef scale_on_schedule(self, id: str, actions: ScalingSchedule) -> Nonepublic void scaleOnSchedule(String id, ScalingSchedule actions)public void ScaleOnSchedule(string id, ScalingSchedule actions)func ScaleOnSchedule(Id *string, Actions ScalingSchedule)#
Scale out or in based on schedule.
scaleOnUtilization(options: UtilizationScalingOptions): voiddef scale_on_utilization(self, options: UtilizationScalingOptions) -> Nonepublic void scaleOnUtilization(UtilizationScalingOptions options)public void ScaleOnUtilization(UtilizationScalingOptions options)func ScaleOnUtilization(Options UtilizationScalingOptions)#
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: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct#
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.

1 parameter · returns

Parameters

  • mixinsmixinsmixinsmixinsMixins — The mixins to apply.

Returns: This construct for chaining