deleteCacheSubnetGroup method
Deletes a cache subnet group.
May throw CacheSubnetGroupInUse. May throw CacheSubnetGroupNotFoundFault.
Parameter cacheSubnetGroupName
:
The name of the cache subnet group to delete.
Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Implementation
Future<void> deleteCacheSubnetGroup({
required String cacheSubnetGroupName,
}) async {
ArgumentError.checkNotNull(cacheSubnetGroupName, 'cacheSubnetGroupName');
final $request = <String, dynamic>{};
$request['CacheSubnetGroupName'] = cacheSubnetGroupName;
await _protocol.send(
$request,
action: 'DeleteCacheSubnetGroup',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteCacheSubnetGroupMessage'],
shapes: shapes,
);
}