Method: Fog::AWS::Elasticache::Mock#delete_cache_cluster
- Defined in:
- lib/fog/aws/requests/elasticache/delete_cache_cluster.rb
#delete_cache_cluster(cluster_id) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/fog/aws/requests/elasticache/delete_cache_cluster.rb', line 26 def delete_cache_cluster(cluster_id) response = Excon::Response.new cluster = self.data[:clusters][cluster_id] cluster['CacheClusterStatus'] = 'deleting' response.body = { 'CacheClusters' => self.data[:clusters].values, 'ResponseMetadata' => { 'RequestId' => Fog::AWS::Mock.request_id } } self.data[:clusters].delete(cluster_id) response end |