interface SnapStartResponseProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lambda.CfnFunction.SnapStartResponseProperty |
Java | software.amazon.awscdk.services.lambda.CfnFunction.SnapStartResponseProperty |
Python | aws_cdk.aws_lambda.CfnFunction.SnapStartResponseProperty |
TypeScript | @aws-cdk/aws-lambda » CfnFunction » SnapStartResponseProperty |
The function's SnapStart setting.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as lambda from '@aws-cdk/aws-lambda';
const snapStartResponseProperty: lambda.CfnFunction.SnapStartResponseProperty = {
applyOn: 'applyOn',
optimizationStatus: 'optimizationStatus',
};
Properties
| Name | Type | Description |
|---|---|---|
| apply | string | When set to PublishedVersions , Lambda creates a snapshot of the execution environment when you publish a function version. |
| optimization | string | When you provide a qualified Amazon Resource Name (ARN) , this response element indicates whether SnapStart is activated for the specified function version. |
applyOn?
Type:
string
(optional)
When set to PublishedVersions , Lambda creates a snapshot of the execution environment when you publish a function version.
optimizationStatus?
Type:
string
(optional)
When you provide a qualified Amazon Resource Name (ARN) , this response element indicates whether SnapStart is activated for the specified function version.

.NET
Java
Python
TypeScript