deleteRule method

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

Deletes the specified rule.

You can't delete the default rule.

May throw RuleNotFoundException. May throw OperationNotPermittedException.

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

Implementation

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