Sha256: a304a5ee96c1bd3e1eb498d7fc4ebef1e31387ef4ffeb3fe57e9146c94c32122

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 KB

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-1.22.0 lib/fog/aws/requests/cloud_formation/describe_stack_events.rb
fog-1.21.0 lib/fog/aws/requests/cloud_formation/describe_stack_events.rb