AWS::Lambda::Function SnapStartResponse - Amazon CloudFormation
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).

AWS::Lambda::Function SnapStartResponse

The function's SnapStart setting.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "ApplyOn" : String, "OptimizationStatus" : String }

YAML

ApplyOn: String OptimizationStatus: String

Properties

ApplyOn

When set to PublishedVersions, Lambda creates a snapshot of the execution environment when you publish a function version.

Required: No

Type: String

Allowed values: PublishedVersions | None

Update requires: No interruption

OptimizationStatus

When you provide a qualified Amazon Resource Name (ARN), this response element indicates whether SnapStart is activated for the specified function version.

Required: No

Type: String

Allowed values: On | Off

Update requires: No interruption