Class: AwsCli::CLI::DYNAMO::Table
- Inherits:
-
Thor
- Object
- Thor
- AwsCli::CLI::DYNAMO::Table
- Defined in:
- lib/awscli/cli/dynamo/table.rb
Instance Method Summary collapse
- #create ⇒ Object
- #delete ⇒ Object
- #info ⇒ Object
-
#list ⇒ Object
method_option :exclusive_start_table_name, :aliases => ‘-e’, :banner => ‘NAME’, :desc => ‘The name of the table that starts the list’.
- #update ⇒ Object
Instance Method Details
#create ⇒ Object
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 end |
#delete ⇒ Object
52 53 54 55 |
# File 'lib/awscli/cli/dynamo/table.rb', line 52 def delete create_dynamo_object @ddb.delete [:name] end |
#info ⇒ Object
17 18 19 20 |
# File 'lib/awscli/cli/dynamo/table.rb', line 17 def info create_dynamo_object @ddb.describe [:name] end |
#list ⇒ Object
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 end |
#update ⇒ Object
61 62 63 64 |
# File 'lib/awscli/cli/dynamo/table.rb', line 61 def update create_dynamo_object @ddb.update end |