revokeRevision method
This operation revokes subscribers' access to a revision.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter dataSetId :
The unique identifier for a data set.
Parameter revisionId :
The unique identifier for a revision.
Parameter revocationComment :
A required comment to inform subscribers of the reason their access to the
revision was revoked.
Implementation
Future<RevokeRevisionResponse> revokeRevision({
required String dataSetId,
required String revisionId,
required String revocationComment,
}) async {
final $payload = <String, dynamic>{
'RevocationComment': revocationComment,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/v1/data-sets/${Uri.encodeComponent(dataSetId)}/revisions/${Uri.encodeComponent(revisionId)}/revoke',
exceptionFnMap: _exceptionFns,
);
return RevokeRevisionResponse.fromJson(response);
}