amazonka-lambda-1.6.0: Amazon Lambda SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Lambda.ListFunctions

Contents

Description

Returns a list of your Lambda functions. For each function, the response includes the function configuration information. You must use GetFunction to retrieve the code for your function.

This operation requires permission for the lambda:ListFunctions action.

If you are using the versioning feature, you can list all of your functions or only > LATEST versions. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases .

This operation returns paginated results.

Synopsis

Creating a Request

listFunctions :: ListFunctions Source #

Creates a value of ListFunctions with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lfMasterRegion - Optional string. If not specified, will return only regular function versions (i.e., non-replicated versions). Valid values are: The region from which the functions are replicated. For example, if you specify us-east-1 , only functions replicated from that region will be returned. ALL : Will return all functions from any region. If specified, you also must specify a valid FunctionVersion parameter.
  • lfMarker - Optional string. An opaque pagination token returned from a previous ListFunctions operation. If present, indicates where to continue the listing.
  • lfMaxItems - Optional integer. Specifies the maximum number of AWS Lambda functions to return in response. This parameter value must be greater than 0.
  • lfFunctionVersion - Optional string. If not specified, only the unqualified functions ARNs (Amazon Resource Names) will be returned. Valid value: ALL : Will return all versions, including > LATEST which will have fully qualified ARNs (Amazon Resource Names).

data ListFunctions Source #

See: listFunctions smart constructor.

Instances

Eq ListFunctions Source # 
Data ListFunctions Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListFunctions -> c ListFunctions #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListFunctions #

toConstr :: ListFunctions -> Constr #

dataTypeOf :: ListFunctions -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListFunctions) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListFunctions) #

gmapT :: (forall b. Data b => b -> b) -> ListFunctions -> ListFunctions #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListFunctions -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListFunctions -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListFunctions -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListFunctions -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListFunctions -> m ListFunctions #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListFunctions -> m ListFunctions #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListFunctions -> m ListFunctions #

Read ListFunctions Source # 
Show ListFunctions Source # 
Generic ListFunctions Source # 

Associated Types

type Rep ListFunctions :: * -> * #

Hashable ListFunctions Source # 
NFData ListFunctions Source # 

Methods

rnf :: ListFunctions -> () #

AWSPager ListFunctions Source # 
AWSRequest ListFunctions Source # 
ToHeaders ListFunctions Source # 
ToPath ListFunctions Source # 
ToQuery ListFunctions Source # 
type Rep ListFunctions Source # 
type Rep ListFunctions = D1 * (MetaData "ListFunctions" "Network.AWS.Lambda.ListFunctions" "amazonka-lambda-1.6.0-BCoVnxAqk5DEBm6Teqtlxw" False) (C1 * (MetaCons "ListFunctions'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_lfMasterRegion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_lfMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lfMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_lfFunctionVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe FunctionVersion))))))
type Rs ListFunctions Source # 

Request Lenses

lfMasterRegion :: Lens' ListFunctions (Maybe Text) Source #

Optional string. If not specified, will return only regular function versions (i.e., non-replicated versions). Valid values are: The region from which the functions are replicated. For example, if you specify us-east-1 , only functions replicated from that region will be returned. ALL : Will return all functions from any region. If specified, you also must specify a valid FunctionVersion parameter.

lfMarker :: Lens' ListFunctions (Maybe Text) Source #

Optional string. An opaque pagination token returned from a previous ListFunctions operation. If present, indicates where to continue the listing.

lfMaxItems :: Lens' ListFunctions (Maybe Natural) Source #

Optional integer. Specifies the maximum number of AWS Lambda functions to return in response. This parameter value must be greater than 0.

lfFunctionVersion :: Lens' ListFunctions (Maybe FunctionVersion) Source #

Optional string. If not specified, only the unqualified functions ARNs (Amazon Resource Names) will be returned. Valid value: ALL : Will return all versions, including > LATEST which will have fully qualified ARNs (Amazon Resource Names).

Destructuring the Response

listFunctionsResponse Source #

Creates a value of ListFunctionsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ListFunctionsResponse Source #

Contains a list of AWS Lambda function configurations (see FunctionConfiguration .

See: listFunctionsResponse smart constructor.

Instances

Eq ListFunctionsResponse Source # 
Data ListFunctionsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListFunctionsResponse -> c ListFunctionsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListFunctionsResponse #

toConstr :: ListFunctionsResponse -> Constr #

dataTypeOf :: ListFunctionsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListFunctionsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListFunctionsResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListFunctionsResponse -> ListFunctionsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListFunctionsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListFunctionsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListFunctionsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListFunctionsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListFunctionsResponse -> m ListFunctionsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListFunctionsResponse -> m ListFunctionsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListFunctionsResponse -> m ListFunctionsResponse #

Show ListFunctionsResponse Source # 
Generic ListFunctionsResponse Source # 
NFData ListFunctionsResponse Source # 

Methods

rnf :: ListFunctionsResponse -> () #

type Rep ListFunctionsResponse Source # 
type Rep ListFunctionsResponse = D1 * (MetaData "ListFunctionsResponse" "Network.AWS.Lambda.ListFunctions" "amazonka-lambda-1.6.0-BCoVnxAqk5DEBm6Teqtlxw" False) (C1 * (MetaCons "ListFunctionsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_lfrsNextMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lfrsFunctions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [FunctionConfiguration]))) (S1 * (MetaSel (Just Symbol "_lfrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

lfrsNextMarker :: Lens' ListFunctionsResponse (Maybe Text) Source #

A string, present if there are more functions.

lfrsResponseStatus :: Lens' ListFunctionsResponse Int Source #

  • - | The response status code.