Skip to main content

serverless_cache_snapshots

Creates, updates, deletes, gets or lists a serverless_cache_snapshots resource.

Overview

Nameserverless_cache_snapshots
TypeResource
Idaws.elasticache.serverless_cache_snapshots

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of a serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
bytes_used_for_cachestringThe total size of a serverless cache snapshot, in bytes. Available for Valkey, Redis OSS and Serverless Memcached only.
create_timestringThe date and time that the source serverless cache's metadata and cache data set was obtained for the snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
expiry_timestringThe time that the serverless cache snapshot will expire. Available for Valkey, Redis OSS and Serverless Memcached only.
kms_key_idstringThe ID of the Amazon Web Services Key Management Service (KMS) key of a serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
serverless_cache_configurationstringThe configuration of the serverless cache, at the time the snapshot was taken. Available for Valkey, Redis OSS and Serverless Memcached only.
serverless_cache_snapshot_namestringThe identifier of a serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
snapshot_typestringThe type of snapshot of serverless cache. Available for Valkey, Redis OSS and Serverless Memcached only.
statusstringThe current status of the serverless cache. Available for Valkey, Redis OSS and Serverless Memcached only.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_serverless_cache_snapshotsselectregionServerlessCacheName, ServerlessCacheSnapshotName, SnapshotType, NextToken, MaxResultsReturns information about serverless cache snapshots. By default, this API lists all of the customer’s serverless cache snapshots. It can also describe a single serverless cache snapshot, or the snapshots associated with a particular serverless cache. Available for Valkey, Redis OSS and Serverless Memcached only.
create_serverless_cache_snapshotinsertServerlessCacheSnapshotName, ServerlessCacheName, regionKmsKeyId, TagsThis API creates a copy of an entire ServerlessCache at a specific moment in time. Available for Valkey, Redis OSS and Serverless Memcached only.
delete_serverless_cache_snapshotdeleteServerlessCacheSnapshotName, regionDeletes an existing serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ServerlessCacheNamestringThe name of an existing serverless cache. The snapshot is created from this cache. Available for Valkey, Redis OSS and Serverless Memcached only.
ServerlessCacheSnapshotNamestringIdenfitier of the snapshot to be deleted. Available for Valkey, Redis OSS and Serverless Memcached only.
regionstringAWS region (default: us-east-1)
KmsKeyIdstringThe ID of the KMS key used to encrypt the snapshot. Available for Valkey, Redis OSS and Serverless Memcached only. Default: NULL
MaxResultsintegerThe maximum number of records to include in the response. If more records exist than the specified max-results value, a market is included in the response so that remaining results can be retrieved. Available for Valkey, Redis OSS and Serverless Memcached only.The default is 50. The Validation Constraints are a maximum of 50.
NextTokenstringAn optional marker returned from a prior request to support pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by max-results. Available for Valkey, Redis OSS and Serverless Memcached only.
ServerlessCacheNamestringThe identifier of serverless cache. If this parameter is specified, only snapshots associated with that specific serverless cache are described. Available for Valkey, Redis OSS and Serverless Memcached only.
ServerlessCacheSnapshotNamestringThe identifier of the serverless cache’s snapshot. If this parameter is specified, only this snapshot is described. Available for Valkey, Redis OSS and Serverless Memcached only.
SnapshotTypestringThe type of snapshot that is being described. Available for Valkey, Redis OSS and Serverless Memcached only.
TagsarrayA 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.

SELECT examples

Returns information about serverless cache snapshots. By default, this API lists all of the customer’s serverless cache snapshots. It can also describe a single serverless cache snapshot, or the snapshots associated with a particular serverless cache. Available for Valkey, Redis OSS and Serverless Memcached only.

SELECT
arn,
bytes_used_for_cache,
create_time,
expiry_time,
kms_key_id,
serverless_cache_configuration,
serverless_cache_snapshot_name,
snapshot_type,
status
FROM aws.elasticache.serverless_cache_snapshots
WHERE region = '{{ region }}' -- required
AND ServerlessCacheName = '{{ ServerlessCacheName }}'
AND ServerlessCacheSnapshotName = '{{ ServerlessCacheSnapshotName }}'
AND SnapshotType = '{{ SnapshotType }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
;

INSERT examples

This API creates a copy of an entire ServerlessCache at a specific moment in time. Available for Valkey, Redis OSS and Serverless Memcached only.

INSERT INTO aws.elasticache.serverless_cache_snapshots (
ServerlessCacheSnapshotName,
ServerlessCacheName,
region,
KmsKeyId,
Tags
)
SELECT
'{{ ServerlessCacheSnapshotName }}',
'{{ ServerlessCacheName }}',
'{{ region }}',
'{{ KmsKeyId }}',
'{{ Tags }}'
RETURNING
arn,
bytes_used_for_cache,
create_time,
expiry_time,
kms_key_id,
serverless_cache_configuration,
serverless_cache_snapshot_name,
snapshot_type,
status
;

DELETE examples

Deletes an existing serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.

DELETE FROM aws.elasticache.serverless_cache_snapshots
WHERE ServerlessCacheSnapshotName = '{{ ServerlessCacheSnapshotName }}' --required
AND region = '{{ region }}' --required
;