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 |
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.
Instances
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:
$sel:keyValue:DescribeAlarm'
, describeAlarm_keyValue
- The value of the key used as a filter to select only the alarms
associated with the
key.
$sel:alarmModelName: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.
DescribeAlarmResponse' | |
|
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.