LatestPublishedScalingConfig Struct
The scaling configuration that will be applied to the $LATEST.PUBLISHED version.
Example
ts
declare const capacityProvider: lambda.CapacityProvider;
declare const fn: lambda.Function;
capacityProvider.addFunction(fn, {
latestPublishedScalingConfig: {
minExecutionEnvironments: 5,
maxExecutionEnvironments: 25,
},
});
Properties
maxExecutionEnvironmentsnumbermax_execution_environmentsint | floatmaxExecutionEnvironmentsNumberMaxExecutionEnvironmentsdoubleMaxExecutionEnvironments*float64= No maximum specified#The maximum number of execution environments allowed for the $LATEST.PUBLISHED version when published into a capacity provider.
This setting limits the total number of execution environments that can be created to handle concurrent invocations of this specific version.
minExecutionEnvironmentsnumbermin_execution_environmentsint | floatminExecutionEnvironmentsNumberMinExecutionEnvironmentsdoubleMinExecutionEnvironments*float64= 3 execution environments are set…#The minimum number of execution environments to maintain for the $LATEST.PUBLISHED version when published into a capacity provider.
This setting ensures that at least this many execution environments are always available to handle function invocations for this specific version, reducing cold start latency.
default
Default: 3 execution environments are set to be the minimum