restore_table_from_recovery_point
async
¶
restore_table_from_recovery_point(
namespace_name: str,
workgroup_name: str,
recovery_point_id: str,
source_database_name: str,
source_table_name: str,
new_table_name: str,
*,
config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None,
source_schema_name: Optional[str] = None,
target_database_name: Optional[str] = None,
target_schema_name: Optional[str] = None,
activate_case_sensitive_identifier: Optional[bool] = None,
) -> RestoreTableFromRecoveryPointResponse
Restores 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:
-
namespace_name(str) –Namespace of the recovery point to restore from.
-
workgroup_name(str) –The workgroup to restore the table to.
-
recovery_point_id(str) –The ID of the recovery point to restore the table from.
-
source_database_name(str) –The name of the source database that contains the table being restored.
-
source_schema_name(Optional[str], default:None) –The name of the source schema that contains the table being restored.
-
source_table_name(str) –The name of the source table being restored.
-
target_database_name(Optional[str], default:None) –The name of the database to restore the table to.
-
target_schema_name(Optional[str], default:None) –The name of the schema to restore the table to.
-
new_table_name(str) –The name of the table to create from the restore operation.
-
activate_case_sensitive_identifier(Optional[bool], default:None) –Indicates whether name identifiers for database, schema, and table are case sensitive. If true, the names are case sensitive. If false, the names are not case sensitive. The default is false.
Raises:
-
ConflictException–The submitted action has conflicts.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource could not be found.
-
ValidationException–The input failed to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift_serverless/_services/async_redshift_serverless.py
2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 | |