actionCloudWatch

disable_rule

Disables a CloudWatch rule

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosaws.cloudwatch.actions
Namedisable_rule
Returnmapping

Usage

JSON

{
  "name": "disable-rule",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.cloudwatch.actions",
    "func": "disable_rule",
    "arguments": {
      "rule_name": ""
    }
  }
}

YAML

name: disable-rule
provider:
  arguments:
    rule_name: ""
  func: disable_rule
  module: chaosaws.cloudwatch.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
rule_namestringYesRule NameName of the rule to disable

Signature

def disable_rule(rule_name: str,
                 configuration: Dict[str, Dict[str, str]] = None,
                 secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass