Class: AWS::CloudFormation::StackSummary
- Inherits:
-
Object
- Object
- AWS::CloudFormation::StackSummary
- Defined in:
- lib/aws/cloud_formation/stack_summary.rb
Overview
A stack summary contains some information about a stack. You can get summary information on any stack (including stacks deleted within the last 90 days).
To get summary information, enumerate the summaries on an AWS::CloudFormation object:
cf = AWS::CloudFormation.new
cf.stack_summaries.each do |summary|
puts "#{summary.stack_name} : #{summary.stack_status}"
end
You can get the full Stack object from a summary by calling #stack.
Instance Attribute Summary collapse
- #creation_time ⇒ Time readonly
- #deletion_time ⇒ Time? readonly
- #last_updated_time ⇒ Time? readonly
- #stack ⇒ Stack readonly
- #stack_id ⇒ String readonly
- #stack_name ⇒ String readonly
- #stack_status ⇒ String readonly
- #stack_status_reason ⇒ String readonly
- #template_description ⇒ Strin readonly
Instance Method Summary collapse
-
#initialize(stack, details) ⇒ StackSummary
constructor
A new instance of StackSummary.
Constructor Details
#initialize(stack, details) ⇒ StackSummary
Returns a new instance of StackSummary.
35 36 37 38 39 40 |
# File 'lib/aws/cloud_formation/stack_summary.rb', line 35 def initialize stack, details @stack = stack details.each_pair do |attr_name,attr_value| instance_variable_set("@#{attr_name}", attr_value) end end |
Instance Attribute Details
#creation_time ⇒ Time (readonly)
46 47 48 |
# File 'lib/aws/cloud_formation/stack_summary.rb', line 46 def creation_time @creation_time end |
#deletion_time ⇒ Time? (readonly)
64 65 66 |
# File 'lib/aws/cloud_formation/stack_summary.rb', line 64 def deletion_time @deletion_time end |
#last_updated_time ⇒ Time? (readonly)
49 50 51 |
# File 'lib/aws/cloud_formation/stack_summary.rb', line 49 def last_updated_time @last_updated_time end |
#stack ⇒ Stack (readonly)
43 44 45 |
# File 'lib/aws/cloud_formation/stack_summary.rb', line 43 def stack @stack end |
#stack_id ⇒ String (readonly)
55 56 57 |
# File 'lib/aws/cloud_formation/stack_summary.rb', line 55 def stack_id @stack_id end |
#stack_name ⇒ String (readonly)
52 53 54 |
# File 'lib/aws/cloud_formation/stack_summary.rb', line 52 def stack_name @stack_name end |
#stack_status ⇒ String (readonly)
58 59 60 |
# File 'lib/aws/cloud_formation/stack_summary.rb', line 58 def stack_status @stack_status end |
#stack_status_reason ⇒ String (readonly)
61 62 63 |
# File 'lib/aws/cloud_formation/stack_summary.rb', line 61 def stack_status_reason @stack_status_reason end |
#template_description ⇒ Strin (readonly)
67 68 69 |
# File 'lib/aws/cloud_formation/stack_summary.rb', line 67 def template_description @template_description end |