Menu
Amazon ElastiCache
API Reference (API Version 2015-02-02)

DeleteCacheSecurityGroup

Deletes a cache security group.

Note

You cannot delete a cache security group if it is associated with any cache clusters.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

CacheSecurityGroupName

The name of the cache security group to delete.

Note

You cannot delete the default security group.

Type: String

Required: Yes

Errors

For information about the errors that are common to all actions, see Common Errors.

CacheSecurityGroupNotFound

The requested cache security group name does not refer to an existing cache security group.

HTTP Status Code: 404

InvalidCacheSecurityGroupState

The current state of the cache security group does not allow deletion.

HTTP Status Code: 400

InvalidParameterCombination

Two or more incompatible parameters were specified.

HTTP Status Code: 400

InvalidParameterValue

The value for a parameter is invalid.

HTTP Status Code: 400

Example

Sample Request

Copy
https://elasticache.us-west-2.amazonaws.com/ ?Action=DeleteCacheSecurityGroup &CacheSecurityGroupName=mycachesecuritygroup3 &Version=2015-02-02 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T192317Z &X-Amz-Credential=<credential>

Sample Response

Copy
<DeleteCacheSecurityGroupResponse xmlns="http://elasticache.amazonaws.com/doc/2015-02-02/"> <ResponseMetadata> <RequestId>c130cfb7-3650-11e0-ae57-f96cfe56749c</RequestId> </ResponseMetadata> </DeleteCacheSecurityGroupResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: