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