class AWS::CloudFormation::StackResource

@attr_reader [String,nil] description

User defined description associated with the resource.

@attr_reader [String] physical_resource_id

The name or unique identifier that corresponds to a physical instance
ID of a resource supported by AWS CloudFormation.

@attr_reader [Symbol] resource_status

Current status of the resource.

@attr_reader [String,nil] resource_status_reason

Success/failure message associated with the resource.

@attr_reader [String] resource_type

Type of the resource (e.g. 'AWS::EC2::Instance')

@attr_reader [String] stack_name

The name associated with the stack.

@attr_reader [String] stack_id

Unique identifier of the stack.

@attr_reader [Time] last_updated_timestamp

When the status was last updated.

@attr_reader [String,nil] metadata

The JSON format content of the Metadata attribute declared for the 
resource.

Attributes

logical_resource_id[R]

@return [String] The logical name of the resource specified in

the template.
stack[R]

@return [Stack]

Public Class Methods

new(stack, logical_resource_id, options = {}) click to toggle source

@private

Calls superclass method
# File lib/aws/cloud_formation/stack_resource.rb, line 49
def initialize stack, logical_resource_id, options = {}
  @stack = stack
  @logical_resource_id = logical_resource_id
  super
end

Protected Instance Methods

get_resource(attribute = nil) click to toggle source
# File lib/aws/cloud_formation/stack_resource.rb, line 111
def get_resource attribute = nil
  client.describe_stack_resource(resource_options)  
end
resource_identifiers() click to toggle source
# File lib/aws/cloud_formation/stack_resource.rb, line 107
def resource_identifiers
  [[:stack_name, stack.name], [:logical_resource_id, logical_resource_id]]
end