restore_from_snapshot
¶
restore_from_snapshot(
namespace_name: NamespaceName,
workgroup_name: WorkgroupName,
*,
config_overrides: Optional[RedshiftServerlessClientConfig] = 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/redshift_serverless.py
3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 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 | |