getTopicRuleDestination method

Future<GetTopicRuleDestinationResponse> getTopicRuleDestination({
  1. required String arn,
})

Gets information about a topic rule destination.

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

Parameter arn : The ARN of the topic rule destination.

Implementation

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