SnapStartConf

class aws_cdk.aws_lambda.SnapStartConf

Bases: object

ExampleMetadata:

infused

Example:

fn = lambda_.Function(self, "MyFunction",
    code=lambda_.Code.from_asset(path.join(__dirname, "handler.zip")),
    runtime=lambda_.Runtime.JAVA_11,
    handler="example.Handler::handleRequest",
    snap_start=lambda_.SnapStartConf.ON_PUBLISHED_VERSIONS
)

version = fn.current_version

Attributes

ON_PUBLISHED_VERSIONS = <aws_cdk.aws_lambda.SnapStartConf object>