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.
Using the optional Qualifier
parameter, you can specify a specific
function version for which you want this information. If you don't
specify this parameter, the API uses unqualified function ARN which
return information about the $LATEST version of the Lambda function. For
more information, see
AWS Lambda Function Versioning and Aliases.
This operation requires permission for the 'lambda:GetFunction' action.
See: AWS API Reference for GetFunction.
- getFunction :: Text -> GetFunction
- data GetFunction
- gfQualifier :: Lens' GetFunction (Maybe Text)
- gfFunctionName :: Lens' GetFunction Text
- getFunctionResponse :: Int -> GetFunctionResponse
- data GetFunctionResponse
- gfrsCode :: Lens' GetFunctionResponse (Maybe FunctionCodeLocation)
- gfrsConfiguration :: Lens' GetFunctionResponse (Maybe FunctionConfiguration)
- gfrsResponseStatus :: 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
gfQualifier :: Lens' GetFunction (Maybe Text) Source
Using this optional parameter to specify a function version or alias name. If you specify function version, the API uses qualified function ARN for the request and returns information about the specific Lambda function version. If you specify alias name, the API uses alias ARN and returns information about the function version to which the alias points. If you don't provide this parameter, the API uses unqualified function ARN and returns information about the $LATEST version of the Lambda function.
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.
gfrsResponseStatus :: Lens' GetFunctionResponse Int Source
The response status code.