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
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 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 | |