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 |
Lists all incident records in your account. Use this command to retrieve the Amazon Resource Name (ARN) of the incident record you want to update.
This operation returns paginated results.
Synopsis
- data ListIncidentRecords = ListIncidentRecords' {}
- newListIncidentRecords :: ListIncidentRecords
- listIncidentRecords_filters :: Lens' ListIncidentRecords (Maybe [Filter])
- listIncidentRecords_maxResults :: Lens' ListIncidentRecords (Maybe Natural)
- listIncidentRecords_nextToken :: Lens' ListIncidentRecords (Maybe Text)
- data ListIncidentRecordsResponse = ListIncidentRecordsResponse' {}
- newListIncidentRecordsResponse :: Int -> ListIncidentRecordsResponse
- listIncidentRecordsResponse_nextToken :: Lens' ListIncidentRecordsResponse (Maybe Text)
- listIncidentRecordsResponse_httpStatus :: Lens' ListIncidentRecordsResponse Int
- listIncidentRecordsResponse_incidentRecordSummaries :: Lens' ListIncidentRecordsResponse [IncidentRecordSummary]
Creating a Request
data ListIncidentRecords Source #
See: newListIncidentRecords
smart constructor.
ListIncidentRecords' | |
|
Instances
newListIncidentRecords :: ListIncidentRecords Source #
Create a value of ListIncidentRecords
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:ListIncidentRecords'
, listIncidentRecords_filters
- Filters the list of incident records through which you are searching.
You can filter on the following keys:
creationTime
impact
status
createdBy
Note the following when deciding how to use Filters:
- If you don't specify a Filter, the response includes all incident records.
- If you specify more than one filter in a single request, the response returns incident records that match all filters.
- If you specify a filter with more than one value, the response returns incident records that match any of the values provided.
$sel:maxResults:ListIncidentRecords'
, listIncidentRecords_maxResults
- The maximum number of results per page.
ListIncidentRecords
, listIncidentRecords_nextToken
- The pagination token to continue to the next page of results.
Request Lenses
listIncidentRecords_filters :: Lens' ListIncidentRecords (Maybe [Filter]) Source #
Filters the list of incident records through which you are searching. You can filter on the following keys:
creationTime
impact
status
createdBy
Note the following when deciding how to use Filters:
- If you don't specify a Filter, the response includes all incident records.
- If you specify more than one filter in a single request, the response returns incident records that match all filters.
- If you specify a filter with more than one value, the response returns incident records that match any of the values provided.
listIncidentRecords_maxResults :: Lens' ListIncidentRecords (Maybe Natural) Source #
The maximum number of results per page.
listIncidentRecords_nextToken :: Lens' ListIncidentRecords (Maybe Text) Source #
The pagination token to continue to the next page of results.
Destructuring the Response
data ListIncidentRecordsResponse Source #
See: newListIncidentRecordsResponse
smart constructor.
ListIncidentRecordsResponse' | |
|
Instances
newListIncidentRecordsResponse Source #
Create a value of ListIncidentRecordsResponse
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:
ListIncidentRecords
, listIncidentRecordsResponse_nextToken
- The pagination token to continue to the next page of results.
$sel:httpStatus:ListIncidentRecordsResponse'
, listIncidentRecordsResponse_httpStatus
- The response's http status code.
$sel:incidentRecordSummaries:ListIncidentRecordsResponse'
, listIncidentRecordsResponse_incidentRecordSummaries
- The details of each listed incident record.
Response Lenses
listIncidentRecordsResponse_nextToken :: Lens' ListIncidentRecordsResponse (Maybe Text) Source #
The pagination token to continue to the next page of results.
listIncidentRecordsResponse_httpStatus :: Lens' ListIncidentRecordsResponse Int Source #
The response's http status code.
listIncidentRecordsResponse_incidentRecordSummaries :: Lens' ListIncidentRecordsResponse [IncidentRecordSummary] Source #
The details of each listed incident record.