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

This operation returns paginated results.

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. 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 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 -> () #

AWSPager ListAliases # 
AWSRequest ListAliases # 
ToHeaders ListAliases # 

Methods

toHeaders :: ListAliases -> [Header] #

ToPath ListAliases # 
ToQuery ListAliases # 
type Rep ListAliases # 
type Rep ListAliases = D1 * (MetaData "ListAliases" "Network.AWS.Lambda.ListAliases" "amazonka-lambda-1.6.0-1S46uL4BR98AJZY1Yda4oo" 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. 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

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.6.0-1S46uL4BR98AJZY1Yda4oo" 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 DecidedStrict) (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.