| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudWatchEvents.DisableRule
Description
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.
Constructors
| DisableRule' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DisableRule |
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:
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.
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.
Constructors
| DisableRuleResponse' | |
Instances
newDisableRuleResponse :: DisableRuleResponse Source #
Create a value of DisableRuleResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.