mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
25 lines
650 B
Ruby
25 lines
650 B
Ruby
module Fog
|
|
module AWS
|
|
class CloudFormation
|
|
class Real
|
|
require 'fog/aws/parsers/cloud_formation/basic'
|
|
|
|
# Delete a stack.
|
|
#
|
|
# @param stack_name String] Name of the stack to create.
|
|
#
|
|
# @return [Excon::Response]
|
|
#
|
|
# @see http://docs.amazonwebservices.com/AWSCloudFormation/latest/APIReference/API_DeleteStack.html
|
|
|
|
def delete_stack(stack_name)
|
|
request(
|
|
'Action' => 'DeleteStack',
|
|
'StackName' => stack_name,
|
|
:parser => Fog::Parsers::AWS::CloudFormation::Basic.new
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|