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 28 29 30 31 32 33 34 35 36 37 38 39
|
module Fog
module AWS
class CloudFormation
class Real
require 'fog/aws/parsers/cloud_formation/describe_stack_events'
# Describe stack events.
#
# @param stack_name [String] stack name to return events for.
# @param options [Hash]
# @option options NextToken [String] Identifies the start of the next list of events, if there is one.
#
# @return [Excon::Response]
# * body [Hash]:
# * StackEvents [Array] - Matching resources
# * event [Hash]:
# * EventId [String] -
# * StackId [String] -
# * StackName [String] -
# * LogicalResourceId [String] -
# * PhysicalResourceId [String] -
# * ResourceType [String] -
# * Timestamp [Time] -
# * ResourceStatus [String] -
# * ResourceStatusReason [String] -
#
# @see http://docs.amazonwebservices.com/AWSCloudFormation/latest/APIReference/API_DescribeStackEvents.html
def describe_stack_events(stack_name, options = {})
request({
'Action' => 'DescribeStackEvents',
'StackName' => stack_name,
:parser => Fog::Parsers::AWS::CloudFormation::DescribeStackEvents.new
}.merge!(options))
end
end
end
end
end
|