create_cache_parameter_group
¶
create_cache_parameter_group(
*,
config_overrides: Optional[ElastiCacheClientConfig] = None,
cache_parameter_group_name: Optional[String] = None,
cache_parameter_group_family: Optional[String] = None,
description: Optional[String] = None,
tags: Optional[TagList] = None,
) -> CreateCacheParameterGroupResult
Creates a new Amazon ElastiCache cache parameter group. An ElastiCache cache parameter group is a collection of parameters and their values that are applied to all of the nodes in any cluster or replication group using the CacheParameterGroup.
A newly created CacheParameterGroup is an exact duplicate of the default parameter group for the CacheParameterGroupFamily. To customize the newly created CacheParameterGroup you can change the values of specific parameters. For more information, see:
-
ModifyCacheParameterGroup in the ElastiCache API Reference.
-
Parameters and Parameter Groups in the ElastiCache User Guide.
Parameters:
-
cache_parameter_group_name(Optional[String], default:None) –A user-specified name for the cache parameter group. This value is stored as a lowercase string.
-
cache_parameter_group_family(Optional[String], default:None) –The name of the cache parameter group family that the cache parameter group can be used with.
Valid values are:
valkey8|valkey7|memcached1.4|memcached1.5|memcached1.6|redis2.6|redis2.8|redis3.2|redis4.0|redis5.0|redis6.x|redis7 -
description(Optional[String], default:None) –A user-specified description for the cache parameter group.
-
tags(Optional[TagList], default:None) –A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
Raises:
-
CacheParameterGroupAlreadyExistsFault–A cache parameter group with the requested name already exists.
-
CacheParameterGroupQuotaExceededFault–The request cannot be processed because it would exceed the maximum number of cache security groups.
-
InvalidCacheParameterGroupStateFault–The current state of the cache parameter group does not allow the requested operation to occur.
-
InvalidParameterCombinationException–Two or more incompatible parameters were specified.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
TagQuotaPerResourceExceeded–The request cannot be processed because it would cause the resource to have more than the allowed number of tags. The maximum number of tags permitted on a resource is 50.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
CreateCacheParameterGroup Creates the Amazon ElastiCache parameter group custom-redis2-8.
>>> client.create_cache_parameter_group(cache_parameter_group_name='custom-redis2-8', cache_parameter_group_family='redis2.8', description='Custom Redis 2.8 parameter group.')
Source code in docs_src/capo_elasticache/_services/elasti_cache.py
1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 | |