deleteRule method

Future<void> deleteRule({
  1. required String ruleArn,
})

Deletes the specified rule.

You can't delete the default rule.

May throw OperationNotPermittedException. May throw RuleNotFoundException.

Parameter ruleArn : The Amazon Resource Name (ARN) of the rule.

Implementation

Future<void> deleteRule({
  required String ruleArn,
}) async {
  final $request = <String, String>{
    'RuleArn': ruleArn,
  };
  await _protocol.send(
    $request,
    action: 'DeleteRule',
    version: '2015-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    resultWrapper: 'DeleteRuleResult',
  );
}