acceptDataGrant method

Future<AcceptDataGrantResponse> acceptDataGrant({
  1. required String dataGrantArn,
})

This operation accepts a data grant.

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

Parameter dataGrantArn : The Amazon Resource Name (ARN) of the data grant to accept.

Implementation

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