Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- getFunction :: Text -> GetFunction
- data GetFunction
- gfFunctionName :: Lens' GetFunction Text
- getFunctionResponse :: Int -> GetFunctionResponse
- data GetFunctionResponse
- gfrsCode :: Lens' GetFunctionResponse (Maybe FunctionCodeLocation)
- gfrsConfiguration :: Lens' GetFunctionResponse (Maybe FunctionConfiguration)
- gfrsStatus :: Lens' GetFunctionResponse Int
Creating a Request
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:
data GetFunction Source
See: getFunction
smart constructor.
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
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
gfrsCode :: Lens' GetFunctionResponse (Maybe FunctionCodeLocation) Source
Undocumented member.
gfrsConfiguration :: Lens' GetFunctionResponse (Maybe FunctionConfiguration) Source
Undocumented member.
gfrsStatus :: Lens' GetFunctionResponse Int Source
The response status code.