module AWS::Core::Model
Public Instance Methods
stack()
click to toggle source
# File lib/aws-core-model.rb, line 7 def stack stack_name = tag_value "aws:cloudformation:stack-name" if stack_name AWS::CloudFormation::Stack.new(stack_name) else nil end end
Private Instance Methods
tag_value(tag_key)
click to toggle source
# File lib/aws-core-model.rb, line 18 def tag_value(tag_key) begin self.tags[tag_key] rescue NoMethodError => e puts "#{self.class} does not support the :tags method, so we cannot determine the stack for this resource type" end end