Creates a serverless cache¶
Description¶
Creates a serverless cache.
Usage¶
elasticache_create_serverless_cache(ServerlessCacheName, Description,
Engine, MajorEngineVersion, CacheUsageLimits, KmsKeyId,
SecurityGroupIds, SnapshotArnsToRestore, Tags, UserGroupId, SubnetIds,
SnapshotRetentionLimit, DailySnapshotTime, NetworkType, ConnectionType)
Arguments¶
-
ServerlessCacheName[required] User-provided identifier for the serverless cache. This parameter is stored as a lowercase string.
-
DescriptionUser-provided description for the serverless cache. The default is NULL, i.e. if no description is provided then an empty string will be returned. The maximum length is 255 characters.
-
Engine[required] The name of the cache engine to be used for creating the serverless cache.
-
MajorEngineVersionThe version of the cache engine that will be used to create the serverless cache.
-
CacheUsageLimitsSets the cache usage limits for storage and ElastiCache Processing Units for the cache.
-
KmsKeyIdARN of the customer managed key for encrypting the data at rest. If no KMS key is provided, a default service key is used.
-
SecurityGroupIdsA 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.
-
SnapshotArnsToRestoreThe ARN(s) of the snapshot that the new serverless cache will be created from. Available for Valkey, Redis OSS and Serverless Memcached only.
-
TagsThe list of tags (key, value) pairs to be added to the serverless cache resource. Default is NULL.
-
UserGroupIdThe identifier of the UserGroup to be associated with the serverless cache. Available for Valkey and Redis OSS only. Default is NULL.
-
SubnetIdsA 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.
-
SnapshotRetentionLimitThe number of days for which ElastiCache retains automatic snapshots before deleting them. Available for Valkey, Redis OSS and Serverless Memcached only. The maximum value allowed is 35 days.
-
DailySnapshotTimeThe daily time that snapshots will be created from the new serverless cache. By default this number is populated with 0, i.e. no snapshots will be created on an automatic daily basis. Available for Valkey, Redis OSS and Serverless Memcached only.
-
NetworkTypeThe IP protocol version used by the serverless cache. Must be either
ipv4|ipv6|dual_stack.ipv6is only supported with IPv6-only subnets. If not specified, defaults toipv4, unless all provided subnets are IPv6-only, in which case it defaults toipv6. -
ConnectionTypeThe connection type for the serverless cache. Must be either
vpc|public. Usevpcto access the cache through a VPC endpoint, orpublicto access the cache over the internet. If not specified, defaults tovpc. This value cannot be changed after the serverless cache is created. Setting this topublicrequires Valkey 9 or above.
Value¶
A list with the following syntax:
list(
ServerlessCache = list(
ServerlessCacheName = "string",
Description = "string",
CreateTime = as.POSIXct(
"2015-01-01"
),
Status = "string",
Engine = "string",
MajorEngineVersion = "string",
FullEngineVersion = "string",
CacheUsageLimits = list(
DataStorage = list(
Maximum = 123,
Minimum = 123,
Unit = "GB"
),
ECPUPerSecond = list(
Maximum = 123,
Minimum = 123
)
),
KmsKeyId = "string",
StorageEncryptionType = "none"|"sse-elasticache"|"sse-kms",
SecurityGroupIds = list(
"string"
),
Endpoint = list(
Address = "string",
Port = 123
),
ReaderEndpoint = list(
Address = "string",
Port = 123
),
ARN = "string",
UserGroupId = "string",
SubnetIds = list(
"string"
),
SnapshotRetentionLimit = 123,
DailySnapshotTime = "string",
NetworkType = "ipv4"|"ipv6"|"dual_stack",
ConnectionType = "vpc"|"public"
)
)
Request syntax¶
svc$create_serverless_cache(
ServerlessCacheName = "string",
Description = "string",
Engine = "string",
MajorEngineVersion = "string",
CacheUsageLimits = list(
DataStorage = list(
Maximum = 123,
Minimum = 123,
Unit = "GB"
),
ECPUPerSecond = list(
Maximum = 123,
Minimum = 123
)
),
KmsKeyId = "string",
SecurityGroupIds = list(
"string"
),
SnapshotArnsToRestore = list(
"string"
),
Tags = list(
list(
Key = "string",
Value = "string"
)
),
UserGroupId = "string",
SubnetIds = list(
"string"
),
SnapshotRetentionLimit = 123,
DailySnapshotTime = "string",
NetworkType = "ipv4"|"ipv6"|"dual_stack",
ConnectionType = "vpc"|"public"
)