restore_table_from_recovery_point
¶
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[RedshiftServerlessClientConfig] = 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/redshift_serverless.py
2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 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 | |