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 |
Disables the specified rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression.
When you disable a rule, incoming events might continue to match to the disabled rule. Allow a short period of time for changes to take effect.
Synopsis
- data DisableRule = DisableRule' {
- eventBusName :: Maybe Text
- name :: Text
- newDisableRule :: Text -> DisableRule
- disableRule_eventBusName :: Lens' DisableRule (Maybe Text)
- disableRule_name :: Lens' DisableRule Text
- data DisableRuleResponse = DisableRuleResponse' {
- newDisableRuleResponse :: DisableRuleResponse
Creating a Request
data DisableRule Source #
See: newDisableRule
smart constructor.
DisableRule' | |
|
Instances
Create a value of DisableRule
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:DisableRule'
, disableRule_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:DisableRule'
, disableRule_name
- The name of the rule.
Request Lenses
disableRule_eventBusName :: Lens' DisableRule (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.
disableRule_name :: Lens' DisableRule Text Source #
The name of the rule.
Destructuring the Response
data DisableRuleResponse Source #
See: newDisableRuleResponse
smart constructor.
Instances
Eq DisableRuleResponse Source # | |
Defined in Amazonka.CloudWatchEvents.DisableRule (==) :: DisableRuleResponse -> DisableRuleResponse -> Bool # (/=) :: DisableRuleResponse -> DisableRuleResponse -> Bool # | |
Read DisableRuleResponse Source # | |
Show DisableRuleResponse Source # | |
Defined in Amazonka.CloudWatchEvents.DisableRule showsPrec :: Int -> DisableRuleResponse -> ShowS # show :: DisableRuleResponse -> String # showList :: [DisableRuleResponse] -> ShowS # | |
Generic DisableRuleResponse Source # | |
Defined in Amazonka.CloudWatchEvents.DisableRule type Rep DisableRuleResponse :: Type -> Type # from :: DisableRuleResponse -> Rep DisableRuleResponse x # to :: Rep DisableRuleResponse x -> DisableRuleResponse # | |
NFData DisableRuleResponse Source # | |
Defined in Amazonka.CloudWatchEvents.DisableRule rnf :: DisableRuleResponse -> () # | |
type Rep DisableRuleResponse Source # | |
Defined in Amazonka.CloudWatchEvents.DisableRule |
newDisableRuleResponse :: DisableRuleResponse Source #
Create a value of DisableRuleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.