| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Lambda.ListEventSourceMappings
Description
Lists event source mappings. Specify an EventSourceArn to show only
event source mappings for a single event source.
This operation returns paginated results.
Synopsis
- data ListEventSourceMappings = ListEventSourceMappings' {}
- newListEventSourceMappings :: ListEventSourceMappings
- listEventSourceMappings_eventSourceArn :: Lens' ListEventSourceMappings (Maybe Text)
- listEventSourceMappings_functionName :: Lens' ListEventSourceMappings (Maybe Text)
- listEventSourceMappings_marker :: Lens' ListEventSourceMappings (Maybe Text)
- listEventSourceMappings_maxItems :: Lens' ListEventSourceMappings (Maybe Natural)
- data ListEventSourceMappingsResponse = ListEventSourceMappingsResponse' {}
- newListEventSourceMappingsResponse :: Int -> ListEventSourceMappingsResponse
- listEventSourceMappingsResponse_eventSourceMappings :: Lens' ListEventSourceMappingsResponse (Maybe [EventSourceMappingConfiguration])
- listEventSourceMappingsResponse_nextMarker :: Lens' ListEventSourceMappingsResponse (Maybe Text)
- listEventSourceMappingsResponse_httpStatus :: Lens' ListEventSourceMappingsResponse Int
Creating a Request
data ListEventSourceMappings Source #
See: newListEventSourceMappings smart constructor.
Constructors
| ListEventSourceMappings' | |
Fields
| |
Instances
newListEventSourceMappings :: ListEventSourceMappings Source #
Create a value of ListEventSourceMappings with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ListEventSourceMappings, listEventSourceMappings_eventSourceArn - The Amazon Resource Name (ARN) of the event source.
- Amazon Kinesis - The ARN of the data stream or a stream consumer.
- Amazon DynamoDB Streams - The ARN of the stream.
- Amazon Simple Queue Service - The ARN of the queue.
- Amazon Managed Streaming for Apache Kafka - The ARN of the cluster.
- Amazon MQ - The ARN of the broker.
ListEventSourceMappings, listEventSourceMappings_functionName - The name of the Lambda function.
Name formats
- Function name -
MyFunction. - Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction. - Version or Alias ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. - Partial ARN -
123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
$sel:marker:ListEventSourceMappings', listEventSourceMappings_marker - A pagination token returned by a previous call.
$sel:maxItems:ListEventSourceMappings', listEventSourceMappings_maxItems - The maximum number of event source mappings to return. Note that
ListEventSourceMappings returns a maximum of 100 items in each response,
even if you set the number higher.
Request Lenses
listEventSourceMappings_eventSourceArn :: Lens' ListEventSourceMappings (Maybe Text) Source #
The Amazon Resource Name (ARN) of the event source.
- Amazon Kinesis - The ARN of the data stream or a stream consumer.
- Amazon DynamoDB Streams - The ARN of the stream.
- Amazon Simple Queue Service - The ARN of the queue.
- Amazon Managed Streaming for Apache Kafka - The ARN of the cluster.
- Amazon MQ - The ARN of the broker.
listEventSourceMappings_functionName :: Lens' ListEventSourceMappings (Maybe Text) Source #
The name of the Lambda function.
Name formats
- Function name -
MyFunction. - Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction. - Version or Alias ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. - Partial ARN -
123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
listEventSourceMappings_marker :: Lens' ListEventSourceMappings (Maybe Text) Source #
A pagination token returned by a previous call.
listEventSourceMappings_maxItems :: Lens' ListEventSourceMappings (Maybe Natural) Source #
The maximum number of event source mappings to return. Note that ListEventSourceMappings returns a maximum of 100 items in each response, even if you set the number higher.
Destructuring the Response
data ListEventSourceMappingsResponse Source #
See: newListEventSourceMappingsResponse smart constructor.
Constructors
| ListEventSourceMappingsResponse' | |
Fields
| |
Instances
newListEventSourceMappingsResponse Source #
Create a value of ListEventSourceMappingsResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:eventSourceMappings:ListEventSourceMappingsResponse', listEventSourceMappingsResponse_eventSourceMappings - A list of event source mappings.
$sel:nextMarker:ListEventSourceMappingsResponse', listEventSourceMappingsResponse_nextMarker - A pagination token that's returned when the response doesn't contain
all event source mappings.
$sel:httpStatus:ListEventSourceMappingsResponse', listEventSourceMappingsResponse_httpStatus - The response's http status code.
Response Lenses
listEventSourceMappingsResponse_eventSourceMappings :: Lens' ListEventSourceMappingsResponse (Maybe [EventSourceMappingConfiguration]) Source #
A list of event source mappings.
listEventSourceMappingsResponse_nextMarker :: Lens' ListEventSourceMappingsResponse (Maybe Text) Source #
A pagination token that's returned when the response doesn't contain all event source mappings.
listEventSourceMappingsResponse_httpStatus :: Lens' ListEventSourceMappingsResponse Int Source #
The response's http status code.