Skip to main content

serverless_caches

Creates, updates, deletes or gets a serverless_cach resource or lists serverless_caches in a region

Overview

Nameserverless_caches
TypeResource
DescriptionThe AWS::ElastiCache::ServerlessCache resource creates an Amazon ElastiCache Serverless Cache.
Idaws.elasticache.serverless_caches

Fields

NameDatatypeDescription
serverless_cache_namestringThe name of the Serverless Cache. This value must be unique.
descriptionstringThe description of the Serverless Cache.
enginestringThe engine name of the Serverless Cache.
major_engine_versionstringThe major engine version of the Serverless Cache.
full_engine_versionstringThe full engine version of the Serverless Cache.
cache_usage_limitsobjectThe cache capacity limit of the Serverless Cache.
kms_key_idstringThe ID of the KMS key used to encrypt the cluster.
security_group_idsarrayOne or more Amazon VPC security groups associated with this Serverless Cache.
snapshot_arns_to_restorearrayThe ARN's of snapshot to restore Serverless Cache.
tagsarrayAn array of key-value pairs to apply to this Serverless Cache.
user_group_idstringThe ID of the user group.
subnet_idsarrayThe subnet id's of the Serverless Cache.
snapshot_retention_limitintegerThe snapshot retention limit of the Serverless Cache.
daily_snapshot_timestringThe daily time range (in UTC) during which the service takes automatic snapshot of the Serverless Cache.
create_timestringThe creation time of the Serverless Cache.
statusstringThe status of the Serverless Cache.
endpointobjectThe address and the port.
reader_endpointobjectThe address and the port.
arnstringThe ARN of the Serverless Cache.
final_snapshot_namestringThe final snapshot name which is taken before Serverless Cache is deleted.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTServerlessCacheName, Engine, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all serverless_caches in a region.

SELECT
region,
serverless_cache_name,
description,
engine,
major_engine_version,
full_engine_version,
cache_usage_limits,
kms_key_id,
security_group_ids,
snapshot_arns_to_restore,
tags,
user_group_id,
subnet_ids,
snapshot_retention_limit,
daily_snapshot_time,
create_time,
status,
endpoint,
reader_endpoint,
arn,
final_snapshot_name
FROM aws.elasticache.serverless_caches
WHERE region = 'us-east-1';

Gets all properties from an individual serverless_cach.

SELECT
region,
serverless_cache_name,
description,
engine,
major_engine_version,
full_engine_version,
cache_usage_limits,
kms_key_id,
security_group_ids,
snapshot_arns_to_restore,
tags,
user_group_id,
subnet_ids,
snapshot_retention_limit,
daily_snapshot_time,
create_time,
status,
endpoint,
reader_endpoint,
arn,
final_snapshot_name
FROM aws.elasticache.serverless_caches
WHERE region = 'us-east-1' AND data__Identifier = '<ServerlessCacheName>';

INSERT example

Use the following StackQL query and manifest file to create a new serverless_cach resource, using stack-deploy.

/*+ create */
INSERT INTO aws.elasticache.serverless_caches (
ServerlessCacheName,
Engine,
region
)
SELECT
'{{ ServerlessCacheName }}',
'{{ Engine }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.elasticache.serverless_caches
WHERE data__Identifier = '<ServerlessCacheName>'
AND region = 'us-east-1';

Permissions

To operate on the serverless_caches resource, the following permissions are required:

Create

elasticache:CreateServerlessCache,
elasticache:DescribeServerlessCaches,
elasticache:AddTagsToResource,
elasticache:ListTagsForResource,
ec2:CreateTags,
ec2:CreateVpcEndpoint,
kms:CreateGrant,
kms:DescribeKey

Read

elasticache:DescribeServerlessCaches,
elasticache:ListTagsForResource

Update

elasticache:ModifyServerlessCache,
elasticache:DescribeServerlessCaches,
elasticache:AddTagsToResource,
elasticache:ListTagsForResource,
elasticache:RemoveTagsFromResource

Delete

elasticache:DeleteServerlessCache,
elasticache:DescribeServerlessCaches,
elasticache:ListTagsForResource

List

elasticache:DescribeServerlessCaches,
elasticache:ListTagsForResource