class AWS::CloudFormation::StackEvent
# Stack
Event
You can get stack events from a {Stack} object.
stack = cfm.stacks['stack-name'] stack.events.each do |event| puts "#{event.timestamp}: #{event.resource_status}" end
Attributes
event_id[R]
@return [String] event_id
The unique ID of this event.
logical_resource_id[R]
@return [String] The logical name of the resource specified
in the template.
physical_resource_id[R]
@return [String] The name or unique identifier associated with the
physical instance of the resource.
resource_properties[R]
@return [String] BLOB of the properties used to create the resource.
resource_status[R]
@return [Symbol] Current status of the resource.
resource_status_reason[R]
@return [String,nil] Success/failure message associated with the
resource.
resource_type[R]
@return [String] Type of the resource (e.g. ‘AWS::EC2::Instance’).
stack[R]
@return [Stack] stack The stack this event belongs to.
stack_id[R]
@return [String] The unique ID name of the instance of the stack.
stack_name[R]
@return [String] The name associated with a stack.
timestamp[R]
@return [Time] When the status was last updated.
Public Class Methods
new(stack, details)
click to toggle source
@api private
# File lib/aws/cloud_formation/stack_event.rb, line 28 def initialize stack, details @stack = stack details.each_pair do |attr_name,attr_value| instance_variable_set("@#{attr_name}", attr_value) end end