libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.Types.CloudwatchAlarmAction

Description

 
Synopsis

Documentation

data CloudwatchAlarmAction Source #

Describes an action that updates a CloudWatch alarm.

See: newCloudwatchAlarmAction smart constructor.

Constructors

CloudwatchAlarmAction' 

Fields

  • roleArn :: Text

    The IAM role that allows access to the CloudWatch alarm.

  • alarmName :: Text

    The CloudWatch alarm name.

  • stateReason :: Text

    The reason for the alarm change.

  • stateValue :: Text

    The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.

Instances

Instances details
Eq CloudwatchAlarmAction Source # 
Instance details

Defined in Amazonka.IoT.Types.CloudwatchAlarmAction

Read CloudwatchAlarmAction Source # 
Instance details

Defined in Amazonka.IoT.Types.CloudwatchAlarmAction

Show CloudwatchAlarmAction Source # 
Instance details

Defined in Amazonka.IoT.Types.CloudwatchAlarmAction

Generic CloudwatchAlarmAction Source # 
Instance details

Defined in Amazonka.IoT.Types.CloudwatchAlarmAction

Associated Types

type Rep CloudwatchAlarmAction :: Type -> Type #

NFData CloudwatchAlarmAction Source # 
Instance details

Defined in Amazonka.IoT.Types.CloudwatchAlarmAction

Methods

rnf :: CloudwatchAlarmAction -> () #

Hashable CloudwatchAlarmAction Source # 
Instance details

Defined in Amazonka.IoT.Types.CloudwatchAlarmAction

ToJSON CloudwatchAlarmAction Source # 
Instance details

Defined in Amazonka.IoT.Types.CloudwatchAlarmAction

FromJSON CloudwatchAlarmAction Source # 
Instance details

Defined in Amazonka.IoT.Types.CloudwatchAlarmAction

type Rep CloudwatchAlarmAction Source # 
Instance details

Defined in Amazonka.IoT.Types.CloudwatchAlarmAction

type Rep CloudwatchAlarmAction = D1 ('MetaData "CloudwatchAlarmAction" "Amazonka.IoT.Types.CloudwatchAlarmAction" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CloudwatchAlarmAction'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "alarmName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "stateReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "stateValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCloudwatchAlarmAction Source #

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_stateValue :: Lens' CloudwatchAlarmAction Text Source #

The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.