class Convection::Model::Template::Resource::DynamoDBTable
AWS::DynamoDB::Table
@example
dynamodb_table 'TestTable' do #A attribute definitions { 'AttributeName' : String, 'AttributeType' : String } attribute_definitions 'AttributeName' => 'Name', 'AttributeType' => 'Type' #A key schema { 'AttributeName' : String, 'KeyType' : 'HASH or RANGE' } key_schema 'AttributeName' => 'Name', 'KeyType' => 'HASH' #Provisioned throughout hash { 'ReadCapacityUnits' : Number, 'WriteCapacityUnits' : Number } provisioned_throughput 'ReadCapacityUnits' => 100, 'WriteCapacityUnits' => 100 #optional #A global seconday index { 'IndexName' : String, 'KeySchema' : [KeySchema, ... ], 'Projection' : { Projection }, 'ProvisionedThroughput' : { ProvisionedThroughput }} global_secondary_indexes 'IndexName' => 'Name', 'KeySchema' => [{' AttributeName' => 'Name', 'KeyType' => 'HASH' }], 'Projection' => { 'NonKeyAttributes' => [{ 'AttributeName' => 'Name2', 'AttributeType' => 'Type' }], 'ProjectionType'=>'Type' }, 'ProvisionedThroughput' =>{ 'ReadCapacityUnits' => 100, 'WriteCapacityUnits' => 100 } #A local secondary index { 'IndexName' : String, 'KeySchema' : [ KeySchema, ...], 'Projection' : { Projection }} local_secondary_indexes 'IndexName' => 'Name', 'KeySchema' => [{ 'AttributeName' => 'Name', 'KeyType' => 'HASH' }], 'Projection' => {'NonKeyAttributes' =>[ {'AttributeName' => 'Name2', 'AttributeType' => 'Type'} ], 'ProjectionType'=>'Type' } #A point in time recovery specification { 'PointInTimeRecoveryEnabled' : Boolean} point_in_time_recovery_specification 'PointInTimeRecoveryEnabled' => true #A sse specification { 'SSEEnabled' : Boolean } sse_specification 'SSEEnabled' => false #A stream specification { 'StreamViewType' : String } stream_specification 'StreamViewType' => 'Type' table_name 'TableName' #A time to live specification { 'AttributeName' : String, 'Enabled' : Boolean } time_to_live_specification 'AttributeName' => 'Name', 'Enabled' => true tag 'Name', 'Test' end
Public Instance Methods
render(*args)
click to toggle source
Calls superclass method
Convection::Model::Template::Resource#render
# File lib/convection/model/template/resource/aws_dynamodb_table.rb, line 68 def render(*args) super.tap do |resource| render_tags(resource) end end