AWS
put_metric_data
Publish metric data points to CloudWatch
Below are the details and signature of the activity Python module.
Type | action |
Module | chaosaws.cloudwatch.actions |
Name | delete_rule |
Return | mapping |
Usage
JSON
{
"name": "delete-rule",
"type": "action",
"provider": {
"type": "python",
"module": "chaosaws.cloudwatch.actions",
"func": "delete_rule",
"arguments": {
"rule_name": ""
}
}
}
YAML
name: delete-rule
provider:
arguments:
rule_name: ""
func: delete_rule
module: chaosaws.cloudwatch.actions
type: python
type: action
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
rule_name | string | Yes | Rule Name | Name of the rule to remove | |
force | boolean | false | No | Force | Remove all targets before removing the rule |
All rule targets must be removed before deleting the rule. Set input argument force to True to force all rule targets to be deleted.
Signature
def delete_rule(rule_name: str,
force: bool = False,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
pass