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
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 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 | |