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
4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 | |