Sha256: 5e780840bfde678d77474e663e9a565bf328898d94b2ff4051cbdc26a85e10c2

Contents?: true

Size: 860 Bytes

Versions: 53

Compression:

Stored size: 860 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module CloudFormation
        class DescribeStackResource < Fog::Parsers::Base
          def reset
            @resource = {}
            @response = { 'StackResourceDetail' => {} }
          end

          def end_element(name)
            case name
            when 'Description','LogicalResourceId', 'Metadata', 'PhysicalResourceId', 'ResourceStatus', 'ResourceStatusReason', 'ResourceType', 'StackId', 'StackName' 
              @resource[name] = value
            when 'StackResourceDetail'
              @response['StackResourceDetail'] = @resource
              @resource = {}
            when 'RequestId'
              @response[name] = value
            when 'LastUpdatedTimestamp'
              @resource[name] = Time.parse(value)
            end
          end
        end
      end
    end
  end
end

Version data entries

53 entries across 51 versions & 2 rubygems

Version Path
fog-aws-3.30.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.29.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.28.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.27.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.26.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.25.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.24.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.23.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.22.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.21.1 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.21.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.20.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.19.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.18.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.17.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.16.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.15.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.14.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.13.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.12.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb