2011-02-26 15:18:42 -05:00
|
|
|
module Fog
|
|
|
|
module AWS
|
|
|
|
class CloudFormation
|
|
|
|
class Real
|
|
|
|
|
|
|
|
require 'fog/aws/parsers/cloud_formation/basic'
|
|
|
|
|
2013-03-10 17:17:56 -05:00
|
|
|
# Delete a stack.
|
2011-02-26 15:18:42 -05:00
|
|
|
#
|
2013-03-10 17:17:56 -05:00
|
|
|
# @param stack_name String] Name of the stack to create.
|
2011-02-26 15:18:42 -05:00
|
|
|
#
|
2013-03-10 17:17:56 -05:00
|
|
|
# @return [Excon::Response]
|
2011-02-26 15:18:42 -05:00
|
|
|
#
|
2013-03-10 17:17:56 -05:00
|
|
|
# @see http://docs.amazonwebservices.com/AWSCloudFormation/latest/APIReference/API_DeleteStack.html
|
2014-02-19 12:30:59 +00:00
|
|
|
|
2011-02-26 15:18:42 -05:00
|
|
|
def delete_stack(stack_name)
|
|
|
|
request(
|
|
|
|
'Action' => 'DeleteStack',
|
|
|
|
'StackName' => stack_name,
|
|
|
|
:parser => Fog::Parsers::AWS::CloudFormation::Basic.new
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|