GetRecoveryPointCommand

Returns information about a recovery point.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { RedshiftServerlessClient, GetRecoveryPointCommand } from "@aws-sdk/client-redshift-serverless"; // ES Modules import
// const { RedshiftServerlessClient, GetRecoveryPointCommand } = require("@aws-sdk/client-redshift-serverless"); // CommonJS import
const client = new RedshiftServerlessClient(config);
const input = { // GetRecoveryPointRequest
  recoveryPointId: "STRING_VALUE", // required
};
const command = new GetRecoveryPointCommand(input);
const response = await client.send(command);
// { // GetRecoveryPointResponse
//   recoveryPoint: { // RecoveryPoint
//     recoveryPointId: "STRING_VALUE",
//     recoveryPointCreateTime: new Date("TIMESTAMP"),
//     totalSizeInMegaBytes: Number("double"),
//     namespaceName: "STRING_VALUE",
//     workgroupName: "STRING_VALUE",
//     namespaceArn: "STRING_VALUE",
//   },
// };

GetRecoveryPointCommand Input

See GetRecoveryPointCommandInput for more details

Parameter
Type
Description
recoveryPointId
Required
string | undefined

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

GetRecoveryPointCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
recoveryPoint
RecoveryPoint | undefined

The returned recovery point object.

Throws

Name
Fault
Details
ConflictException
client

The submitted action has conflicts.

InternalServerException
server

The request processing has failed because of an unknown error, exception or failure.

ResourceNotFoundException
client

The resource could not be found.

ValidationException
client

The input failed to satisfy the constraints specified by an AWS service.

RedshiftServerlessServiceException
Base exception class for all service exceptions from RedshiftServerless service.