1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
module Fog
module AWS
class CloudFormation
class Real
require 'fog/aws/parsers/cloud_formation/get_template'
# Describe stacks.
#
# @param stack_name [String] stack name to get template from
#
# @return [Excon::Response]
# * body [Hash]:
# * TemplateBody [String] - structure containing the template body (json)
#
# @see http://docs.amazonwebservices.com/AWSCloudFormation/latest/APIReference/API_GetTemplate.html
def get_template(stack_name)
request(
'Action' => 'GetTemplate',
'StackName' => stack_name,
:parser => Fog::Parsers::AWS::CloudFormation::GetTemplate.new
)
end
end
end
end
end
|