getDataGrant method

Future<GetDataGrantResponse> getDataGrant({
  1. required String dataGrantId,
})

This operation returns information about a data grant.

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

Parameter dataGrantId : The ID of the data grant.

Implementation

Future<GetDataGrantResponse> getDataGrant({
  required String dataGrantId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/data-grants/${Uri.encodeComponent(dataGrantId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetDataGrantResponse.fromJson(response);
}