amazonka-cloudwatch-1.6.1: Amazon CloudWatch SDK.

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

Network.AWS.CloudWatch.SetAlarmState

Contents

Description

Temporarily sets the state of an alarm for testing purposes. When the updated state differs from the previous value, the action configured for the appropriate state is invoked. For example, if your alarm is configured to send an Amazon SNS message when an alarm is triggered, temporarily changing the alarm state to ALARM sends an SNS message. The alarm returns to its actual state (often within seconds). Because the alarm state change happens quickly, it is typically only visible in the alarm's History tab in the Amazon CloudWatch console or through DescribeAlarmHistory .

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:

  • sasStateReasonData - The reason that this alarm is set to this specific state, in JSON format.
  • sasAlarmName - The name for the alarm. This name must be unique within the AWS account. The maximum length is 255 characters.
  • sasStateValue - The value of the state.
  • sasStateReason - The reason that this alarm is set to this specific state, in text format.

data SetAlarmState Source #

See: setAlarmState smart constructor.

Instances
Eq SetAlarmState Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

Data SetAlarmState Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetAlarmState -> c SetAlarmState #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetAlarmState #

toConstr :: SetAlarmState -> Constr #

dataTypeOf :: SetAlarmState -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SetAlarmState) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetAlarmState) #

gmapT :: (forall b. Data b => b -> b) -> SetAlarmState -> SetAlarmState #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetAlarmState -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetAlarmState -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetAlarmState -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetAlarmState -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetAlarmState -> m SetAlarmState #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetAlarmState -> m SetAlarmState #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetAlarmState -> m SetAlarmState #

Read SetAlarmState Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

Show SetAlarmState Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

Generic SetAlarmState Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

Associated Types

type Rep SetAlarmState :: Type -> Type #

Hashable SetAlarmState Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

AWSRequest SetAlarmState Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

Associated Types

type Rs SetAlarmState :: Type #

ToHeaders SetAlarmState Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

ToPath SetAlarmState Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

ToQuery SetAlarmState Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

NFData SetAlarmState Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

Methods

rnf :: SetAlarmState -> () #

type Rep SetAlarmState Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

type Rep SetAlarmState = D1 (MetaData "SetAlarmState" "Network.AWS.CloudWatch.SetAlarmState" "amazonka-cloudwatch-1.6.1-7Rnwowqga1k8zXg3cAhS87" False) (C1 (MetaCons "SetAlarmState'" PrefixI True) ((S1 (MetaSel (Just "_sasStateReasonData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sasAlarmName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_sasStateValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 StateValue) :*: S1 (MetaSel (Just "_sasStateReason") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs SetAlarmState Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

Request Lenses

sasStateReasonData :: Lens' SetAlarmState (Maybe Text) Source #

The reason that this alarm is set to this specific state, in JSON format.

sasAlarmName :: Lens' SetAlarmState Text Source #

The name for the alarm. This name must be unique within the 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 text format.

Destructuring the Response

setAlarmStateResponse :: SetAlarmStateResponse Source #

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

data SetAlarmStateResponse Source #

See: setAlarmStateResponse smart constructor.

Instances
Eq SetAlarmStateResponse Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

Data SetAlarmStateResponse Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetAlarmStateResponse -> c SetAlarmStateResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetAlarmStateResponse #

toConstr :: SetAlarmStateResponse -> Constr #

dataTypeOf :: SetAlarmStateResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SetAlarmStateResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetAlarmStateResponse) #

gmapT :: (forall b. Data b => b -> b) -> SetAlarmStateResponse -> SetAlarmStateResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetAlarmStateResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetAlarmStateResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetAlarmStateResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetAlarmStateResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetAlarmStateResponse -> m SetAlarmStateResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetAlarmStateResponse -> m SetAlarmStateResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetAlarmStateResponse -> m SetAlarmStateResponse #

Read SetAlarmStateResponse Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

Show SetAlarmStateResponse Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

Generic SetAlarmStateResponse Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

Associated Types

type Rep SetAlarmStateResponse :: Type -> Type #

NFData SetAlarmStateResponse Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

Methods

rnf :: SetAlarmStateResponse -> () #

type Rep SetAlarmStateResponse Source # 
Instance details

Defined in Network.AWS.CloudWatch.SetAlarmState

type Rep SetAlarmStateResponse = D1 (MetaData "SetAlarmStateResponse" "Network.AWS.CloudWatch.SetAlarmState" "amazonka-cloudwatch-1.6.1-7Rnwowqga1k8zXg3cAhS87" False) (C1 (MetaCons "SetAlarmStateResponse'" PrefixI False) (U1 :: Type -> Type))