class Awspec::Type::DynamodbTable
Constants
- STATUSES
Public Instance Methods
has_attribute_definition?(name, type)
click to toggle source
# File lib/awspec/type/dynamodb_table.rb, line 26 def has_attribute_definition?(name, type) ret = resource_via_client.attribute_definitions.select { |a| a.attribute_name == name } return false if ret.empty? return false unless ret.single_resource.attribute_type == type return true if ret.single_resource.attribute_name == name end
has_key_schema?(name, type)
click to toggle source
# File lib/awspec/type/dynamodb_table.rb, line 33 def has_key_schema?(name, type) ret = resource_via_client.key_schema.select { |k| k.attribute_name == name } return false if ret.empty? return false unless ret.single_resource.key_type == type return true if ret.single_resource.attribute_name == name end
id()
click to toggle source
# File lib/awspec/type/dynamodb_table.rb, line 9 def id @id ||= resource_via_client.table_name if resource_via_client end
resource_via_client()
click to toggle source
# File lib/awspec/type/dynamodb_table.rb, line 5 def resource_via_client @resource_via_client ||= find_dynamodb_table(@display_name) end