restore_table_from_snapshot
async
¶
restore_table_from_snapshot(
namespace_name: str,
workgroup_name: str,
snapshot_name: 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,
) -> RestoreTableFromSnapshotResponse
Restores a table from a snapshot to your Amazon Redshift Serverless instance. You can't use this operation to restore tables with interleaved sort keys.
Parameters:
-
namespace_name(str) –The namespace of the snapshot to restore from.
-
workgroup_name(str) –The workgroup to restore the table to.
-
snapshot_name(str) –The name of the snapshot 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
3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 | |