# SnapStartResponseProperty

The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 snapStartResponseProperty: lambda.CfnFunction.SnapStartResponseProperty = {
  applyOn: 'applyOn',
  optimizationStatus: 'optimizationStatus',
};
```

## Properties

- `applyOn`: string — When set to `PublishedVersions` , Lambda creates a snapshot of the execution environment when you publish a function version.

- `optimizationStatus`: string — When you provide a [qualified Amazon Resource Name (ARN)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using) , this response element indicates whether SnapStart is activated for the specified function version.
