Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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.
- getFunction :: Text -> GetFunction
- data GetFunction
- gfQualifier :: Lens' GetFunction (Maybe Text)
- gfFunctionName :: Lens' GetFunction Text
- getFunctionResponse :: Int -> GetFunctionResponse
- data GetFunctionResponse
- gfrsConcurrency :: Lens' GetFunctionResponse (Maybe Concurrency)
- gfrsCode :: Lens' GetFunctionResponse (Maybe FunctionCodeLocation)
- gfrsConfiguration :: Lens' GetFunctionResponse (Maybe FunctionConfiguration)
- gfrsTags :: Lens' GetFunctionResponse (HashMap Text Text)
- 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:
gfQualifier
- Use this optional parameter to specify a function version or an 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 an alias name, the API uses the 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
- The Lambda function name. You can specify a 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 a partial ARN (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 characters in length.
data GetFunction Source #
See: getFunction
smart constructor.
Request Lenses
gfQualifier :: Lens' GetFunction (Maybe Text) Source #
Use this optional parameter to specify a function version or an 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 an alias name, the API uses the 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 a 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 a partial ARN (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 characters 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:
gfrsConcurrency
- The concurrent execution limit set for this function. For more information, see 'concurrent-executions' .gfrsCode
- Undocumented member.gfrsConfiguration
- Undocumented member.gfrsTags
- Returns the list of tags associated with the function. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide .gfrsResponseStatus
- -- | The response status code.
data GetFunctionResponse Source #
This response contains the object for the Lambda function location (see FunctionCodeLocation
.
See: getFunctionResponse
smart constructor.
Response Lenses
gfrsConcurrency :: Lens' GetFunctionResponse (Maybe Concurrency) Source #
The concurrent execution limit set for this function. For more information, see 'concurrent-executions' .
gfrsCode :: Lens' GetFunctionResponse (Maybe FunctionCodeLocation) Source #
Undocumented member.
gfrsConfiguration :: Lens' GetFunctionResponse (Maybe FunctionConfiguration) Source #
Undocumented member.
gfrsTags :: Lens' GetFunctionResponse (HashMap Text Text) Source #
Returns the list of tags associated with the function. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide .
gfrsResponseStatus :: Lens' GetFunctionResponse Int Source #
- - | The response status code.