Skip to content
v2.276.0

SnapStartProperty Struct ​

The function's AWS Lambda SnapStart setting.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const snapStartProperty: lambda.CfnFunction.SnapStartProperty = {
  applyOn: 'applyOn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_

snap_start_property = lambda.CfnFunction.SnapStartProperty(
    apply_on="applyOn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;

SnapStartProperty snapStartProperty = SnapStartProperty.builder()
        .applyOn("applyOn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;

var snapStartProperty = new SnapStartProperty {
    ApplyOn = "applyOn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

snapStartProperty := &SnapStartProperty{
	ApplyOn: jsii.String("applyOn"),
}

Properties ​

applyOnstringapply_onstrapplyOnStringApplyOnstringApplyOn*stringrequired#
Set `ApplyOn` to `PublishedVersions` to create a snapshot of the initialized execution environment when you publish a function version.