create_serverless_cache_snapshot
¶
create_serverless_cache_snapshot(
*,
config_overrides: Optional[ElastiCacheClientConfig] = None,
serverless_cache_snapshot_name: Optional[String] = None,
serverless_cache_name: Optional[String] = None,
kms_key_id: Optional[String] = None,
tags: Optional[TagList] = None,
) -> CreateServerlessCacheSnapshotResponse
This API creates a copy of an entire ServerlessCache at a specific moment in time. Available for Valkey, Redis OSS and Serverless Memcached only.
Parameters:
-
serverless_cache_snapshot_name(Optional[String], default:None) –The name for the snapshot being created. Must be unique for the customer account. Available for Valkey, Redis OSS and Serverless Memcached only. Must be between 1 and 255 characters. This value is stored as a lowercase string.
-
serverless_cache_name(Optional[String], default:None) –The name of an existing serverless cache. The snapshot is created from this cache. Available for Valkey, Redis OSS and Serverless Memcached only.
-
kms_key_id(Optional[String], default:None) –The ID of the KMS key used to encrypt the snapshot. Available for Valkey, Redis OSS and Serverless Memcached only. Default: NULL
-
tags(Optional[TagList], default:None) –A list of tags to be added to the snapshot resource. A tag is a key-value pair. Available for Valkey, Redis OSS and Serverless Memcached only.
Raises:
-
InvalidParameterCombinationException–Two or more incompatible parameters were specified.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
InvalidServerlessCacheStateFault–The account for these credentials is not currently active.
-
ServerlessCacheNotFoundFault–The serverless cache was not found or does not exist.
-
ServerlessCacheSnapshotAlreadyExistsFault–A serverless cache snapshot with this name already exists. Available for Valkey, Redis OSS and Serverless Memcached only.
-
ServerlessCacheSnapshotQuotaExceededFault–The number of serverless cache snapshots exceeds the customer snapshot quota. Available for Valkey, Redis OSS and Serverless Memcached only.
-
ServiceLinkedRoleNotFoundFault–The specified service linked role (SLR) was not found.
-
TagQuotaPerResourceExceeded–The request cannot be processed because it would cause the resource to have more than the allowed number of tags. The maximum number of tags permitted on a resource is 50.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_elasticache/_services/elasti_cache.py
1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 | |