Copyright | (c) 2013-2021 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 |
Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.
Synopsis
- data GetFunction = GetFunction' {
- qualifier :: Maybe Text
- functionName :: Text
- newGetFunction :: Text -> GetFunction
- getFunction_qualifier :: Lens' GetFunction (Maybe Text)
- getFunction_functionName :: Lens' GetFunction Text
- data GetFunctionResponse = GetFunctionResponse' {}
- newGetFunctionResponse :: Int -> GetFunctionResponse
- getFunctionResponse_concurrency :: Lens' GetFunctionResponse (Maybe Concurrency)
- getFunctionResponse_code :: Lens' GetFunctionResponse (Maybe FunctionCodeLocation)
- getFunctionResponse_configuration :: Lens' GetFunctionResponse (Maybe FunctionConfiguration)
- getFunctionResponse_tags :: Lens' GetFunctionResponse (Maybe (HashMap Text Text))
- getFunctionResponse_httpStatus :: Lens' GetFunctionResponse Int
Creating a Request
data GetFunction Source #
See: newGetFunction
smart constructor.
GetFunction' | |
|
Instances
Create a value of GetFunction
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:qualifier:GetFunction'
, getFunction_qualifier
- Specify a version or alias to get details about a published version of
the function.
$sel:functionName:GetFunction'
, getFunction_functionName
- The name of the Lambda function, version, or alias.
Name formats
- Function name -
my-function
(name-only),my-function:v1
(with alias). - Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:my-function
. - Partial ARN -
123456789012:function:my-function
.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
Request Lenses
getFunction_qualifier :: Lens' GetFunction (Maybe Text) Source #
Specify a version or alias to get details about a published version of the function.
getFunction_functionName :: Lens' GetFunction Text Source #
The name of the Lambda function, version, or alias.
Name formats
- Function name -
my-function
(name-only),my-function:v1
(with alias). - Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:my-function
. - Partial ARN -
123456789012:function:my-function
.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
Destructuring the Response
data GetFunctionResponse Source #
See: newGetFunctionResponse
smart constructor.
GetFunctionResponse' | |
|
Instances
newGetFunctionResponse Source #
Create a value of GetFunctionResponse
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:concurrency:GetFunctionResponse'
, getFunctionResponse_concurrency
- The function's
reserved concurrency.
$sel:code:GetFunctionResponse'
, getFunctionResponse_code
- The deployment package of the function or version.
$sel:configuration:GetFunctionResponse'
, getFunctionResponse_configuration
- The configuration of the function or version.
$sel:tags:GetFunctionResponse'
, getFunctionResponse_tags
- The function's
tags.
$sel:httpStatus:GetFunctionResponse'
, getFunctionResponse_httpStatus
- The response's http status code.
Response Lenses
getFunctionResponse_concurrency :: Lens' GetFunctionResponse (Maybe Concurrency) Source #
The function's reserved concurrency.
getFunctionResponse_code :: Lens' GetFunctionResponse (Maybe FunctionCodeLocation) Source #
The deployment package of the function or version.
getFunctionResponse_configuration :: Lens' GetFunctionResponse (Maybe FunctionConfiguration) Source #
The configuration of the function or version.
getFunctionResponse_tags :: Lens' GetFunctionResponse (Maybe (HashMap Text Text)) Source #
The function's tags.
getFunctionResponse_httpStatus :: Lens' GetFunctionResponse Int Source #
The response's http status code.