create_serverless_cache_snapshot
async
¶
create_serverless_cache_snapshot(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = 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/async_elasti_cache.py
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 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 | |