Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListRecoveryPointsCommandProtected

Returns an array of recovery points.

Example

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

import { RedshiftServerlessClient, ListRecoveryPointsCommand } from "@aws-sdk/client-redshift-serverless"; // ES Modules import
// const { RedshiftServerlessClient, ListRecoveryPointsCommand } = require("@aws-sdk/client-redshift-serverless"); // CommonJS import
const client = new RedshiftServerlessClient(config);
const input = { // ListRecoveryPointsRequest
nextToken: "STRING_VALUE",
maxResults: Number("int"),
startTime: new Date("TIMESTAMP"),
endTime: new Date("TIMESTAMP"),
namespaceName: "STRING_VALUE",
namespaceArn: "STRING_VALUE",
};
const command = new ListRecoveryPointsCommand(input);
const response = await client.send(command);
// { // ListRecoveryPointsResponse
// recoveryPoints: [ // RecoveryPointList
// { // RecoveryPoint
// recoveryPointId: "STRING_VALUE",
// recoveryPointCreateTime: new Date("TIMESTAMP"),
// totalSizeInMegaBytes: Number("double"),
// namespaceName: "STRING_VALUE",
// workgroupName: "STRING_VALUE",
// namespaceArn: "STRING_VALUE",
// },
// ],
// nextToken: "STRING_VALUE",
// };

Param

ListRecoveryPointsCommandInput

Returns

ListRecoveryPointsCommandOutput

See

Throws

InternalServerException (server fault)

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

Throws

ValidationException (client fault)

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

Throws

RedshiftServerlessServiceException

Base exception class for all service exceptions from RedshiftServerless service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods