Skip to main content

recovery_points

Creates, updates, deletes, gets or lists a recovery_points resource.

Overview

Namerecovery_points
TypeResource
Idaws.redshift_serverless.recovery_points

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namespace_arnstringThe Amazon Resource Name (ARN) of the namespace the recovery point is associated with.
namespace_namestringThe name of the namespace the recovery point is associated with. (pattern: <code>^[a-z0-9-]+$</code>)
recovery_point_create_timestring (date-time)The time the recovery point is created.
recovery_point_idstringThe unique identifier of the recovery point.
total_size_in_mega_bytesnumber (double)The total size of the data in the recovery point in megabytes.
workgroup_namestringThe name of the workgroup the recovery point is associated with. (pattern: <code>^[a-z0-9-]+$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_recovery_pointselectregionReturns information about a recovery point.
list_recovery_pointsselectregionReturns an array of recovery points.
convert_recovery_point_to_snapshotexecregion, recoveryPointId, snapshotNameConverts a recovery point to a snapshot. For more information about recovery points and snapshots, see Working with snapshots and recovery points.
restore_from_recovery_pointexecregion, namespaceName, recoveryPointId, workgroupNameRestore the data from a recovery point.
restore_table_from_recovery_pointexecregion, namespaceName, newTableName, recoveryPointId, sourceDatabaseName, sourceTableName, workgroupNameRestores a table from a recovery point to your Amazon Redshift Serverless instance. You can't use this operation to restore tables with interleaved sort keys.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about a recovery point.

SELECT
namespace_arn,
namespace_name,
recovery_point_create_time,
recovery_point_id,
total_size_in_mega_bytes,
workgroup_name
FROM aws.redshift_serverless.recovery_points
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

Converts a recovery point to a snapshot. For more information about recovery points and snapshots, see Working with snapshots and recovery points.

EXEC aws.redshift_serverless.recovery_points.convert_recovery_point_to_snapshot
@region='{{ region }}' --required
@@json=
'{
"recoveryPointId": "{{ recoveryPointId }}",
"retentionPeriod": {{ retentionPeriod }},
"snapshotName": "{{ snapshotName }}",
"tags": "{{ tags }}"
}'
;