Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Lists event source mappings. Specify an EventSourceArn
to only show
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_marker :: Lens' ListEventSourceMappings (Maybe Text)
- listEventSourceMappings_maxItems :: Lens' ListEventSourceMappings (Maybe Natural)
- listEventSourceMappings_functionName :: Lens' ListEventSourceMappings (Maybe Text)
- 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.
ListEventSourceMappings' | |
|
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:
$sel:eventSourceArn: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.
$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.
$sel:functionName: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.
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.
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.
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.
Destructuring the Response
data ListEventSourceMappingsResponse Source #
See: newListEventSourceMappingsResponse
smart constructor.
ListEventSourceMappingsResponse' | |
|
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.