Skip to content
v2.274.0

SnapStartConf Class ​

Example ​

ts
const fn = new lambda.Function(this, 'MyFunction', {
  code: lambda.Code.fromAsset(path.join(__dirname, 'handler.zip')),
  runtime: lambda.Runtime.JAVA_11,
  handler: 'example.Handler::handleRequest',
  snapStart: lambda.SnapStartConf.ON_PUBLISHED_VERSIONS,
  });

const version = fn.currentVersion;

Initializer ​

ts
new SnapStartConf()
python
SnapStartConf()
java
new SnapStartConf()
csharp
new SnapStartConf()
go
NewSnapStartConf()

Properties ​

ON_PUBLISHED_VERSIONSSnapStartConfon_published_versionsSnapStartConfON_PUBLISHED_VERSIONSSnapStartConfON_PUBLISHED_VERSIONSSnapStartConfON_PUBLISHED_VERSIONSSnapStartConfrequiredstatic#