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 |
You can use this to see all the partner event sources that have been shared with your Amazon Web Services account. For more information about partner event sources, see CreateEventBus.
Synopsis
- data ListEventSources = ListEventSources' {}
- newListEventSources :: ListEventSources
- listEventSources_nextToken :: Lens' ListEventSources (Maybe Text)
- listEventSources_namePrefix :: Lens' ListEventSources (Maybe Text)
- listEventSources_limit :: Lens' ListEventSources (Maybe Natural)
- data ListEventSourcesResponse = ListEventSourcesResponse' {
- nextToken :: Maybe Text
- eventSources :: Maybe [EventSource]
- httpStatus :: Int
- newListEventSourcesResponse :: Int -> ListEventSourcesResponse
- listEventSourcesResponse_nextToken :: Lens' ListEventSourcesResponse (Maybe Text)
- listEventSourcesResponse_eventSources :: Lens' ListEventSourcesResponse (Maybe [EventSource])
- listEventSourcesResponse_httpStatus :: Lens' ListEventSourcesResponse Int
Creating a Request
data ListEventSources Source #
See: newListEventSources
smart constructor.
ListEventSources' | |
|
Instances
newListEventSources :: ListEventSources Source #
Create a value of ListEventSources
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:nextToken:ListEventSources'
, listEventSources_nextToken
- The token returned by a previous call to retrieve the next set of
results.
$sel:namePrefix:ListEventSources'
, listEventSources_namePrefix
- Specifying this limits the results to only those partner event sources
with names that start with the specified prefix.
$sel:limit:ListEventSources'
, listEventSources_limit
- Specifying this limits the number of results returned by this operation.
The operation also returns a NextToken which you can use in a subsequent
operation to retrieve the next set of results.
Request Lenses
listEventSources_nextToken :: Lens' ListEventSources (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
listEventSources_namePrefix :: Lens' ListEventSources (Maybe Text) Source #
Specifying this limits the results to only those partner event sources with names that start with the specified prefix.
listEventSources_limit :: Lens' ListEventSources (Maybe Natural) Source #
Specifying this limits the number of results returned by this operation. The operation also returns a NextToken which you can use in a subsequent operation to retrieve the next set of results.
Destructuring the Response
data ListEventSourcesResponse Source #
See: newListEventSourcesResponse
smart constructor.
ListEventSourcesResponse' | |
|
Instances
newListEventSourcesResponse Source #
Create a value of ListEventSourcesResponse
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:nextToken:ListEventSources'
, listEventSourcesResponse_nextToken
- A token you can use in a subsequent operation to retrieve the next set
of results.
$sel:eventSources:ListEventSourcesResponse'
, listEventSourcesResponse_eventSources
- The list of event sources.
$sel:httpStatus:ListEventSourcesResponse'
, listEventSourcesResponse_httpStatus
- The response's http status code.
Response Lenses
listEventSourcesResponse_nextToken :: Lens' ListEventSourcesResponse (Maybe Text) Source #
A token you can use in a subsequent operation to retrieve the next set of results.
listEventSourcesResponse_eventSources :: Lens' ListEventSourcesResponse (Maybe [EventSource]) Source #
The list of event sources.
listEventSourcesResponse_httpStatus :: Lens' ListEventSourcesResponse Int Source #
The response's http status code.