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
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 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 | |