interface LatestPublishedScalingConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lambda.LatestPublishedScalingConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#LatestPublishedScalingConfig |
Java | software.amazon.awscdk.services.lambda.LatestPublishedScalingConfig |
Python | aws_cdk.aws_lambda.LatestPublishedScalingConfig |
TypeScript (source) | aws-cdk-lib » aws_lambda » LatestPublishedScalingConfig |
The scaling configuration that will be applied to the $LATEST.PUBLISHED version.
Example
declare const capacityProvider: lambda.CapacityProvider;
declare const fn: lambda.Function;
capacityProvider.addFunction(fn, {
latestPublishedScalingConfig: {
minExecutionEnvironments: 5,
maxExecutionEnvironments: 25,
},
});
Properties
| Name | Type | Description |
|---|---|---|
| max | number | The maximum number of execution environments allowed for the $LATEST.PUBLISHED version when published into a capacity provider. |
| min | number | The minimum number of execution environments to maintain for the $LATEST.PUBLISHED version when published into a capacity provider. |
maxExecutionEnvironments?
Type:
number
(optional, default: 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.
minExecutionEnvironments?
Type:
number
(optional, default: 3 execution environments are set to be the minimum)
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.

.NET
Go
Java
Python
TypeScript (