class AWS::CloudFormation::StackEventCollection

Attributes

stack[R]

@return [Stack]

Public Class Methods

new(stack, options = {}) click to toggle source

@param [Stack] stack @param [Hash] options

# File lib/aws/cloud_formation/stack_event_collection.rb, line 23
def initialize stack, options = {}
  @stack = stack
  super
end

Protected Instance Methods

_each_item(options = {}) { |event| ... } click to toggle source
# File lib/aws/cloud_formation/stack_event_collection.rb, line 33
def _each_item options = {}
  options[:stack_name] = stack.name
  resp = client.describe_stack_events(options)
  resp.stack_events.each do |details|

    event = StackEvent.new(stack, details.to_hash)

    yield(event)

  end
end