FunctionScalingConfig - Amazon Serverless Application Model
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

FunctionScalingConfig

Configures the scaling behavior for Lambda function versions, controlling the number of execution environments (sandboxes) that can be created. This configuration applies to both $LATEST.PUBLISHED and numeric function versions.

Syntax

To declare this entity in your Amazon Serverless Application Model (Amazon SAM) template, use the following syntax.

Properties

MinExecutionEnvironments

The minimum number of execution environments to maintain for the function version.

Type: Integer

Required: No

Default: 3

Minimum: 0

Amazon CloudFormation compatibility: This property is passed directly to the MinExecutionEnvironments property of an AWS::Lambda::Function resource.

MaxExecutionEnvironments

The maximum number of execution environments that can be created for the function version.

Type: Integer

Required: No

Default: 3

Minimum: 0

Amazon CloudFormation compatibility: This property is passed directly to the MaxExecutionEnvironments property of an AWS::Lambda::Function resource.

Examples

Function scaling configuration

The following example shows a function scaling configuration with minimum and maximum execution environments.

FunctionScalingConfig: MinExecutionEnvironments: 5 MaxExecutionEnvironments: 100