getRecoveryPoint method

Future<GetRecoveryPointResponse> getRecoveryPoint({
  1. required String recoveryPointId,
})

Returns information about a recovery point.

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

Parameter recoveryPointId : The unique identifier of the recovery point to return information for.

Implementation

Future<GetRecoveryPointResponse> getRecoveryPoint({
  required String recoveryPointId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'RedshiftServerless.GetRecoveryPoint'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'recoveryPointId': recoveryPointId,
    },
  );

  return GetRecoveryPointResponse.fromJson(jsonResponse.body);
}