Skip to main content

table_restore_status

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

Overview

Nametable_restore_status
TypeResource
Idaws.redshift_serverless.table_restore_status

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
messagestringA message that explains the returned status. For example, if the status of the operation is FAILED, the message explains why the operation failed.
namespace_namestringThe namespace of the table being restored from.
new_table_namestringThe name of the table to create from the restore operation.
progress_in_mega_bytesinteger (int64)The amount of data restored to the new table so far, in megabytes (MB).
recovery_point_idstringThe ID of the recovery point being restored from.
request_timestring (date-time)The time that the table restore request was made, in Universal Coordinated Time (UTC).
snapshot_namestringThe name of the snapshot being restored from.
source_database_namestringThe name of the source database being restored from.
source_schema_namestringThe name of the source schema being restored from.
source_table_namestringThe name of the source table being restored from.
statusstringA value that describes the current state of the table restore request. Possible values are SUCCEEDED, FAILED, CANCELED, PENDING, and IN_PROGRESS.
table_restore_request_idstringThe ID of the RestoreTableFromSnapshot request.
target_database_namestringThe name of the database to restore to.
target_schema_namestringThe name of the schema to restore to.
total_data_in_mega_bytesinteger (int64)The total amount of data to restore to the new table, in megabytes (MB).
workgroup_namestringThe name of the workgroup being restored from.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_table_restore_statusselectregionReturns information about a TableRestoreStatus object.
list_table_restore_statusselectregionReturns information about an array of TableRestoreStatus objects.

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 TableRestoreStatus object.

SELECT
message,
namespace_name,
new_table_name,
progress_in_mega_bytes,
recovery_point_id,
request_time,
snapshot_name,
source_database_name,
source_schema_name,
source_table_name,
status,
table_restore_request_id,
target_database_name,
target_schema_name,
total_data_in_mega_bytes,
workgroup_name
FROM aws.redshift_serverless.table_restore_status
WHERE region = '{{ region }}' -- required
;