deleteEventRule method

Future<void> deleteEventRule({
  1. required String arn,
})

Deletes an EventRule.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter arn : The Amazon Resource Name (ARN) of the EventRule to delete.

Implementation

Future<void> deleteEventRule({
  required String arn,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/event-rules/${Uri.encodeComponent(arn)}',
    exceptionFnMap: _exceptionFns,
  );
}