deleteSubscriptionGrant method

Future<DeleteSubscriptionGrantOutput> deleteSubscriptionGrant({
  1. required String domainIdentifier,
  2. required String identifier,
})

Deletes and subscription grant in Amazon DataZone.

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

Parameter domainIdentifier : The ID of the Amazon DataZone domain where the subscription grant is deleted.

Parameter identifier : The ID of the subscription grant that is deleted.

Implementation

Future<DeleteSubscriptionGrantOutput> deleteSubscriptionGrant({
  required String domainIdentifier,
  required String identifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v2/domains/${Uri.encodeComponent(domainIdentifier)}/subscription-grants/${Uri.encodeComponent(identifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteSubscriptionGrantOutput.fromJson(response);
}