libZSservicesZSamazonka-greengrassZSamazonka-greengrass
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Greengrass.Types.FunctionConfiguration

Description

 
Synopsis

Documentation

data FunctionConfiguration Source #

The configuration of the Lambda function.

See: newFunctionConfiguration smart constructor.

Constructors

FunctionConfiguration' 

Fields

  • memorySize :: Maybe Int

    The memory size, in KB, which the function requires. This setting is not applicable and should be cleared when you run the Lambda function without containerization.

  • execArgs :: Maybe Text

    The execution arguments.

  • environment :: Maybe FunctionConfigurationEnvironment

    The environment configuration of the function.

  • executable :: Maybe Text

    The name of the function executable.

  • pinned :: Maybe Bool

    True if the function is pinned. Pinned means the function is long-lived and starts when the core starts.

  • encodingType :: Maybe EncodingType

    The expected encoding type of the input payload for the function. The default is ''json''.

  • timeout :: Maybe Int

    The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned Lambda functions for each request.

Instances

Instances details
Eq FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionConfiguration

Read FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionConfiguration

Show FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionConfiguration

Generic FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionConfiguration

Associated Types

type Rep FunctionConfiguration :: Type -> Type #

NFData FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionConfiguration

Methods

rnf :: FunctionConfiguration -> () #

Hashable FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionConfiguration

ToJSON FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionConfiguration

FromJSON FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionConfiguration

type Rep FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionConfiguration

type Rep FunctionConfiguration = D1 ('MetaData "FunctionConfiguration" "Amazonka.Greengrass.Types.FunctionConfiguration" "libZSservicesZSamazonka-greengrassZSamazonka-greengrass" 'False) (C1 ('MetaCons "FunctionConfiguration'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "memorySize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "execArgs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "environment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionConfigurationEnvironment)))) :*: ((S1 ('MetaSel ('Just "executable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "encodingType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EncodingType)) :*: S1 ('MetaSel ('Just "timeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))))

newFunctionConfiguration :: FunctionConfiguration Source #

Create a value of FunctionConfiguration 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:memorySize:FunctionConfiguration', functionConfiguration_memorySize - The memory size, in KB, which the function requires. This setting is not applicable and should be cleared when you run the Lambda function without containerization.

$sel:execArgs:FunctionConfiguration', functionConfiguration_execArgs - The execution arguments.

$sel:environment:FunctionConfiguration', functionConfiguration_environment - The environment configuration of the function.

$sel:executable:FunctionConfiguration', functionConfiguration_executable - The name of the function executable.

$sel:pinned:FunctionConfiguration', functionConfiguration_pinned - True if the function is pinned. Pinned means the function is long-lived and starts when the core starts.

$sel:encodingType:FunctionConfiguration', functionConfiguration_encodingType - The expected encoding type of the input payload for the function. The default is ''json''.

$sel:timeout:FunctionConfiguration', functionConfiguration_timeout - The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned Lambda functions for each request.

functionConfiguration_memorySize :: Lens' FunctionConfiguration (Maybe Int) Source #

The memory size, in KB, which the function requires. This setting is not applicable and should be cleared when you run the Lambda function without containerization.

functionConfiguration_pinned :: Lens' FunctionConfiguration (Maybe Bool) Source #

True if the function is pinned. Pinned means the function is long-lived and starts when the core starts.

functionConfiguration_encodingType :: Lens' FunctionConfiguration (Maybe EncodingType) Source #

The expected encoding type of the input payload for the function. The default is ''json''.

functionConfiguration_timeout :: Lens' FunctionConfiguration (Maybe Int) Source #

The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned Lambda functions for each request.