Class: AWS::CloudFormation::StackResourceSummaryCollection

Inherits:
Object
  • Object
show all
Includes:
AWS::Core::Collection::WithNextToken
Defined in:
lib/aws/cloud_formation/stack_resource_summary_collection.rb

Overview

Stack Resource Summaries

Stack summaries contain information about CloudFormation stack resources. You can enumerate these from a stack.

stack = cfm.stacks['stack-name']
stack.resource_summaries.each do |summary|
  puts "#{summary[:physical_resource_id]}: #{summary[:resource_status]}"
end

Each summary yielded is a hash with the following keys:

  • :logical_resource_id
  • :physical_resource_id
  • :resource_type
  • :resource_status
  • :resource_status_reason
  • :last_updated_timestamp

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AWS::Core::Collection

#each, #each_batch, #enum, #first, #in_groups_of, #page

Constructor Details

#initialize(stack, options = {}) ⇒ StackResourceSummaryCollection

Returns a new instance of StackResourceSummaryCollection.

Parameters:

  • stack (Stack)
  • options (Hash) (defaults to: {})


42
43
44
45
# File 'lib/aws/cloud_formation/stack_resource_summary_collection.rb', line 42

def initialize stack, options = {}
  @stack = stack
  super
end

Instance Attribute Details

#stackStack (readonly)

Returns:



48
49
50
# File 'lib/aws/cloud_formation/stack_resource_summary_collection.rb', line 48

def stack
  @stack
end