AWS::ElastiCache::ServerlessCacheThe resource representing a serverless cache.
import { CfnServerlessCache } from 'aws-cdk-lib/aws-elasticache';Or use the module namespace:
import * as elasticache from 'aws-cdk-lib/aws-elasticache';
// elasticache.CfnServerlessCacheConfiguration passed to the constructor as CfnServerlessCacheProps.
engineRequiredstringThe engine the serverless cache is compatible with.
serverlessCacheNameRequiredstringThe unique identifier of the serverless cache.
cacheUsageLimitsOptionalIResolvable | CacheUsageLimitsPropertyThe cache usage limit for the serverless cache.
dailySnapshotTimeOptionalstringThe daily time that a cache snapshot will be created. Default is NULL, i.e. snapshots will not be created at a specific time on a daily basis. Available for Valkey, Redis OSS and Serverless Memcached only.
descriptionOptionalstringA description of the serverless cache.
endpointOptionalIResolvable | EndpointPropertyRepresents the information required for client programs to connect to a cache node. This value is read-only.
finalSnapshotNameOptionalstringThe name of the final snapshot taken of a cache before the cache is deleted.
kmsKeyIdOptionalstring | IKeyRefThe ID of the AWS Key Management Service (KMS) key that is used to encrypt data at rest in the serverless cache.
majorEngineVersionOptionalstringThe version number of the engine the serverless cache is compatible with.
readerEndpointOptionalIResolvable | EndpointPropertyRepresents the information required for client programs to connect to a cache node. This value is read-only.
securityGroupIdsOptionalstring | ISecurityGroupRef[]The IDs of the EC2 security groups associated with the serverless cache.
snapshotArnsToRestoreOptionalstring[]The ARN of the snapshot from which to restore data into the new cache.
snapshotRetentionLimitOptionalnumberThe current setting for the number of serverless cache snapshots the system will retain. Available for Valkey, Redis OSS and Serverless Memcached only.
subnetIdsOptionalstring | ISubnetRef[]If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets across AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3 default subnets across AZs in your default VPC.
tagsOptionalCfnTag[]A list of tags to be added to this resource.
userGroupIdOptionalstring | IUserGroupRefThe identifier of the user group associated with the serverless cache. Available for Valkey and Redis OSS only. Default is NULL.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-elasticacheAWS::ElastiCache::ServerlessCache