amazonka-lambda-1.4.5: Amazon Lambda SDK.

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

Network.AWS.Lambda.ListAliases

Contents

Description

Returns list of aliases created for a Lambda function. For each alias, the response includes information such as the alias ARN, description, alias name, and the function version to which it points. For more information, see Introduction to AWS Lambda Aliases .

This requires permission for the lambda:ListAliases action.

Synopsis

Creating a Request

listAliases #

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

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

  • laMarker - Optional string. An opaque pagination token returned from a previous ListAliases operation. If present, indicates where to continue the listing.
  • laMaxItems - Optional integer. Specifies the maximum number of aliases to return in response. This parameter value must be greater than 0.
  • laFunctionVersion - If you specify this optional parameter, the API returns only the aliases that are pointing to the specific Lambda function version, otherwise the API returns all of the aliases created for the Lambda function.
  • laFunctionName - Lambda function name for which the alias is created.

data ListAliases #

See: listAliases smart constructor.

Instances

Eq ListAliases # 
Data ListAliases # 

Methods

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

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

toConstr :: ListAliases -> Constr #

dataTypeOf :: ListAliases -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListAliases # 
Show ListAliases # 
Generic ListAliases # 

Associated Types

type Rep ListAliases :: * -> * #

Hashable ListAliases # 
NFData ListAliases # 

Methods

rnf :: ListAliases -> () #

AWSRequest ListAliases # 
ToQuery ListAliases # 
ToPath ListAliases # 
ToHeaders ListAliases # 

Methods

toHeaders :: ListAliases -> [Header] #

type Rep ListAliases # 
type Rep ListAliases = D1 (MetaData "ListAliases" "Network.AWS.Lambda.ListAliases" "amazonka-lambda-1.4.5-HBw5BdgXNtO3bSf0cOyCBw" False) (C1 (MetaCons "ListAliases'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_laMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_laMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)))) ((:*:) (S1 (MetaSel (Just Symbol "_laFunctionVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_laFunctionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ListAliases # 

Request Lenses

laMarker :: Lens' ListAliases (Maybe Text) #

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

laMaxItems :: Lens' ListAliases (Maybe Natural) #

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

laFunctionVersion :: Lens' ListAliases (Maybe Text) #

If you specify this optional parameter, the API returns only the aliases that are pointing to the specific Lambda function version, otherwise the API returns all of the aliases created for the Lambda function.

laFunctionName :: Lens' ListAliases Text #

Lambda function name for which the alias is created.

Destructuring the Response

listAliasesResponse #

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

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

data ListAliasesResponse #

See: listAliasesResponse smart constructor.

Instances

Eq ListAliasesResponse # 
Data ListAliasesResponse # 

Methods

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

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

toConstr :: ListAliasesResponse -> Constr #

dataTypeOf :: ListAliasesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListAliasesResponse # 
Show ListAliasesResponse # 
Generic ListAliasesResponse # 
NFData ListAliasesResponse # 

Methods

rnf :: ListAliasesResponse -> () #

type Rep ListAliasesResponse # 
type Rep ListAliasesResponse = D1 (MetaData "ListAliasesResponse" "Network.AWS.Lambda.ListAliases" "amazonka-lambda-1.4.5-HBw5BdgXNtO3bSf0cOyCBw" False) (C1 (MetaCons "ListAliasesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_larsAliases") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [AliasConfiguration]))) ((:*:) (S1 (MetaSel (Just Symbol "_larsNextMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_larsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

larsNextMarker :: Lens' ListAliasesResponse (Maybe Text) #

A string, present if there are more aliases.

larsResponseStatus :: Lens' ListAliasesResponse Int #

  • - | The response status code.