getResourcePermission method

Future<GetResourcePermissionOutput> getResourcePermission({
  1. required String resourceArn,
  2. PermissionActionType? actionType,
})

Gets permissions associated with the target database.

May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter resourceArn : The Amazon Resource Name (ARN) of the resource.

Parameter actionType :

Implementation

Future<GetResourcePermissionOutput> getResourcePermission({
  required String resourceArn,
  PermissionActionType? actionType,
}) async {
  final $payload = <String, dynamic>{
    'ResourceArn': resourceArn,
    if (actionType != null) 'ActionType': actionType.value,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/get-resource-permission',
    exceptionFnMap: _exceptionFns,
  );
  return GetResourcePermissionOutput.fromJson(response);
}