actionCloudWatch

remove_rule_targets

Removes CloudWatch rule targets

Activity as code

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

Typeaction
Modulechaosaws.cloudwatch.actions
Nameremove_rule_targets
Returnmapping

Usage

JSON

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

YAML

name: remove-rule-targets
provider:
  arguments:
    rule_name: ""
  func: remove_rule_targets
  module: chaosaws.cloudwatch.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
rule_namestringYesRule NameName of the rule to remove
target_idslistnullNoTarget IdentifiesList of target to remove

If no target ids are provided all targets will be removed.

Signature

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