create_snapshot
¶
create_snapshot(
namespace_name: str,
snapshot_name: str,
*,
config_overrides: Optional[RedshiftServerlessClientConfig] = None,
retention_period: Optional[int] = None,
tags: Optional[TagList] = None,
) -> CreateSnapshotResponse
Creates a snapshot of all databases in a namespace. For more information about snapshots, see Working with snapshots and recovery points.
Parameters:
-
namespace_name(str) –The namespace to create a snapshot for.
-
snapshot_name(str) –The name of the snapshot.
-
retention_period(Optional[int], default:None) –How long to retain the created snapshot.
-
tags(Optional[TagList], default:None) –An array of Tag objects to associate with the snapshot.
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.
-
TooManyTagsException–The request exceeded the number of tags allowed for a resource.
-
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
3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 | |