create_snapshot
async
¶
create_snapshot(
namespace_name: str,
snapshot_name: str,
*,
config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = 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/async_redshift_serverless.py
3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 | |