create_cluster_snapshot
¶
create_cluster_snapshot(
*,
config_overrides: Optional[RedshiftClientConfig] = None,
snapshot_identifier: Optional[String] = None,
cluster_identifier: Optional[String] = None,
manual_snapshot_retention_period: Optional[IntegerOptional] = None,
tags: Optional[TagList] = None,
) -> CreateClusterSnapshotResult
Creates a manual snapshot of the specified cluster. The cluster must be in the available state.
For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide.
Parameters:
-
snapshot_identifier(Optional[String], default:None) –A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
Constraints:
-
Cannot be null, empty, or blank
-
Must contain from 1 to 255 alphanumeric characters or hyphens
-
First character must be a letter
-
Cannot end with a hyphen or contain two consecutive hyphens
Example:
my-snapshot-id -
-
cluster_identifier(Optional[String], default:None) –The cluster identifier for which you want a snapshot.
-
manual_snapshot_retention_period(Optional[IntegerOptional], default:None) –The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
The default value is -1.
-
tags(Optional[TagList], default:None) –A list of tag instances.
Raises:
-
ClusterNotFoundFault–The
ClusterIdentifierparameter does not refer to an existing cluster. -
ClusterSnapshotAlreadyExistsFault–The value specified as a snapshot identifier is already used by an existing snapshot.
-
ClusterSnapshotQuotaExceededFault–The request would result in the user exceeding the allowed number of cluster snapshots.
-
InvalidClusterStateFault–The specified cluster is not in the
availablestate. -
InvalidRetentionPeriodFault–The retention period specified is either in the past or is not a valid value.
The value must be either -1 or an integer between 1 and 3,653.
-
InvalidTagFault–The tag is invalid.
-
TagLimitExceededFault–You have exceeded the number of tags allowed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift/_services/redshift.py
1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 | |