amazonka-lambda-1.3.0: Amazon Lambda SDK.

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

Network.AWS.Lambda.GetFunction

Contents

Description

Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with CreateFunction so you can download the .zip file. Note that the URL is valid for up to 10 minutes. The configuration information is the same information you provided as parameters when uploading the function.

This operation requires permission for the 'lambda:GetFunction' action.

See: AWS API Reference for GetFunction.

Synopsis

Creating a Request

getFunction Source

Creates a value of GetFunction with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

gfFunctionName :: Lens' GetFunction Text Source

The Lambda function name.

You can specify an unqualified function name (for example, "Thumbnail") or you can specify Amazon Resource Name (ARN) of the function (for example, "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

Destructuring the Response

getFunctionResponse Source

Creates a value of GetFunctionResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetFunctionResponse Source

This response contains the object for the Lambda function location (see API_FunctionCodeLocation

See: getFunctionResponse smart constructor.

Response Lenses