ModifyServerlessCache - Amazon ElastiCache

ModifyServerlessCache

This API modifies the attributes of a serverless cache.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

ServerlessCacheName

User-provided identifier for the serverless cache to be modified.

Type: String

Required: Yes

CacheUsageLimits

Modify the cache usage limit for the serverless cache.

Type: CacheUsageLimits object

Required: No

DailySnapshotTime

The daily time during which Elasticache begins taking a daily snapshot of the serverless cache. Available for Valkey, Redis OSS and Serverless Memcached only. The default is NULL, i.e. the existing snapshot time configured for the cluster is not removed.

Type: String

Required: No

Description

User provided description for the serverless cache. Default = NULL, i.e. the existing description is not removed/modified. The description has a maximum length of 255 characters.

Type: String

Required: No

Engine

Modifies the engine listed in a serverless cache request. The options are redis, memcached or valkey.

Type: String

Required: No

MajorEngineVersion

Modifies the engine vesion listed in a serverless cache request.

Type: String

Required: No

RemoveUserGroup

The identifier of the UserGroup to be removed from association with the Valkey and Redis OSS serverless cache. Available for Valkey and Redis OSS only. Default is NULL.

Type: Boolean

Required: No

SecurityGroupIds.SecurityGroupId.N

The new list of VPC security groups to be associated with the serverless cache. Populating this list means the current VPC security groups will be removed. This security group is used to authorize traffic access for the VPC end-point (private-link). Default = NULL - the existing list of VPC security groups is not removed.

Type: Array of strings

Required: No

SnapshotRetentionLimit

The number of days for which Elasticache retains automatic snapshots before deleting them. Available for Valkey, Redis OSS and Serverless Memcached only. Default = NULL, i.e. the existing snapshot-retention-limit will not be removed or modified. The maximum value allowed is 35 days.

Type: Integer

Required: No

UserGroupId

The identifier of the UserGroup to be associated with the serverless cache. Available for Valkey and Redis OSS only. Default is NULL - the existing UserGroup is not removed.

Type: String

Required: No

Response Elements

The following element is returned by the service.

ServerlessCache

The response for the attempt to modify the serverless cache.

Type: ServerlessCache object

Errors

For information about the errors that are common to all actions, see Common Errors.

InvalidCredentials

You must enter valid credentials.

HTTP Status Code: 408

InvalidParameterCombination

Two or more incompatible parameters were specified.

HTTP Status Code: 400

InvalidParameterValue

The value for a parameter is invalid.

HTTP Status Code: 400

InvalidServerlessCacheStateFault

The account for these credentials is not currently active.

HTTP Status Code: 400

InvalidUserGroupState

The user group is not in an active state.

HTTP Status Code: 400

ServerlessCacheNotFoundFault

The serverless cache was not found or does not exist.

HTTP Status Code: 404

ServiceLinkedRoleNotFoundFault

The specified service linked role (SLR) was not found.

HTTP Status Code: 400

UserGroupNotFound

The user group was not found or does not exist

HTTP Status Code: 404

Examples

ModifyServerlessCache

This example illustrates one usage of ModifyServerlessCache.

Sample Request

{ "description": "Modify the daily snapshot time of cache", "input": { "ServerlessCacheName": "my-serverless-cache", "CacheUsageLimits": { "DataStorage" : { "Maximum" : 10, "Unit" : "GB" }, "ECPUPerSecond" : { "Maximum" : 50000 } }, "DailySnapshotTime": "11:00" }, "output": { "ServerlessCache": { "ServerlessCacheName": "my-serverless-cache", "Description": "A serverless cache.", "Status": "available", "Engine": "redis", "MajorEngineVersion": "7", "FullEngineVersion": "7.0", "SubnetIds": [ "subnet-xxx8c982", "subnet-xxx382f3", "subnet-xxxb3e7c0" ], "CacheUsageLimits": { "DataStorage" : { "Maximum" : 10, "Unit" : "GB" }, "ECPUPerSecond" : { "Maximum" : 50000 } }, "SecurityGroupIds": [ "sg-xxx0c9af" ], "Endpoint": { "Address": "my-serverless-cache-xxxxxx.serverless.use1qa.cache.amazonaws.com", "Port": 6379 }, "ARN": "arn:aws:elasticache:us-east-1:222222222222:serverlesscache:my-serverless-cache", "SnapshotRetentionLimit": 10, "DailySnapshotTime": "11:00" } } }

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: