modify_serverless_cache
async
¶
modify_serverless_cache(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = None,
serverless_cache_name: Optional[String] = None,
description: Optional[String] = None,
cache_usage_limits: Optional[CacheUsageLimits] = None,
remove_user_group: Optional[BooleanOptional] = None,
user_group_id: Optional[String] = None,
security_group_ids: Optional[SecurityGroupIdsList] = None,
snapshot_retention_limit: Optional[IntegerOptional] = None,
daily_snapshot_time: Optional[String] = None,
engine: Optional[String] = None,
major_engine_version: Optional[String] = None,
) -> ModifyServerlessCacheResponse
This API modifies the attributes of a serverless cache.
Parameters:
-
serverless_cache_name(Optional[String], default:None) –User-provided identifier for the serverless cache to be modified.
-
description(Optional[String], default:None) –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.
-
cache_usage_limits(Optional[CacheUsageLimits], default:None) –Modify the cache usage limit for the serverless cache.
-
remove_user_group(Optional[BooleanOptional], default:None) –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.
-
user_group_id(Optional[String], default:None) –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.
-
security_group_ids(Optional[SecurityGroupIdsList], default:None) –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.
-
snapshot_retention_limit(Optional[IntegerOptional], default:None) –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.
-
daily_snapshot_time(Optional[String], default:None) –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.
-
engine(Optional[String], default:None) –Modifies the engine listed in a serverless cache request. The options are valkey, memcached or redis.
-
major_engine_version(Optional[String], default:None) –Modifies the engine vesion listed in a serverless cache request.
Raises:
-
InvalidCredentialsException–You must enter valid credentials.
-
InvalidParameterCombinationException–Two or more incompatible parameters were specified.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
InvalidServerlessCacheStateFault–The account for these credentials is not currently active.
-
InvalidUserGroupStateFault–The user group is not in an active state.
-
ServerlessCacheNotFoundFault–The serverless cache was not found or does not exist.
-
ServiceLinkedRoleNotFoundFault–The specified service linked role (SLR) was not found.
-
UserGroupNotFoundFault–The user group was not found or does not exist
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_elasticache/_services/async_elasti_cache.py
5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 | |