interface ServerlessCacheProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ElastiCache.Alpha.ServerlessCacheProps |
![]() | github.com/aws/aws-cdk-go/awscdkelasticachealpha/v2#ServerlessCacheProps |
![]() | software.amazon.awscdk.services.elasticache.alpha.ServerlessCacheProps |
![]() | aws_cdk.aws_elasticache_alpha.ServerlessCacheProps |
![]() | @aws-cdk/aws-elasticache-alpha ยป ServerlessCacheProps |
Properties for defining a ServerlessCache.
Example
declare const vpc: ec2.Vpc;
const serverlessCache = new elasticache.ServerlessCache(this, 'ServerlessCache', {
engine: elasticache.CacheEngine.VALKEY_LATEST,
backup: {
// set a backup name before deleting a cache
backupNameBeforeDeletion: "my-final-backup-name",
},
vpc,
});
Properties
Name | Type | Description |
---|---|---|
vpc | IVpc | The VPC to place the cache in. |
backup? | Backup | Backup configuration. |
cache | Cache | Usage limits for the cache. |
description? | string | A description for the cache. |
engine? | Cache | The cache engine combined with the version Enum options: VALKEY_DEFAULT, VALKEY_7, VALKEY_8, REDIS_DEFAULT, MEMCACHED_DEFAULT The default options bring the latest versions available. |
kms | IKey | KMS key for encryption. |
security | ISecurity [] | Security groups for the cache. |
serverless | string | Name for the serverless cache. |
user | IUser | User group for access control. |
vpc | Subnet | Which subnets to place the cache in. |
vpc
Type:
IVpc
The VPC to place the cache in.
backup?
Type:
Backup
(optional, default: No backups configured)
Backup configuration.
cacheUsageLimits?
Type:
Cache
(optional, default: No usage limits)
Usage limits for the cache.
description?
Type:
string
(optional, default: No description)
A description for the cache.
engine?
Type:
Cache
(optional, default: when not provided, the default engine would be Valkey, latest version available (VALKEY_DEFAULT))
The cache engine combined with the version Enum options: VALKEY_DEFAULT, VALKEY_7, VALKEY_8, REDIS_DEFAULT, MEMCACHED_DEFAULT The default options bring the latest versions available.
kmsKey?
Type:
IKey
(optional, default: Service managed encryption (AWS owned KMS key))
KMS key for encryption.
securityGroups?
Type:
ISecurity
[]
(optional, default: A new security group is created)
Security groups for the cache.
serverlessCacheName?
Type:
string
(optional, default: automatically generated name by Resource)
Name for the serverless cache.
userGroup?
Type:
IUser
(optional, default: No user group)
User group for access control.
vpcSubnets?
Type:
Subnet
(optional, default: Private subnets with egress)
Which subnets to place the cache in.