delete_cache_security_group(**kwargs)¶Deletes a cache security group.
Note
You cannot delete a cache security group if it is associated with any clusters.
See also: AWS API Documentation
Request Syntax
response = client.delete_cache_security_group(
CacheSecurityGroupName='string'
)
[REQUIRED]
The name of the cache security group to delete.
Note
You cannot delete the default security group.
Exceptions
ElastiCache.Client.exceptions.InvalidCacheSecurityGroupStateFaultElastiCache.Client.exceptions.CacheSecurityGroupNotFoundFaultElastiCache.Client.exceptions.InvalidParameterValueExceptionElastiCache.Client.exceptions.InvalidParameterCombinationExceptionExamples
Deletes a cache security group.
response = client.delete_cache_security_group(
CacheSecurityGroupName='my-sec-group',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}