| 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.CloudWatchEvents.ListEventBuses
Description
Lists all the event buses in your account, including the default event bus, custom event buses, and partner event buses.
Synopsis
- data ListEventBuses = ListEventBuses' {}
- newListEventBuses :: ListEventBuses
- listEventBuses_limit :: Lens' ListEventBuses (Maybe Natural)
- listEventBuses_namePrefix :: Lens' ListEventBuses (Maybe Text)
- listEventBuses_nextToken :: Lens' ListEventBuses (Maybe Text)
- data ListEventBusesResponse = ListEventBusesResponse' {
- eventBuses :: Maybe [EventBus]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListEventBusesResponse :: Int -> ListEventBusesResponse
- listEventBusesResponse_eventBuses :: Lens' ListEventBusesResponse (Maybe [EventBus])
- listEventBusesResponse_nextToken :: Lens' ListEventBusesResponse (Maybe Text)
- listEventBusesResponse_httpStatus :: Lens' ListEventBusesResponse Int
Creating a Request
data ListEventBuses Source #
See: newListEventBuses smart constructor.
Constructors
| ListEventBuses' | |
Fields
| |
Instances
newListEventBuses :: ListEventBuses Source #
Create a value of ListEventBuses 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:limit:ListEventBuses', listEventBuses_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.
$sel:namePrefix:ListEventBuses', listEventBuses_namePrefix - Specifying this limits the results to only those event buses with names
that start with the specified prefix.
ListEventBuses, listEventBuses_nextToken - The token returned by a previous call to retrieve the next set of
results.
Request Lenses
listEventBuses_limit :: Lens' ListEventBuses (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.
listEventBuses_namePrefix :: Lens' ListEventBuses (Maybe Text) Source #
Specifying this limits the results to only those event buses with names that start with the specified prefix.
listEventBuses_nextToken :: Lens' ListEventBuses (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
Destructuring the Response
data ListEventBusesResponse Source #
See: newListEventBusesResponse smart constructor.
Constructors
| ListEventBusesResponse' | |
Fields
| |
Instances
newListEventBusesResponse Source #
Create a value of ListEventBusesResponse 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:
ListEventBusesResponse, listEventBusesResponse_eventBuses - This list of event buses.
ListEventBuses, listEventBusesResponse_nextToken - A token you can use in a subsequent operation to retrieve the next set
of results.
$sel:httpStatus:ListEventBusesResponse', listEventBusesResponse_httpStatus - The response's http status code.
Response Lenses
listEventBusesResponse_eventBuses :: Lens' ListEventBusesResponse (Maybe [EventBus]) Source #
This list of event buses.
listEventBusesResponse_nextToken :: Lens' ListEventBusesResponse (Maybe Text) Source #
A token you can use in a subsequent operation to retrieve the next set of results.
listEventBusesResponse_httpStatus :: Lens' ListEventBusesResponse Int Source #
The response's http status code.