amazonka-lambda-2.0: Amazon Lambda SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Lambda.Types.SnapStart

Description

 
Synopsis

Documentation

data SnapStart Source #

The function's SnapStart setting. Set ApplyOn to PublishedVersions to create a snapshot of the initialized execution environment when you publish a function version. For more information, see Reducing startup time with Lambda SnapStart.

See: newSnapStart smart constructor.

Constructors

SnapStart' 

Fields

  • applyOn :: Maybe SnapStartApplyOn

    Set to PublishedVersions to create a snapshot of the initialized execution environment when you publish a function version.

Instances

Instances details
ToJSON SnapStart Source # 
Instance details

Defined in Amazonka.Lambda.Types.SnapStart

Generic SnapStart Source # 
Instance details

Defined in Amazonka.Lambda.Types.SnapStart

Associated Types

type Rep SnapStart :: Type -> Type #

Read SnapStart Source # 
Instance details

Defined in Amazonka.Lambda.Types.SnapStart

Show SnapStart Source # 
Instance details

Defined in Amazonka.Lambda.Types.SnapStart

NFData SnapStart Source # 
Instance details

Defined in Amazonka.Lambda.Types.SnapStart

Methods

rnf :: SnapStart -> () #

Eq SnapStart Source # 
Instance details

Defined in Amazonka.Lambda.Types.SnapStart

Hashable SnapStart Source # 
Instance details

Defined in Amazonka.Lambda.Types.SnapStart

type Rep SnapStart Source # 
Instance details

Defined in Amazonka.Lambda.Types.SnapStart

type Rep SnapStart = D1 ('MetaData "SnapStart" "Amazonka.Lambda.Types.SnapStart" "amazonka-lambda-2.0-FcjxCCKaCGK94C2lDO9alC" 'False) (C1 ('MetaCons "SnapStart'" 'PrefixI 'True) (S1 ('MetaSel ('Just "applyOn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SnapStartApplyOn))))

newSnapStart :: SnapStart Source #

Create a value of SnapStart with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:applyOn:SnapStart', snapStart_applyOn - Set to PublishedVersions to create a snapshot of the initialized execution environment when you publish a function version.

snapStart_applyOn :: Lens' SnapStart (Maybe SnapStartApplyOn) Source #

Set to PublishedVersions to create a snapshot of the initialized execution environment when you publish a function version.