amazonka-cloudwatch-1.1.0: Amazon CloudWatch SDK.

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

Network.AWS.CloudWatch.SetAlarmState

Contents

Description

Temporarily sets the state of an alarm. When the updated StateValue differs from the previous value, the action configured for the appropriate state is invoked. This is not a permanent change. The next periodic alarm check (in about a minute) will set the alarm to its actual state.

See: AWS API Reference for SetAlarmState.

Synopsis

Creating a Request

setAlarmState Source

Creates a value of SetAlarmState with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

sasStateReasonData :: Lens' SetAlarmState (Maybe Text) Source

The reason that this alarm is set to this specific state (in machine-readable JSON format)

sasAlarmName :: Lens' SetAlarmState Text Source

The descriptive name for the alarm. This name must be unique within the user's AWS account. The maximum length is 255 characters.

sasStateReason :: Lens' SetAlarmState Text Source

The reason that this alarm is set to this specific state (in human-readable text format)

Destructuring the Response

setAlarmStateResponse :: SetAlarmStateResponse Source

Creates a value of SetAlarmStateResponse with the minimum fields required to make a request.