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
2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 | |