ListEventSourceMappings

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.

Request Syntax

Copy

GET /2015-03-31/event-source-mappings/?EventSourceArn=EventSourceArn&FunctionName=FunctionName&Marker=Marker&MaxItems=MaxItems HTTP/1.1

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.

Errors

InvalidParameterValueException

One of the parameters in the request is invalid. For example,
if you provided an IAM role for AWS Lambda to assume
in the CreateFunction or the UpdateFunctionConfiguration API,
that AWS Lambda is unable to assume you will get this exception. You will also get
this exception if you have selected a deprecated runtime, such as Node v0.10.42.

HTTP Status Code: 400

ResourceNotFoundException

The resource (for example, a Lambda function or access policy statement) specified
in the request does not exist.

HTTP Status Code: 404

ServiceException

The AWS Lambda service encountered an internal error.

HTTP Status Code: 500

TooManyRequestsException

HTTP Status Code: 429

See Also

For more information about using this API in one of the language-specific AWS SDKs,
see the following: