| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Lambda.ListVersionsByFunction
Description
Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.
This operation returns paginated results.
Synopsis
- data ListVersionsByFunction = ListVersionsByFunction' {}
- newListVersionsByFunction :: Text -> ListVersionsByFunction
- listVersionsByFunction_marker :: Lens' ListVersionsByFunction (Maybe Text)
- listVersionsByFunction_maxItems :: Lens' ListVersionsByFunction (Maybe Natural)
- listVersionsByFunction_functionName :: Lens' ListVersionsByFunction Text
- data ListVersionsByFunctionResponse = ListVersionsByFunctionResponse' {}
- newListVersionsByFunctionResponse :: Int -> ListVersionsByFunctionResponse
- listVersionsByFunctionResponse_nextMarker :: Lens' ListVersionsByFunctionResponse (Maybe Text)
- listVersionsByFunctionResponse_versions :: Lens' ListVersionsByFunctionResponse (Maybe [FunctionConfiguration])
- listVersionsByFunctionResponse_httpStatus :: Lens' ListVersionsByFunctionResponse Int
Creating a Request
data ListVersionsByFunction Source #
See: newListVersionsByFunction smart constructor.
Constructors
| ListVersionsByFunction' | |
Fields
| |
Instances
newListVersionsByFunction Source #
Arguments
| :: Text | |
| -> ListVersionsByFunction |
Create a value of ListVersionsByFunction 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:marker:ListVersionsByFunction', listVersionsByFunction_marker - Specify the pagination token that's returned by a previous request to
retrieve the next page of results.
$sel:maxItems:ListVersionsByFunction', listVersionsByFunction_maxItems - The maximum number of versions to return. Note that
ListVersionsByFunction returns a maximum of 50 items in each response,
even if you set the number higher.
ListVersionsByFunction, listVersionsByFunction_functionName - The name of the Lambda function.
Name formats
- Function name -
MyFunction. - Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction. - Partial ARN -
123456789012:function:MyFunction.
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
listVersionsByFunction_marker :: Lens' ListVersionsByFunction (Maybe Text) Source #
Specify the pagination token that's returned by a previous request to retrieve the next page of results.
listVersionsByFunction_maxItems :: Lens' ListVersionsByFunction (Maybe Natural) Source #
The maximum number of versions to return. Note that
ListVersionsByFunction returns a maximum of 50 items in each response,
even if you set the number higher.
listVersionsByFunction_functionName :: Lens' ListVersionsByFunction Text Source #
The name of the Lambda function.
Name formats
- Function name -
MyFunction. - Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction. - Partial ARN -
123456789012:function:MyFunction.
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 ListVersionsByFunctionResponse Source #
See: newListVersionsByFunctionResponse smart constructor.
Constructors
| ListVersionsByFunctionResponse' | |
Fields
| |
Instances
newListVersionsByFunctionResponse Source #
Create a value of ListVersionsByFunctionResponse 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:nextMarker:ListVersionsByFunctionResponse', listVersionsByFunctionResponse_nextMarker - The pagination token that's included if more results are available.
$sel:versions:ListVersionsByFunctionResponse', listVersionsByFunctionResponse_versions - A list of Lambda function versions.
$sel:httpStatus:ListVersionsByFunctionResponse', listVersionsByFunctionResponse_httpStatus - The response's http status code.
Response Lenses
listVersionsByFunctionResponse_nextMarker :: Lens' ListVersionsByFunctionResponse (Maybe Text) Source #
The pagination token that's included if more results are available.
listVersionsByFunctionResponse_versions :: Lens' ListVersionsByFunctionResponse (Maybe [FunctionConfiguration]) Source #
A list of Lambda function versions.
listVersionsByFunctionResponse_httpStatus :: Lens' ListVersionsByFunctionResponse Int Source #
The response's http status code.