mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
33 lines
793 B
Ruby
33 lines
793 B
Ruby
![]() |
module Fog
|
||
|
module AWS
|
||
|
class Elasticache
|
||
|
class Real
|
||
|
|
||
|
require 'fog/aws/parsers/elasticache/describe_cache_clusters'
|
||
|
|
||
|
# Deletes a Cache Cluster
|
||
|
#
|
||
|
# === Parameter (required):
|
||
|
# * CacheClusterId <~String> - The ID of the cache cluster to delete
|
||
|
# === Returns
|
||
|
# * response <~Excon::Response>:
|
||
|
# * body <~Hash>
|
||
|
def delete_cache_cluster(cluster_id)
|
||
|
request(
|
||
|
'Action' => 'DeleteCacheCluster',
|
||
|
'CacheClusterId' => cluster_id,
|
||
|
:parser => Fog::Parsers::AWS::Elasticache::DescribeCacheClusters.new
|
||
|
)
|
||
|
end
|
||
|
|
||
|
end
|
||
|
|
||
|
class Mock
|
||
|
def describe_cache_clusters
|
||
|
Fog::Mock.not_implemented
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|