Sha256: 21387b976a564f01b064689a2cc25ab4edc81f9e4102e79f5f3ee9f36c359709

Contents?: true

Size: 1.71 KB

Versions: 79

Compression:

Stored size: 1.71 KB

Contents

module Fog
  module AWS
    class DynamoDB
      class Real

        # Describe DynamoDB table
        #
        # ==== Parameters
        # * 'table_name'<~String> - name of table to describe
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'Table'<~Hash>
        #       * 'CreationDateTime'<~Float> - Unix epoch time of table creation
        #       * 'KeySchema'<~Hash> - schema for table
        #         * 'HashKeyElement'<~Hash>: info for primary key
        #           * 'AttributeName'<~String> - name of attribute
        #           * 'AttributeType'<~String> - type of attribute, in %w{N NS S SS} for number, number set, string, string set
        #         * 'RangeKeyElement'<~Hash>: optional, info for range key
        #           * 'AttributeName'<~String> - name of attribute
        #           * 'AttributeType'<~String> - type of attribute, in %w{N NS S SS} for number, number set, string, string set
        #       * 'ProvisionedThroughput'<~Hash>:
        #         * 'ReadCapacityUnits'<~Integer> - read capacity for table, in 5..10000
        #         * 'WriteCapacityUnits'<~Integer> - write capacity for table, in 5..10000
        #       * 'TableName'<~String> - name of table
        #       * 'TableSizeBytes'<~Integer> - size of table in bytes
        #       * 'TableStatus'<~String> - status of table
        def describe_table(table_name)
          body = {
            'TableName' => table_name
          }

          request(
            :body       => Fog::JSON.encode(body),
            :headers    => {'x-amz-target' => 'DynamoDB_20111205.DescribeTable'},
            :idempotent => true
          )
        end

      end
    end
  end
end

Version data entries

79 entries across 79 versions & 12 rubygems

Version Path
fog-1.22.0 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-1.21.0 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-1.20.0 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-1.19.0 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/aws/requests/dynamodb/describe_table.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/aws/requests/dynamodb/describe_table.rb