getSubscriptionTarget method

Future<GetSubscriptionTargetOutput> getSubscriptionTarget({
  1. required String domainIdentifier,
  2. required String environmentIdentifier,
  3. required String identifier,
})

Gets the subscription target 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 target exists.

Parameter environmentIdentifier : The ID of the environment associated with the subscription target.

Parameter identifier : The ID of the subscription target.

Implementation

Future<GetSubscriptionTargetOutput> getSubscriptionTarget({
  required String domainIdentifier,
  required String environmentIdentifier,
  required String identifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v2/domains/${Uri.encodeComponent(domainIdentifier)}/environments/${Uri.encodeComponent(environmentIdentifier)}/subscription-targets/${Uri.encodeComponent(identifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetSubscriptionTargetOutput.fromJson(response);
}