Class: AWS::CloudFormation::StackResourceSummaryCollection
- Inherits:
-
Object
- Object
- AWS::CloudFormation::StackResourceSummaryCollection
- 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
- #stack ⇒ Stack readonly
Instance Method Summary collapse
-
#initialize(stack, options = {}) ⇒ StackResourceSummaryCollection
constructor
A new instance of StackResourceSummaryCollection.
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.
42 43 44 45 |
# File 'lib/aws/cloud_formation/stack_resource_summary_collection.rb', line 42 def initialize stack, = {} @stack = stack super end |
Instance Attribute Details
#stack ⇒ Stack (readonly)
48 49 50 |
# File 'lib/aws/cloud_formation/stack_resource_summary_collection.rb', line 48 def stack @stack end |