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.ListVersionsByFunction

Contents

Description

List all versions of a function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases .

Synopsis

Creating a Request

listVersionsByFunction #

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

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

  • lvbfMarker - Optional string. An opaque pagination token returned from a previous ListVersionsByFunction operation. If present, indicates where to continue the listing.
  • lvbfMaxItems - Optional integer. Specifies the maximum number of AWS Lambda function versions to return in response. This parameter value must be greater than 0.
  • lvbfFunctionName - Function name whose versions to list. You can specify a function name (for example, Thumbnail ) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail ). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

data ListVersionsByFunction #

See: listVersionsByFunction smart constructor.

Instances

Eq ListVersionsByFunction # 
Data ListVersionsByFunction # 

Methods

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

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

toConstr :: ListVersionsByFunction -> Constr #

dataTypeOf :: ListVersionsByFunction -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListVersionsByFunction # 
Show ListVersionsByFunction # 
Generic ListVersionsByFunction # 
Hashable ListVersionsByFunction # 
NFData ListVersionsByFunction # 

Methods

rnf :: ListVersionsByFunction -> () #

AWSRequest ListVersionsByFunction # 
ToHeaders ListVersionsByFunction # 
ToPath ListVersionsByFunction # 
ToQuery ListVersionsByFunction # 
type Rep ListVersionsByFunction # 
type Rep ListVersionsByFunction = D1 * (MetaData "ListVersionsByFunction" "Network.AWS.Lambda.ListVersionsByFunction" "amazonka-lambda-1.6.0-1S46uL4BR98AJZY1Yda4oo" False) (C1 * (MetaCons "ListVersionsByFunction'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_lvbfMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lvbfMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_lvbfFunctionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs ListVersionsByFunction # 

Request Lenses

lvbfMarker :: Lens' ListVersionsByFunction (Maybe Text) #

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

lvbfMaxItems :: Lens' ListVersionsByFunction (Maybe Natural) #

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

lvbfFunctionName :: Lens' ListVersionsByFunction Text #

Function name whose versions to list. You can specify a function name (for example, Thumbnail ) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail ). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

Destructuring the Response

listVersionsByFunctionResponse #

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

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

data ListVersionsByFunctionResponse #

See: listVersionsByFunctionResponse smart constructor.

Instances

Eq ListVersionsByFunctionResponse # 
Data ListVersionsByFunctionResponse # 

Methods

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

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

toConstr :: ListVersionsByFunctionResponse -> Constr #

dataTypeOf :: ListVersionsByFunctionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListVersionsByFunctionResponse # 
Generic ListVersionsByFunctionResponse # 
NFData ListVersionsByFunctionResponse # 
type Rep ListVersionsByFunctionResponse # 
type Rep ListVersionsByFunctionResponse = D1 * (MetaData "ListVersionsByFunctionResponse" "Network.AWS.Lambda.ListVersionsByFunction" "amazonka-lambda-1.6.0-1S46uL4BR98AJZY1Yda4oo" False) (C1 * (MetaCons "ListVersionsByFunctionResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_lvbfrsVersions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [FunctionConfiguration]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lvbfrsNextMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_lvbfrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

lvbfrsNextMarker :: Lens' ListVersionsByFunctionResponse (Maybe Text) #

A string, present if there are more function versions.