amazonka-cloudwatch-events-1.6.1: Amazon CloudWatch Events 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.CloudWatchEvents.EnableRule

Contents

Description

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

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:

  • erName - The name of the rule.

data EnableRule Source #

See: enableRule smart constructor.

Instances
Eq EnableRule Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

Data EnableRule Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

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 # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

Show EnableRule Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

Generic EnableRule Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

Associated Types

type Rep EnableRule :: Type -> Type #

Hashable EnableRule Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

ToJSON EnableRule Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

AWSRequest EnableRule Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

Associated Types

type Rs EnableRule :: Type #

ToHeaders EnableRule Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

Methods

toHeaders :: EnableRule -> [Header] #

ToPath EnableRule Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

ToQuery EnableRule Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

NFData EnableRule Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

Methods

rnf :: EnableRule -> () #

type Rep EnableRule Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

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

Defined in Network.AWS.CloudWatchEvents.EnableRule

Request Lenses

erName :: Lens' EnableRule Text Source #

The name of the rule.

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 # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

Data EnableRuleResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

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 # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

Show EnableRuleResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

Generic EnableRuleResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

Associated Types

type Rep EnableRuleResponse :: Type -> Type #

NFData EnableRuleResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

Methods

rnf :: EnableRuleResponse -> () #

type Rep EnableRuleResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.EnableRule

type Rep EnableRuleResponse = D1 (MetaData "EnableRuleResponse" "Network.AWS.CloudWatchEvents.EnableRule" "amazonka-cloudwatch-events-1.6.1-Gr8NdACzlKB7o8reClGMUI" False) (C1 (MetaCons "EnableRuleResponse'" PrefixI False) (U1 :: Type -> Type))