getSubscription method

Future<GetSubscriptionOutput> getSubscription({
  1. required String domainIdentifier,
  2. required String identifier,
})

Gets a subscription in Amazon DataZone.

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

Parameter domainIdentifier : The ID of the Amazon DataZone domain in which the subscription exists.

Parameter identifier : The ID of the subscription.

Implementation

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