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.CreateFunction

Description

Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.

If the deployment package is a container image, then you set the package type to Image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.

If the deployment package is a .zip file archive, then you set the package type to Zip. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64 or arm64). If you do not specify the architecture, then the default value is x86-64.

When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The State, StateReason, and StateReasonCode fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Lambda function states.

A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish parameter to create version 1 of your function from its initial configuration.

The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).

You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted publishers for this function.

If another Amazon Web Services account or an Amazon Web Service invokes your function, use AddPermission to grant permission by creating a resource-based Identity and Access Management (IAM) policy. You can grant permissions at the function level, on a version, or on an alias.

To invoke your function directly, use Invoke. To invoke your function in response to events in other Amazon Web Services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Lambda functions.

Synopsis

Creating a Request

data CreateFunction Source #

See: newCreateFunction smart constructor.

Constructors

CreateFunction' 

Fields

Instances

Instances details
ToJSON CreateFunction Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunction

ToHeaders CreateFunction Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunction

ToPath CreateFunction Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunction

ToQuery CreateFunction Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunction

AWSRequest CreateFunction Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunction

Associated Types

type AWSResponse CreateFunction #

Generic CreateFunction Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunction

Associated Types

type Rep CreateFunction :: Type -> Type #

Show CreateFunction Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunction

NFData CreateFunction Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunction

Methods

rnf :: CreateFunction -> () #

Eq CreateFunction Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunction

Hashable CreateFunction Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunction

type AWSResponse CreateFunction Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunction

type Rep CreateFunction Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunction

type Rep CreateFunction = D1 ('MetaData "CreateFunction" "Amazonka.Lambda.CreateFunction" "amazonka-lambda-2.0-FcjxCCKaCGK94C2lDO9alC" 'False) (C1 ('MetaCons "CreateFunction'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "architectures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Architecture))) :*: S1 ('MetaSel ('Just "codeSigningConfigArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "deadLetterConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeadLetterConfig)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "environment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Environment))))) :*: ((S1 ('MetaSel ('Just "ephemeralStorage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EphemeralStorage)) :*: (S1 ('MetaSel ('Just "fileSystemConfigs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FileSystemConfig])) :*: S1 ('MetaSel ('Just "handler") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "imageConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImageConfig)) :*: (S1 ('MetaSel ('Just "kmsKeyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "layers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))))) :*: (((S1 ('MetaSel ('Just "memorySize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "packageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PackageType)) :*: S1 ('MetaSel ('Just "publish") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: (S1 ('MetaSel ('Just "runtime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Runtime)) :*: (S1 ('MetaSel ('Just "snapStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SnapStart)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))))) :*: ((S1 ('MetaSel ('Just "timeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "tracingConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TracingConfig)) :*: S1 ('MetaSel ('Just "vpcConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcConfig)))) :*: (S1 ('MetaSel ('Just "functionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "role'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FunctionCode)))))))

newCreateFunction Source #

Create a value of CreateFunction 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:

CreateFunction, createFunction_architectures - The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.

CreateFunction, createFunction_codeSigningConfigArn - To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.

CreateFunction, createFunction_deadLetterConfig - A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead-letter queues.

CreateFunction, createFunction_description - A description of the function.

CreateFunction, createFunction_environment - Environment variables that are accessible from function code during execution.

CreateFunction, createFunction_ephemeralStorage - The size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB.

CreateFunction, createFunction_fileSystemConfigs - Connection settings for an Amazon EFS file system.

CreateFunction, createFunction_handler - The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Lambda programming model.

CreateFunction, createFunction_imageConfig - Container image configuration values that override the values in the container image Dockerfile.

CreateFunction, createFunction_kmsKeyArn - The ARN of the Key Management Service (KMS) key that's used to encrypt your function's environment variables. If it's not provided, Lambda uses a default service key.

CreateFunction, createFunction_layers - A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.

CreateFunction, createFunction_memorySize - The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.

CreateFunction, createFunction_packageType - The type of deployment package. Set to Image for container image and set to Zip for .zip file archive.

$sel:publish:CreateFunction', createFunction_publish - Set to true to publish the first version of the function during creation.

CreateFunction, createFunction_runtime - The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.

CreateFunction, createFunction_snapStart - The function's SnapStart setting.

$sel:tags:CreateFunction', createFunction_tags - A list of tags to apply to the function.

CreateFunction, createFunction_timeout - The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see Lambda execution environment.

CreateFunction, createFunction_tracingConfig - Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.

CreateFunction, createFunction_vpcConfig - For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.

CreateFunction, createFunction_functionName - The name of the Lambda function.

Name formats

  • Function namemy-function.
  • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

CreateFunction, createFunction_role - The Amazon Resource Name (ARN) of the function's execution role.

$sel:code:CreateFunction', createFunction_code - The code for the function.

Request Lenses

createFunction_architectures :: Lens' CreateFunction (Maybe (NonEmpty Architecture)) Source #

The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.

createFunction_codeSigningConfigArn :: Lens' CreateFunction (Maybe Text) Source #

To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.

createFunction_deadLetterConfig :: Lens' CreateFunction (Maybe DeadLetterConfig) Source #

A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead-letter queues.

createFunction_description :: Lens' CreateFunction (Maybe Text) Source #

A description of the function.

createFunction_environment :: Lens' CreateFunction (Maybe Environment) Source #

Environment variables that are accessible from function code during execution.

createFunction_ephemeralStorage :: Lens' CreateFunction (Maybe EphemeralStorage) Source #

The size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB.

createFunction_fileSystemConfigs :: Lens' CreateFunction (Maybe [FileSystemConfig]) Source #

Connection settings for an Amazon EFS file system.

createFunction_handler :: Lens' CreateFunction (Maybe Text) Source #

The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Lambda programming model.

createFunction_imageConfig :: Lens' CreateFunction (Maybe ImageConfig) Source #

Container image configuration values that override the values in the container image Dockerfile.

createFunction_kmsKeyArn :: Lens' CreateFunction (Maybe Text) Source #

The ARN of the Key Management Service (KMS) key that's used to encrypt your function's environment variables. If it's not provided, Lambda uses a default service key.

createFunction_layers :: Lens' CreateFunction (Maybe [Text]) Source #

A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.

createFunction_memorySize :: Lens' CreateFunction (Maybe Natural) Source #

The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.

createFunction_packageType :: Lens' CreateFunction (Maybe PackageType) Source #

The type of deployment package. Set to Image for container image and set to Zip for .zip file archive.

createFunction_publish :: Lens' CreateFunction (Maybe Bool) Source #

Set to true to publish the first version of the function during creation.

createFunction_runtime :: Lens' CreateFunction (Maybe Runtime) Source #

The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.

createFunction_tags :: Lens' CreateFunction (Maybe (HashMap Text Text)) Source #

A list of tags to apply to the function.

createFunction_timeout :: Lens' CreateFunction (Maybe Natural) Source #

The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see Lambda execution environment.

createFunction_tracingConfig :: Lens' CreateFunction (Maybe TracingConfig) Source #

Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.

createFunction_vpcConfig :: Lens' CreateFunction (Maybe VpcConfig) Source #

For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.

createFunction_functionName :: Lens' CreateFunction Text Source #

The name of the Lambda function.

Name formats

  • Function namemy-function.
  • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

createFunction_role :: Lens' CreateFunction Text Source #

The Amazon Resource Name (ARN) of the function's execution role.

Destructuring the Response

data FunctionConfiguration Source #

Details about a function's configuration.

See: newFunctionConfiguration smart constructor.

Constructors

FunctionConfiguration' 

Fields

Instances

Instances details
FromJSON FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionConfiguration

Generic FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionConfiguration

Associated Types

type Rep FunctionConfiguration :: Type -> Type #

Show FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionConfiguration

NFData FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionConfiguration

Methods

rnf :: FunctionConfiguration -> () #

Eq FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionConfiguration

Hashable FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionConfiguration

type Rep FunctionConfiguration Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionConfiguration

type Rep FunctionConfiguration = D1 ('MetaData "FunctionConfiguration" "Amazonka.Lambda.Types.FunctionConfiguration" "amazonka-lambda-2.0-FcjxCCKaCGK94C2lDO9alC" 'False) (C1 ('MetaCons "FunctionConfiguration'" 'PrefixI 'True) (((((S1 ('MetaSel ('Just "architectures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Architecture))) :*: S1 ('MetaSel ('Just "codeSha256") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "codeSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "deadLetterConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeadLetterConfig)))) :*: ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "environment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EnvironmentResponse))) :*: (S1 ('MetaSel ('Just "ephemeralStorage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EphemeralStorage)) :*: S1 ('MetaSel ('Just "fileSystemConfigs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FileSystemConfig]))))) :*: (((S1 ('MetaSel ('Just "functionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "functionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "handler") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "imageConfigResponse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImageConfigResponse)))) :*: ((S1 ('MetaSel ('Just "kmsKeyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastModified") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "lastUpdateStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LastUpdateStatus)) :*: (S1 ('MetaSel ('Just "lastUpdateStatusReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastUpdateStatusReasonCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LastUpdateStatusReasonCode))))))) :*: ((((S1 ('MetaSel ('Just "layers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Layer])) :*: S1 ('MetaSel ('Just "masterArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "memorySize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "packageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PackageType)))) :*: ((S1 ('MetaSel ('Just "revisionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "role'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "runtime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Runtime)) :*: S1 ('MetaSel ('Just "signingJobArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "signingProfileVersionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "snapStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SnapStartResponse))) :*: (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe State)) :*: S1 ('MetaSel ('Just "stateReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "stateReasonCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StateReasonCode)) :*: S1 ('MetaSel ('Just "timeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "tracingConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TracingConfigResponse)) :*: (S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "vpcConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcConfigResponse)))))))))

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:architectures:FunctionConfiguration', functionConfiguration_architectures - The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.

$sel:codeSha256:FunctionConfiguration', functionConfiguration_codeSha256 - The SHA256 hash of the function's deployment package.

FunctionConfiguration, functionConfiguration_codeSize - The size of the function's deployment package, in bytes.

$sel:deadLetterConfig:FunctionConfiguration', functionConfiguration_deadLetterConfig - The function's dead letter queue.

$sel:description:FunctionConfiguration', functionConfiguration_description - The function's description.

$sel:environment:FunctionConfiguration', functionConfiguration_environment - The function's environment variables. Omitted from CloudTrail logs.

$sel:ephemeralStorage:FunctionConfiguration', functionConfiguration_ephemeralStorage - The size of the function’s /tmp directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.

$sel:fileSystemConfigs:FunctionConfiguration', functionConfiguration_fileSystemConfigs - Connection settings for an Amazon EFS file system.

$sel:functionArn:FunctionConfiguration', functionConfiguration_functionArn - The function's Amazon Resource Name (ARN).

$sel:functionName:FunctionConfiguration', functionConfiguration_functionName - The name of the function.

$sel:handler:FunctionConfiguration', functionConfiguration_handler - The function that Lambda calls to begin running your function.

$sel:imageConfigResponse:FunctionConfiguration', functionConfiguration_imageConfigResponse - The function's image configuration values.

$sel:kmsKeyArn:FunctionConfiguration', functionConfiguration_kmsKeyArn - The KMS key that's used to encrypt the function's environment variables. This key is returned only if you've configured a customer managed key.

$sel:lastModified:FunctionConfiguration', functionConfiguration_lastModified - The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

$sel:lastUpdateStatus:FunctionConfiguration', functionConfiguration_lastUpdateStatus - The status of the last update that was performed on the function. This is first set to Successful after function creation completes.

$sel:lastUpdateStatusReason:FunctionConfiguration', functionConfiguration_lastUpdateStatusReason - The reason for the last update that was performed on the function.

$sel:lastUpdateStatusReasonCode:FunctionConfiguration', functionConfiguration_lastUpdateStatusReasonCode - The reason code for the last update that was performed on the function.

$sel:layers:FunctionConfiguration', functionConfiguration_layers - The function's layers.

$sel:masterArn:FunctionConfiguration', functionConfiguration_masterArn - For Lambda@Edge functions, the ARN of the main function.

$sel:memorySize:FunctionConfiguration', functionConfiguration_memorySize - The amount of memory available to the function at runtime.

$sel:packageType:FunctionConfiguration', functionConfiguration_packageType - The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

$sel:revisionId:FunctionConfiguration', functionConfiguration_revisionId - The latest updated revision of the function or alias.

$sel:role':FunctionConfiguration', functionConfiguration_role - The function's execution role.

$sel:runtime:FunctionConfiguration', functionConfiguration_runtime - The runtime environment for the Lambda function.

FunctionConfiguration, functionConfiguration_signingJobArn - The ARN of the signing job.

FunctionConfiguration, functionConfiguration_signingProfileVersionArn - The ARN of the signing profile version.

$sel:snapStart:FunctionConfiguration', functionConfiguration_snapStart - 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.

$sel:state:FunctionConfiguration', functionConfiguration_state - The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.

$sel:stateReason:FunctionConfiguration', functionConfiguration_stateReason - The reason for the function's current state.

$sel:stateReasonCode:FunctionConfiguration', functionConfiguration_stateReasonCode - The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.

$sel:timeout:FunctionConfiguration', functionConfiguration_timeout - The amount of time in seconds that Lambda allows a function to run before stopping it.

$sel:tracingConfig:FunctionConfiguration', functionConfiguration_tracingConfig - The function's X-Ray tracing configuration.

$sel:version:FunctionConfiguration', functionConfiguration_version - The version of the Lambda function.

$sel:vpcConfig:FunctionConfiguration', functionConfiguration_vpcConfig - The function's networking configuration.

Response Lenses

functionConfiguration_architectures :: Lens' FunctionConfiguration (Maybe (NonEmpty Architecture)) Source #

The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.

functionConfiguration_codeSha256 :: Lens' FunctionConfiguration (Maybe Text) Source #

The SHA256 hash of the function's deployment package.

functionConfiguration_codeSize :: Lens' FunctionConfiguration (Maybe Integer) Source #

The size of the function's deployment package, in bytes.

functionConfiguration_ephemeralStorage :: Lens' FunctionConfiguration (Maybe EphemeralStorage) Source #

The size of the function’s /tmp directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.

functionConfiguration_functionArn :: Lens' FunctionConfiguration (Maybe Text) Source #

The function's Amazon Resource Name (ARN).

functionConfiguration_handler :: Lens' FunctionConfiguration (Maybe Text) Source #

The function that Lambda calls to begin running your function.

functionConfiguration_kmsKeyArn :: Lens' FunctionConfiguration (Maybe Text) Source #

The KMS key that's used to encrypt the function's environment variables. This key is returned only if you've configured a customer managed key.

functionConfiguration_lastModified :: Lens' FunctionConfiguration (Maybe Text) Source #

The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

functionConfiguration_lastUpdateStatus :: Lens' FunctionConfiguration (Maybe LastUpdateStatus) Source #

The status of the last update that was performed on the function. This is first set to Successful after function creation completes.

functionConfiguration_lastUpdateStatusReason :: Lens' FunctionConfiguration (Maybe Text) Source #

The reason for the last update that was performed on the function.

functionConfiguration_lastUpdateStatusReasonCode :: Lens' FunctionConfiguration (Maybe LastUpdateStatusReasonCode) Source #

The reason code for the last update that was performed on the function.

functionConfiguration_masterArn :: Lens' FunctionConfiguration (Maybe Text) Source #

For Lambda@Edge functions, the ARN of the main function.

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

The amount of memory available to the function at runtime.

functionConfiguration_packageType :: Lens' FunctionConfiguration (Maybe PackageType) Source #

The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

functionConfiguration_revisionId :: Lens' FunctionConfiguration (Maybe Text) Source #

The latest updated revision of the function or alias.

functionConfiguration_runtime :: Lens' FunctionConfiguration (Maybe Runtime) Source #

The runtime environment for the Lambda function.

functionConfiguration_snapStart :: Lens' FunctionConfiguration (Maybe SnapStartResponse) Source #

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.

functionConfiguration_state :: Lens' FunctionConfiguration (Maybe State) Source #

The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.

functionConfiguration_stateReason :: Lens' FunctionConfiguration (Maybe Text) Source #

The reason for the function's current state.

functionConfiguration_stateReasonCode :: Lens' FunctionConfiguration (Maybe StateReasonCode) Source #

The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.

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

The amount of time in seconds that Lambda allows a function to run before stopping it.