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 |
Returns a list of all OpsItem events in the current Amazon Web Services Region and Amazon Web Services account. You can limit the results to events associated with specific OpsItems by specifying a filter.
This operation returns paginated results.
Synopsis
- data ListOpsItemEvents = ListOpsItemEvents' {}
- newListOpsItemEvents :: ListOpsItemEvents
- listOpsItemEvents_filters :: Lens' ListOpsItemEvents (Maybe [OpsItemEventFilter])
- listOpsItemEvents_nextToken :: Lens' ListOpsItemEvents (Maybe Text)
- listOpsItemEvents_maxResults :: Lens' ListOpsItemEvents (Maybe Natural)
- data ListOpsItemEventsResponse = ListOpsItemEventsResponse' {
- nextToken :: Maybe Text
- summaries :: Maybe [OpsItemEventSummary]
- httpStatus :: Int
- newListOpsItemEventsResponse :: Int -> ListOpsItemEventsResponse
- listOpsItemEventsResponse_nextToken :: Lens' ListOpsItemEventsResponse (Maybe Text)
- listOpsItemEventsResponse_summaries :: Lens' ListOpsItemEventsResponse (Maybe [OpsItemEventSummary])
- listOpsItemEventsResponse_httpStatus :: Lens' ListOpsItemEventsResponse Int
Creating a Request
data ListOpsItemEvents Source #
See: newListOpsItemEvents
smart constructor.
ListOpsItemEvents' | |
|
Instances
newListOpsItemEvents :: ListOpsItemEvents Source #
Create a value of ListOpsItemEvents
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:filters:ListOpsItemEvents'
, listOpsItemEvents_filters
- One or more OpsItem filters. Use a filter to return a more specific list
of results.
$sel:nextToken:ListOpsItemEvents'
, listOpsItemEvents_nextToken
- A token to start the list. Use this token to get the next set of
results.
$sel:maxResults:ListOpsItemEvents'
, listOpsItemEvents_maxResults
- The maximum number of items to return for this call. The call also
returns a token that you can specify in a subsequent call to get the
next set of results.
Request Lenses
listOpsItemEvents_filters :: Lens' ListOpsItemEvents (Maybe [OpsItemEventFilter]) Source #
One or more OpsItem filters. Use a filter to return a more specific list of results.
listOpsItemEvents_nextToken :: Lens' ListOpsItemEvents (Maybe Text) Source #
A token to start the list. Use this token to get the next set of results.
listOpsItemEvents_maxResults :: Lens' ListOpsItemEvents (Maybe Natural) Source #
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
Destructuring the Response
data ListOpsItemEventsResponse Source #
See: newListOpsItemEventsResponse
smart constructor.
ListOpsItemEventsResponse' | |
|
Instances
newListOpsItemEventsResponse Source #
Create a value of ListOpsItemEventsResponse
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:ListOpsItemEvents'
, listOpsItemEventsResponse_nextToken
- The token for the next set of items to return. Use this token to get the
next set of results.
$sel:summaries:ListOpsItemEventsResponse'
, listOpsItemEventsResponse_summaries
- A list of event information for the specified OpsItems.
$sel:httpStatus:ListOpsItemEventsResponse'
, listOpsItemEventsResponse_httpStatus
- The response's http status code.
Response Lenses
listOpsItemEventsResponse_nextToken :: Lens' ListOpsItemEventsResponse (Maybe Text) Source #
The token for the next set of items to return. Use this token to get the next set of results.
listOpsItemEventsResponse_summaries :: Lens' ListOpsItemEventsResponse (Maybe [OpsItemEventSummary]) Source #
A list of event information for the specified OpsItems.
listOpsItemEventsResponse_httpStatus :: Lens' ListOpsItemEventsResponse Int Source #
The response's http status code.