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 one or more alarms. The operation returns only the metadata associated with each alarm.
Synopsis
- data ListAlarms = ListAlarms' {}
- newListAlarms :: Text -> ListAlarms
- listAlarms_nextToken :: Lens' ListAlarms (Maybe Text)
- listAlarms_maxResults :: Lens' ListAlarms (Maybe Natural)
- listAlarms_alarmModelName :: Lens' ListAlarms Text
- data ListAlarmsResponse = ListAlarmsResponse' {
- nextToken :: Maybe Text
- alarmSummaries :: Maybe [AlarmSummary]
- httpStatus :: Int
- newListAlarmsResponse :: Int -> ListAlarmsResponse
- listAlarmsResponse_nextToken :: Lens' ListAlarmsResponse (Maybe Text)
- listAlarmsResponse_alarmSummaries :: Lens' ListAlarmsResponse (Maybe [AlarmSummary])
- listAlarmsResponse_httpStatus :: Lens' ListAlarmsResponse Int
Creating a Request
data ListAlarms Source #
See: newListAlarms
smart constructor.
ListAlarms' | |
|
Instances
Create a value of ListAlarms
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:ListAlarms'
, listAlarms_nextToken
- The token that you can use to return the next set of results.
$sel:maxResults:ListAlarms'
, listAlarms_maxResults
- The maximum number of results to be returned per request.
$sel:alarmModelName:ListAlarms'
, listAlarms_alarmModelName
- The name of the alarm model.
Request Lenses
listAlarms_nextToken :: Lens' ListAlarms (Maybe Text) Source #
The token that you can use to return the next set of results.
listAlarms_maxResults :: Lens' ListAlarms (Maybe Natural) Source #
The maximum number of results to be returned per request.
listAlarms_alarmModelName :: Lens' ListAlarms Text Source #
The name of the alarm model.
Destructuring the Response
data ListAlarmsResponse Source #
See: newListAlarmsResponse
smart constructor.
ListAlarmsResponse' | |
|
Instances
newListAlarmsResponse Source #
Create a value of ListAlarmsResponse
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:ListAlarms'
, listAlarmsResponse_nextToken
- The token that you can use to return the next set of results, or null
if there are no more results.
$sel:alarmSummaries:ListAlarmsResponse'
, listAlarmsResponse_alarmSummaries
- A list that summarizes each alarm.
$sel:httpStatus:ListAlarmsResponse'
, listAlarmsResponse_httpStatus
- The response's http status code.
Response Lenses
listAlarmsResponse_nextToken :: Lens' ListAlarmsResponse (Maybe Text) Source #
The token that you can use to return the next set of results, or null
if there are no more results.
listAlarmsResponse_alarmSummaries :: Lens' ListAlarmsResponse (Maybe [AlarmSummary]) Source #
A list that summarizes each alarm.
listAlarmsResponse_httpStatus :: Lens' ListAlarmsResponse Int Source #
The response's http status code.