deleteCacheSecurityGroup method

Future<void> deleteCacheSecurityGroup({
  1. required String cacheSecurityGroupName,
})

Deletes a cache security group.

May throw InvalidCacheSecurityGroupStateFault. May throw CacheSecurityGroupNotFoundFault. May throw InvalidParameterValueException. May throw InvalidParameterCombinationException.

Parameter cacheSecurityGroupName : The name of the cache security group to delete.

Implementation

Future<void> deleteCacheSecurityGroup({
  required String cacheSecurityGroupName,
}) async {
  ArgumentError.checkNotNull(
      cacheSecurityGroupName, 'cacheSecurityGroupName');
  final $request = <String, dynamic>{};
  $request['CacheSecurityGroupName'] = cacheSecurityGroupName;
  await _protocol.send(
    $request,
    action: 'DeleteCacheSecurityGroup',
    version: '2015-02-02',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteCacheSecurityGroupMessage'],
    shapes: shapes,
  );
}