modify_serverless_cache
¶
modify_serverless_cache(
*,
config_overrides: Optional[ElastiCacheClientConfig] = 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/elasti_cache.py
5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 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 | |