| 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.DescribeAlarm
Description
Retrieves information about an alarm.
Synopsis
- data DescribeAlarm = DescribeAlarm' {
- keyValue :: Maybe Text
- alarmModelName :: Text
- newDescribeAlarm :: Text -> DescribeAlarm
- describeAlarm_keyValue :: Lens' DescribeAlarm (Maybe Text)
- describeAlarm_alarmModelName :: Lens' DescribeAlarm Text
- data DescribeAlarmResponse = DescribeAlarmResponse' {
- alarm :: Maybe Alarm
- httpStatus :: Int
- newDescribeAlarmResponse :: Int -> DescribeAlarmResponse
- describeAlarmResponse_alarm :: Lens' DescribeAlarmResponse (Maybe Alarm)
- describeAlarmResponse_httpStatus :: Lens' DescribeAlarmResponse Int
Creating a Request
data DescribeAlarm Source #
See: newDescribeAlarm smart constructor.
Constructors
| DescribeAlarm' | |
Instances
Arguments
| :: Text | |
| -> DescribeAlarm |
Create a value of DescribeAlarm 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:
DescribeAlarm, describeAlarm_keyValue - The value of the key used as a filter to select only the alarms
associated with the
key.
DescribeAlarm, describeAlarm_alarmModelName - The name of the alarm model.
Request Lenses
describeAlarm_keyValue :: Lens' DescribeAlarm (Maybe Text) Source #
The value of the key used as a filter to select only the alarms associated with the key.
describeAlarm_alarmModelName :: Lens' DescribeAlarm Text Source #
The name of the alarm model.
Destructuring the Response
data DescribeAlarmResponse Source #
See: newDescribeAlarmResponse smart constructor.
Constructors
| DescribeAlarmResponse' | |
Fields
| |
Instances
newDescribeAlarmResponse Source #
Create a value of DescribeAlarmResponse 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:alarm:DescribeAlarmResponse', describeAlarmResponse_alarm - Contains information about an alarm.
$sel:httpStatus:DescribeAlarmResponse', describeAlarmResponse_httpStatus - The response's http status code.
Response Lenses
describeAlarmResponse_alarm :: Lens' DescribeAlarmResponse (Maybe Alarm) Source #
Contains information about an alarm.
describeAlarmResponse_httpStatus :: Lens' DescribeAlarmResponse Int Source #
The response's http status code.