amazonka-cloudwatch-events-1.4.1: Amazon CloudWatch Events SDK.

Copyright(c) 2013-2016 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.CloudWatchEvents.EnableRule

Contents

Description

Enables a rule. If the rule does not exist, the operation fails.

Note: When you enable a rule, incoming events might not immediately start matching to a newly enabled rule. Please allow a short period of time for changes to take effect.

Synopsis

Creating a Request

enableRule Source #

Arguments

:: Text

erName

-> EnableRule 

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

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

data EnableRule Source #

Container for the parameters to the EnableRule operation.

See: enableRule smart constructor.

Instances

Eq EnableRule Source # 
Data EnableRule Source # 

Methods

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

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

toConstr :: EnableRule -> Constr #

dataTypeOf :: EnableRule -> DataType #

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

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

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

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

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

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

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

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

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

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

Read EnableRule Source # 
Show EnableRule Source # 
Generic EnableRule Source # 

Associated Types

type Rep EnableRule :: * -> * #

Hashable EnableRule Source # 
ToJSON EnableRule Source # 
NFData EnableRule Source # 

Methods

rnf :: EnableRule -> () #

AWSRequest EnableRule Source # 
ToQuery EnableRule Source # 
ToPath EnableRule Source # 
ToHeaders EnableRule Source # 

Methods

toHeaders :: EnableRule -> [Header] #

type Rep EnableRule Source # 
type Rep EnableRule = D1 (MetaData "EnableRule" "Network.AWS.CloudWatchEvents.EnableRule" "amazonka-cloudwatch-events-1.4.1-654954roKKyAxkhqvS3KEB" True) (C1 (MetaCons "EnableRule'" PrefixI True) (S1 (MetaSel (Just Symbol "_erName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs EnableRule Source # 

Request Lenses

erName :: Lens' EnableRule Text Source #

The name of the rule that you want to enable.

Destructuring the Response

enableRuleResponse :: EnableRuleResponse Source #

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

data EnableRuleResponse Source #

See: enableRuleResponse smart constructor.

Instances

Eq EnableRuleResponse Source # 
Data EnableRuleResponse Source # 

Methods

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

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

toConstr :: EnableRuleResponse -> Constr #

dataTypeOf :: EnableRuleResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read EnableRuleResponse Source # 
Show EnableRuleResponse Source # 
Generic EnableRuleResponse Source # 
NFData EnableRuleResponse Source # 

Methods

rnf :: EnableRuleResponse -> () #

type Rep EnableRuleResponse Source # 
type Rep EnableRuleResponse = D1 (MetaData "EnableRuleResponse" "Network.AWS.CloudWatchEvents.EnableRule" "amazonka-cloudwatch-events-1.4.1-654954roKKyAxkhqvS3KEB" False) (C1 (MetaCons "EnableRuleResponse'" PrefixI False) U1)