| 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.IoT.Types.CloudwatchAlarmAction
Description
Synopsis
- data CloudwatchAlarmAction = CloudwatchAlarmAction' {
- roleArn :: Text
- alarmName :: Text
- stateReason :: Text
- stateValue :: Text
- newCloudwatchAlarmAction :: Text -> Text -> Text -> Text -> CloudwatchAlarmAction
- cloudwatchAlarmAction_roleArn :: Lens' CloudwatchAlarmAction Text
- cloudwatchAlarmAction_alarmName :: Lens' CloudwatchAlarmAction Text
- cloudwatchAlarmAction_stateReason :: Lens' CloudwatchAlarmAction Text
- cloudwatchAlarmAction_stateValue :: Lens' CloudwatchAlarmAction Text
Documentation
data CloudwatchAlarmAction Source #
Describes an action that updates a CloudWatch alarm.
See: newCloudwatchAlarmAction smart constructor.
Constructors
| CloudwatchAlarmAction' | |
Fields
| |
Instances
newCloudwatchAlarmAction Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> CloudwatchAlarmAction |
Create a value of CloudwatchAlarmAction 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:roleArn:CloudwatchAlarmAction', cloudwatchAlarmAction_roleArn - The IAM role that allows access to the CloudWatch alarm.
$sel:alarmName:CloudwatchAlarmAction', cloudwatchAlarmAction_alarmName - The CloudWatch alarm name.
$sel:stateReason:CloudwatchAlarmAction', cloudwatchAlarmAction_stateReason - The reason for the alarm change.
$sel:stateValue:CloudwatchAlarmAction', cloudwatchAlarmAction_stateValue - The value of the alarm state. Acceptable values are: OK, ALARM,
INSUFFICIENT_DATA.
cloudwatchAlarmAction_roleArn :: Lens' CloudwatchAlarmAction Text Source #
The IAM role that allows access to the CloudWatch alarm.
cloudwatchAlarmAction_alarmName :: Lens' CloudwatchAlarmAction Text Source #
The CloudWatch alarm name.
cloudwatchAlarmAction_stateReason :: Lens' CloudwatchAlarmAction Text Source #
The reason for the alarm change.
cloudwatchAlarmAction_stateValue :: Lens' CloudwatchAlarmAction Text Source #
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.