amazonka-lambda-2.0: Amazon Lambda SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data ListFunctions Source #

See: newListFunctions smart constructor.

Constructors

ListFunctions' 

Fields

  • functionVersion :: Maybe FunctionVersion

    Set to ALL to include entries for all published versions of each function.

  • marker :: Maybe Text

    Specify the pagination token that's returned by a previous request to retrieve the next page of results.

  • masterRegion :: Maybe Text

    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.

  • maxItems :: Maybe Natural

    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.

Instances

Instances details
ToHeaders ListFunctions Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

ToPath ListFunctions Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

ToQuery ListFunctions Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

AWSPager ListFunctions Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

AWSRequest ListFunctions Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

Associated Types

type AWSResponse ListFunctions #

Generic ListFunctions Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

Associated Types

type Rep ListFunctions :: Type -> Type #

Read ListFunctions Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

Show ListFunctions Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

NFData ListFunctions Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

Methods

rnf :: ListFunctions -> () #

Eq ListFunctions Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

Hashable ListFunctions Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

type AWSResponse ListFunctions Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

type Rep ListFunctions Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

type Rep ListFunctions = D1 ('MetaData "ListFunctions" "Amazonka.Lambda.ListFunctions" "amazonka-lambda-2.0-FcjxCCKaCGK94C2lDO9alC" 'False) (C1 ('MetaCons "ListFunctions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "functionVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionVersion)) :*: S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "masterRegion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))

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

Instances details
Generic ListFunctionsResponse Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

Associated Types

type Rep ListFunctionsResponse :: Type -> Type #

Show ListFunctionsResponse Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

NFData ListFunctionsResponse Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

Methods

rnf :: ListFunctionsResponse -> () #

Eq ListFunctionsResponse Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

type Rep ListFunctionsResponse Source # 
Instance details

Defined in Amazonka.Lambda.ListFunctions

type Rep ListFunctionsResponse = D1 ('MetaData "ListFunctionsResponse" "Amazonka.Lambda.ListFunctions" "amazonka-lambda-2.0-FcjxCCKaCGK94C2lDO9alC" 'False) (C1 ('MetaCons "ListFunctionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "functions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FunctionConfiguration])) :*: (S1 ('MetaSel ('Just "nextMarker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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_nextMarker :: Lens' ListFunctionsResponse (Maybe Text) Source #

The pagination token that's included if more results are available.