createCacheParameterGroup method
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.
May throw CacheParameterGroupQuotaExceededFault. May throw CacheParameterGroupAlreadyExistsFault. May throw InvalidCacheParameterGroupStateFault. May throw InvalidParameterValueException. May throw InvalidParameterCombinationException.
Parameter cacheParameterGroupFamily
:
The name of the cache parameter group family that the cache parameter
group can be used with.
Valid values are: memcached1.4
| memcached1.5
|
memcached1.6
| redis2.6
| redis2.8
| redis3.2
| redis4.0
| redis5.0
|
redis6.x
|
Parameter cacheParameterGroupName
:
A user-specified name for the cache parameter group.
Parameter description
:
A user-specified description for the cache parameter group.
Implementation
Future<CreateCacheParameterGroupResult> createCacheParameterGroup({
required String cacheParameterGroupFamily,
required String cacheParameterGroupName,
required String description,
}) async {
ArgumentError.checkNotNull(
cacheParameterGroupFamily, 'cacheParameterGroupFamily');
ArgumentError.checkNotNull(
cacheParameterGroupName, 'cacheParameterGroupName');
ArgumentError.checkNotNull(description, 'description');
final $request = <String, dynamic>{};
$request['CacheParameterGroupFamily'] = cacheParameterGroupFamily;
$request['CacheParameterGroupName'] = cacheParameterGroupName;
$request['Description'] = description;
final $result = await _protocol.send(
$request,
action: 'CreateCacheParameterGroup',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['CreateCacheParameterGroupMessage'],
shapes: shapes,
resultWrapper: 'CreateCacheParameterGroupResult',
);
return CreateCacheParameterGroupResult.fromXml($result);
}