getSubscription method

Future<GetSubscriptionOutput> getSubscription({
  1. required String domainId,
  2. required String subscriptionId,
})

Retrieves information about a Subscription.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter domainId : The unique identifier of the parent Domain.

Parameter subscriptionId : The unique identifier of the Subscription.

Implementation

Future<GetSubscriptionOutput> getSubscription({
  required String domainId,
  required String subscriptionId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/domains/${Uri.encodeComponent(domainId)}/subscriptions/${Uri.encodeComponent(subscriptionId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetSubscriptionOutput.fromJson(response);
}