Class: AWS::CloudFormation::StackOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/cloud_formation/stack_output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stack, key, value, description) ⇒ StackOutput

Returns a new instance of StackOutput.

Parameters:

  • stack (Stack)
  • key (String)
  • value (String)
  • description (String)

22
23
24
25
26
27
# File 'lib/aws/cloud_formation/stack_output.rb', line 22

def initialize stack, key, value, description
  @stack = stack
  @key = key
  @value = value
  @description = description
end

Instance Attribute Details

#descriptionString (readonly)

Returns:

  • (String)

39
40
41
# File 'lib/aws/cloud_formation/stack_output.rb', line 39

def description
  @description
end

#keyString (readonly)

Returns:

  • (String)

33
34
35
# File 'lib/aws/cloud_formation/stack_output.rb', line 33

def key
  @key
end

#stackStack (readonly)

Returns:


30
31
32
# File 'lib/aws/cloud_formation/stack_output.rb', line 30

def stack
  @stack
end

#valueString (readonly)

Returns:

  • (String)

36
37
38
# File 'lib/aws/cloud_formation/stack_output.rb', line 36

def value
  @value
end

Instance Method Details

#eql?(other) ⇒ Boolean Also known as: ==

Returns:

  • (Boolean)

42
43
44
45
46
47
48
# File 'lib/aws/cloud_formation/stack_output.rb', line 42

def eql? other
  other.is_a?(StackOutput) and
  other.stack == stack and
  other.key == key and
  other.value == value and
  other.description == description
end