restore_from_snapshot
async
¶
restore_from_snapshot(
namespace_name: NamespaceName,
workgroup_name: WorkgroupName,
*,
config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None,
snapshot_name: Optional[str] = None,
snapshot_arn: Optional[str] = None,
owner_account: Optional[str] = None,
manage_admin_password: Optional[bool] = None,
admin_password_secret_kms_key_id: Optional[KmsKeyId] = None,
maintain_integration: Optional[bool] = None,
) -> RestoreFromSnapshotResponse
Restores a namespace from a snapshot.
Parameters:
-
namespace_name(NamespaceName) –The name of the namespace to restore the snapshot to.
-
workgroup_name(WorkgroupName) –The name of the workgroup used to restore the snapshot.
-
snapshot_name(Optional[str], default:None) –The name of the snapshot to restore from. Must not be specified at the same time as
snapshotArn. -
snapshot_arn(Optional[str], default:None) –The Amazon Resource Name (ARN) of the snapshot to restore from. Required if restoring from a provisioned cluster to Amazon Redshift Serverless. Must not be specified at the same time as
snapshotName.The format of the ARN is arn:aws:redshift:<region>:<account_id>:snapshot:<cluster_identifier>/<snapshot_identifier>.
-
owner_account(Optional[str], default:None) –The Amazon Web Services account that owns the snapshot.
-
manage_admin_password(Optional[bool], default:None) –If
true, Amazon Redshift uses Secrets Manager to manage the restored snapshot's admin credentials. IfMmanageAdminPasswordis false or not set, Amazon Redshift uses the admin credentials that the namespace or cluster had at the time the snapshot was taken. -
admin_password_secret_kms_key_id(Optional[KmsKeyId], default:None) –The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.
-
maintain_integration(Optional[bool], default:None) –If
true, maintain existing data sharing, zero-ETL and S3 event integrations when restoring. Otherwise, integrations will not be maintained after the restore operation. Integrations are only maintained when restored to the same serverless namespace.Default: true
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.
-
ServiceQuotaExceededException–The service limit was exceeded.
-
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
3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 | |