Class: AwsCli::CLI::DYNAMO::Table

Inherits:
Thor
  • Object
show all
Defined in:
lib/awscli/cli/dynamo/table.rb

Instance Method Summary collapse

Instance Method Details

#createObject



42
43
44
45
46
47
48
# File 'lib/awscli/cli/dynamo/table.rb', line 42

def create
  #name should be > 3 and can contain a-z, A-Z, 0-9, _, .
  #type should be in N, NS, S, SS
  #read and write capacity in between 5..10000
  create_dynamo_object
  @ddb.create options
end

#deleteObject



52
53
54
55
# File 'lib/awscli/cli/dynamo/table.rb', line 52

def delete
  create_dynamo_object
  @ddb.delete options[:name]
end

#infoObject



17
18
19
20
# File 'lib/awscli/cli/dynamo/table.rb', line 17

def info
  create_dynamo_object
  @ddb.describe options[:name]
end

#listObject

method_option :exclusive_start_table_name, :aliases => ‘-e’, :banner => ‘NAME’, :desc => ‘The name of the table that starts the list’



10
11
12
13
# File 'lib/awscli/cli/dynamo/table.rb', line 10

def list
  create_dynamo_object
  @ddb.list options
end

#updateObject



61
62
63
64
# File 'lib/awscli/cli/dynamo/table.rb', line 61

def update
  create_dynamo_object
  @ddb.update options
end