deleteTopicRuleDestination method

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

Deletes a topic rule destination.

May throw InternalException. May throw InvalidRequestException. May throw ServiceUnavailableException. May throw UnauthorizedException. May throw ConflictingResourceUpdateException.

Parameter arn : The ARN of the topic rule destination to delete.

Implementation

Future<void> deleteTopicRuleDestination({
  required String arn,
}) async {
  ArgumentError.checkNotNull(arn, 'arn');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/destinations/${arn.split('/').map(Uri.encodeComponent).join('/')}',
    exceptionFnMap: _exceptionFns,
  );
}