Class: AWS::CloudFormation::StackSummary

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_timeTime (readonly)

Returns:

  • (Time)


46
47
48
# File 'lib/aws/cloud_formation/stack_summary.rb', line 46

def creation_time
  @creation_time
end

#deletion_timeTime? (readonly)

Returns:

  • (Time, nil)


64
65
66
# File 'lib/aws/cloud_formation/stack_summary.rb', line 64

def deletion_time
  @deletion_time
end

#last_updated_timeTime? (readonly)

Returns:

  • (Time, nil)


49
50
51
# File 'lib/aws/cloud_formation/stack_summary.rb', line 49

def last_updated_time
  @last_updated_time
end

#stackStack (readonly)

Returns:



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

def stack
  @stack
end

#stack_idString (readonly)

Returns:

  • (String)


55
56
57
# File 'lib/aws/cloud_formation/stack_summary.rb', line 55

def stack_id
  @stack_id
end

#stack_nameString (readonly)

Returns:

  • (String)


52
53
54
# File 'lib/aws/cloud_formation/stack_summary.rb', line 52

def stack_name
  @stack_name
end

#stack_statusString (readonly)

Returns:

  • (String)


58
59
60
# File 'lib/aws/cloud_formation/stack_summary.rb', line 58

def stack_status
  @stack_status
end

#stack_status_reasonString (readonly)

Returns:

  • (String)


61
62
63
# File 'lib/aws/cloud_formation/stack_summary.rb', line 61

def stack_status_reason
  @stack_status_reason
end

#template_descriptionStrin (readonly)

Returns:

  • (Strin)


67
68
69
# File 'lib/aws/cloud_formation/stack_summary.rb', line 67

def template_description
  @template_description
end