Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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. Allow a short period of time for changes to take effect.
Synopsis
Creating a Request
data EnableRule Source #
See: newEnableRule
smart constructor.
EnableRule' | |
|
Instances
Create a value of EnableRule
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:eventBusName:EnableRule'
, enableRule_eventBusName
- The name or ARN of the event bus associated with the rule. If you omit
this, the default event bus is used.
$sel:name:EnableRule'
, enableRule_name
- The name of the rule.
Request Lenses
enableRule_eventBusName :: Lens' EnableRule (Maybe Text) Source #
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
enableRule_name :: Lens' EnableRule Text Source #
The name of the rule.
Destructuring the Response
data EnableRuleResponse Source #
See: newEnableRuleResponse
smart constructor.
Instances
Eq EnableRuleResponse Source # | |
Defined in Amazonka.CloudWatchEvents.EnableRule (==) :: EnableRuleResponse -> EnableRuleResponse -> Bool # (/=) :: EnableRuleResponse -> EnableRuleResponse -> Bool # | |
Read EnableRuleResponse Source # | |
Show EnableRuleResponse Source # | |
Defined in Amazonka.CloudWatchEvents.EnableRule showsPrec :: Int -> EnableRuleResponse -> ShowS # show :: EnableRuleResponse -> String # showList :: [EnableRuleResponse] -> ShowS # | |
Generic EnableRuleResponse Source # | |
Defined in Amazonka.CloudWatchEvents.EnableRule type Rep EnableRuleResponse :: Type -> Type # from :: EnableRuleResponse -> Rep EnableRuleResponse x # to :: Rep EnableRuleResponse x -> EnableRuleResponse # | |
NFData EnableRuleResponse Source # | |
Defined in Amazonka.CloudWatchEvents.EnableRule rnf :: EnableRuleResponse -> () # | |
type Rep EnableRuleResponse Source # | |
Defined in Amazonka.CloudWatchEvents.EnableRule |
newEnableRuleResponse :: EnableRuleResponse Source #
Create a value of EnableRuleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.