rejectGrant method

Future<RejectGrantResponse> rejectGrant({
  1. required String grantArn,
})

Rejects the specified grant.

May throw AccessDeniedException. May throw AuthorizationException. May throw InvalidParameterValueException. May throw RateLimitExceededException. May throw ResourceLimitExceededException. May throw ServerInternalException. May throw ValidationException.

Parameter grantArn : Amazon Resource Name (ARN) of the grant.

Implementation

Future<RejectGrantResponse> rejectGrant({
  required String grantArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSLicenseManager.RejectGrant'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'GrantArn': grantArn,
    },
  );

  return RejectGrantResponse.fromJson(jsonResponse.body);
}