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

Contents

Description

Returns a list of event source mappings you created using the CreateEventSourceMapping (see CreateEventSourceMapping ).

For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings.

If you are using the versioning feature, you can get list of event source mappings for a specific Lambda function version or an alias as described in the FunctionName parameter. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases .

This operation requires permission for the lambda:ListEventSourceMappings action.

This operation returns paginated results.

Synopsis

Creating a Request

listEventSourceMappings :: ListEventSourceMappings #

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

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

  • lesmEventSourceARN - The Amazon Resource Name (ARN) of the Amazon Kinesis stream. (This parameter is optional.)
  • lesmMarker - Optional string. An opaque pagination token returned from a previous ListEventSourceMappings operation. If present, specifies to continue the list from where the returning call left off.
  • lesmMaxItems - Optional integer. Specifies the maximum number of event sources to return in response. This value must be greater than 0.
  • lesmFunctionName - The name of the Lambda function. You can specify the 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 ). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (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 ListEventSourceMappings #

See: listEventSourceMappings smart constructor.

Instances
Eq ListEventSourceMappings # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

Data ListEventSourceMappings # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

Methods

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

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

toConstr :: ListEventSourceMappings -> Constr #

dataTypeOf :: ListEventSourceMappings -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListEventSourceMappings # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

Show ListEventSourceMappings # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

Generic ListEventSourceMappings # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

Associated Types

type Rep ListEventSourceMappings :: * -> * #

Hashable ListEventSourceMappings # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

AWSPager ListEventSourceMappings # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

AWSRequest ListEventSourceMappings # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

Associated Types

type Rs ListEventSourceMappings :: * #

ToHeaders ListEventSourceMappings # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

ToPath ListEventSourceMappings # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

ToQuery ListEventSourceMappings # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

NFData ListEventSourceMappings # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

Methods

rnf :: ListEventSourceMappings -> () #

type Rep ListEventSourceMappings # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

type Rep ListEventSourceMappings = D1 (MetaData "ListEventSourceMappings" "Network.AWS.Lambda.ListEventSourceMappings" "amazonka-lambda-1.6.0-D3hS9Z0ijE3IFXiRaysmdV" False) (C1 (MetaCons "ListEventSourceMappings'" PrefixI True) ((S1 (MetaSel (Just "_lesmEventSourceARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lesmMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_lesmMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_lesmFunctionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Rs ListEventSourceMappings # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

Request Lenses

lesmEventSourceARN :: Lens' ListEventSourceMappings (Maybe Text) #

The Amazon Resource Name (ARN) of the Amazon Kinesis stream. (This parameter is optional.)

lesmMarker :: Lens' ListEventSourceMappings (Maybe Text) #

Optional string. An opaque pagination token returned from a previous ListEventSourceMappings operation. If present, specifies to continue the list from where the returning call left off.

lesmMaxItems :: Lens' ListEventSourceMappings (Maybe Natural) #

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

lesmFunctionName :: Lens' ListEventSourceMappings (Maybe Text) #

The name of the Lambda function. You can specify the 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 ). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (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

listEventSourceMappingsResponse #

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

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

data ListEventSourceMappingsResponse #

Contains a list of event sources (see EventSourceMappingConfiguration )

See: listEventSourceMappingsResponse smart constructor.

Instances
Eq ListEventSourceMappingsResponse # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

Data ListEventSourceMappingsResponse # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

Methods

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

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

toConstr :: ListEventSourceMappingsResponse -> Constr #

dataTypeOf :: ListEventSourceMappingsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListEventSourceMappingsResponse # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

Show ListEventSourceMappingsResponse # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

Generic ListEventSourceMappingsResponse # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

Associated Types

type Rep ListEventSourceMappingsResponse :: * -> * #

NFData ListEventSourceMappingsResponse # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

type Rep ListEventSourceMappingsResponse # 
Instance details

Defined in Network.AWS.Lambda.ListEventSourceMappings

type Rep ListEventSourceMappingsResponse = D1 (MetaData "ListEventSourceMappingsResponse" "Network.AWS.Lambda.ListEventSourceMappings" "amazonka-lambda-1.6.0-D3hS9Z0ijE3IFXiRaysmdV" False) (C1 (MetaCons "ListEventSourceMappingsResponse'" PrefixI True) (S1 (MetaSel (Just "_lesmrsEventSourceMappings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [EventSourceMappingConfiguration])) :*: (S1 (MetaSel (Just "_lesmrsNextMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lesmrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

lesmrsNextMarker :: Lens' ListEventSourceMappingsResponse (Maybe Text) #

A string, present if there are more event source mappings.