deleteCacheParameterGroup method
Deletes the specified cache parameter group. You cannot delete a cache parameter group if it is associated with any cache clusters.
May throw InvalidCacheParameterGroupStateFault. May throw CacheParameterGroupNotFoundFault. May throw InvalidParameterValueException. May throw InvalidParameterCombinationException.
Parameter cacheParameterGroupName
:
The name of the cache parameter group to delete.
Implementation
Future<void> deleteCacheParameterGroup({
required String cacheParameterGroupName,
}) async {
ArgumentError.checkNotNull(
cacheParameterGroupName, 'cacheParameterGroupName');
final $request = <String, dynamic>{};
$request['CacheParameterGroupName'] = cacheParameterGroupName;
await _protocol.send(
$request,
action: 'DeleteCacheParameterGroup',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteCacheParameterGroupMessage'],
shapes: shapes,
);
}