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.ListFunctions
Description
Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set FunctionVersion
to ALL
to include all published versions of each
function in addition to the unpublished version.
The ListFunctions
operation returns a subset of the
FunctionConfiguration fields. To get the additional fields (State,
StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason,
LastUpdateStatusReasonCode) for a function or version, use GetFunction.
This operation returns paginated results.
Synopsis
- data ListFunctions = ListFunctions' {}
- newListFunctions :: ListFunctions
- listFunctions_functionVersion :: Lens' ListFunctions (Maybe FunctionVersion)
- listFunctions_marker :: Lens' ListFunctions (Maybe Text)
- listFunctions_masterRegion :: Lens' ListFunctions (Maybe Text)
- listFunctions_maxItems :: Lens' ListFunctions (Maybe Natural)
- data ListFunctionsResponse = ListFunctionsResponse' {}
- newListFunctionsResponse :: Int -> ListFunctionsResponse
- listFunctionsResponse_functions :: Lens' ListFunctionsResponse (Maybe [FunctionConfiguration])
- listFunctionsResponse_nextMarker :: Lens' ListFunctionsResponse (Maybe Text)
- listFunctionsResponse_httpStatus :: Lens' ListFunctionsResponse Int
Creating a Request
data ListFunctions Source #
See: newListFunctions
smart constructor.
Constructors
ListFunctions' | |
Fields
|
Instances
newListFunctions :: ListFunctions Source #
Create a value of ListFunctions
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:
ListFunctions
, listFunctions_functionVersion
- Set to ALL
to include entries for all published versions of each
function.
$sel:marker:ListFunctions'
, listFunctions_marker
- Specify the pagination token that's returned by a previous request to
retrieve the next page of results.
$sel:masterRegion:ListFunctions'
, listFunctions_masterRegion
- For Lambda@Edge functions, the Amazon Web Services Region of the master
function. For example, us-east-1
filters the list of functions to
include only Lambda@Edge functions replicated from a master function in
US East (N. Virginia). If specified, you must set FunctionVersion
to
ALL
.
$sel:maxItems:ListFunctions'
, listFunctions_maxItems
- The maximum number of functions to return in the response. Note that
ListFunctions
returns a maximum of 50 items in each response, even if
you set the number higher.
Request Lenses
listFunctions_functionVersion :: Lens' ListFunctions (Maybe FunctionVersion) Source #
Set to ALL
to include entries for all published versions of each
function.
listFunctions_marker :: Lens' ListFunctions (Maybe Text) Source #
Specify the pagination token that's returned by a previous request to retrieve the next page of results.
listFunctions_masterRegion :: Lens' ListFunctions (Maybe Text) Source #
For Lambda@Edge functions, the Amazon Web Services Region of the master
function. For example, us-east-1
filters the list of functions to
include only Lambda@Edge functions replicated from a master function in
US East (N. Virginia). If specified, you must set FunctionVersion
to
ALL
.
listFunctions_maxItems :: Lens' ListFunctions (Maybe Natural) Source #
The maximum number of functions to return in the response. Note that
ListFunctions
returns a maximum of 50 items in each response, even if
you set the number higher.
Destructuring the Response
data ListFunctionsResponse Source #
A list of Lambda functions.
See: newListFunctionsResponse
smart constructor.
Constructors
ListFunctionsResponse' | |
Fields
|
Instances
newListFunctionsResponse Source #
Create a value of ListFunctionsResponse
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:functions:ListFunctionsResponse'
, listFunctionsResponse_functions
- A list of Lambda functions.
$sel:nextMarker:ListFunctionsResponse'
, listFunctionsResponse_nextMarker
- The pagination token that's included if more results are available.
$sel:httpStatus:ListFunctionsResponse'
, listFunctionsResponse_httpStatus
- The response's http status code.
Response Lenses
listFunctionsResponse_functions :: Lens' ListFunctionsResponse (Maybe [FunctionConfiguration]) Source #
A list of Lambda functions.
listFunctionsResponse_nextMarker :: Lens' ListFunctionsResponse (Maybe Text) Source #
The pagination token that's included if more results are available.
listFunctionsResponse_httpStatus :: Lens' ListFunctionsResponse Int Source #
The response's http status code.