ServerlessCacheArgs constructor
- Input<
ServerlessCacheCacheUsageLimits?> ? cacheUsageLimits, - Input<
String?> ? dailySnapshotTime, - Input<
String?> ? description, - required Input<
String> engine, - Input<
String?> ? kmsKeyId, - Input<
String?> ? majorEngineVersion, - Input<
String?> ? name, - Input<
String?> ? networkType, - Input<
String?> ? region, - Input<
List< ? securityGroupIds,String> ?> - Input<
List< ? snapshotArnsToRestores,String> ?> - Input<
int?> ? snapshotRetentionLimit, - Input<
List< ? subnetIds,String> ?> - Input<
Map< ? tags,String, String> ?> - Input<
ServerlessCacheTimeouts?> ? timeouts, - Input<
String?> ? userGroupId,
Creates a new ServerlessCacheArgs.
cacheUsageLimits Sets the cache usage limits for storage and ElastiCache Processing Units for the cache. See cacheUsageLimits Block for details.
dailySnapshotTime The daily time that snapshots will be created from the new serverless cache. Only supported for engine types "redis" or "valkey". Defaults to 0.
description User-provided description for the serverless cache. The default is NULL.
engine Name of the cache engine to be used for this cache cluster. Valid values are memcached, redis or valkey.
kmsKeyId ARN of the customer managed key for encrypting the data at rest. If no KMS key is provided, a default service key is used.
majorEngineVersion The version of the cache engine that will be used to create the serverless cache.
name The Cluster name which serves as a unique identifier to the serverless cache
networkType IP protocol version used by the serverless cache. Valid values are ipv4, ipv6, or dualStack. ipv6 is only supported with IPv6-only subnets. If not specified, defaults to ipv4, unless all provided subnets are IPv6-only, in which case it defaults to ipv6.
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
securityGroupIds A list of the one or more VPC security groups to be associated with the serverless cache. The security group will authorize traffic access for the VPC end-point (private-link). If no other information is given this will be the VPC’s Default Security Group that is associated with the cluster VPC end-point.
snapshotArnsToRestores The list of ARN(s) of the snapshot that the new serverless cache will be created from. Only supported for engine types "redis" or "valkey".
snapshotRetentionLimit The number of snapshots that will be retained for the serverless cache that is being created. As new snapshots beyond this limit are added, the oldest snapshots will be deleted on a rolling basis. Only supported for engine types "redis" or "valkey".
subnetIds A list of the identifiers of the subnets where the VPC endpoint for the serverless cache will be deployed. All the subnetIds must belong to the same VPC.
tags Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
timeouts Optional.
userGroupId The identifier of the UserGroup to be associated with the serverless cache. Available for Redis and Valkey. Default is NULL.
Implementation
const ServerlessCacheArgs({
this.cacheUsageLimits,
this.dailySnapshotTime,
this.description,
required this.engine,
this.kmsKeyId,
this.majorEngineVersion,
this.name,
this.networkType,
this.region,
this.securityGroupIds,
this.snapshotArnsToRestores,
this.snapshotRetentionLimit,
this.subnetIds,
this.tags,
this.timeouts,
this.userGroupId,
});