dyn cli-dynamodb命令行界面

dyn-cli的Python项目详细描述


#dyn cli

dynamo db的命令行界面



*[示例](35; delete table)





>安装



>安装dyn clin最简单的方法就是使用[pip(https://pip.pypa.io//en/latest/):

`` bash
`` bash
$pip install dyn cli
````

``` bash
`` bash
`` bash``` ` `
` ```````



/>``` bash
$dyn[options]命令[args]…
```

下表显示了这些选项。

|`-a`,`——访问密钥aws_u access_u key` aws访问密钥id(默认值:local)
`-s`,`——密钥aws_u secret_u key` aws secret key。(默认值:local)
`-r`,`--region aws_u region` aws region。(默认值:us-east-1)
`-n`,`--no local`禁用设置为http://localhost:8000的本地终结点URL。(默认值:false)
`-h`,`--help`显示帮助消息。|









列出dynamodb的所有表。


` ` ` ` ` ` bash ` ` ` ` bash
$dyn list `表




` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `<
`>``` bash
$dyn create_table[选项]表属性[属性]…
````

———————————————————————————————————————————————————————————————————————————————————(默认值:1)
`-w`,`--write units integer`写容量单位。(默认值:1)

atributes

可以定义"attribute"参数,例如:`name:type[:pk][:sk]`

*_name謺attribute的名称。
*_type謺attribute的类型,可以是:
+`s`-string
+`n`-number
+`b`-二进制
*`pk`-主键第一属性(分区键-散列)
*`sk`-主键第二属性(排序键-范围)



更新表



`` bash
`` bash
$dyn update表[选项]表
````



/>`` bash
是的ONS

选项说明
——`|读取容量单位。(默认值:1)
`-w`,`--write units integer`写容量单位。(默认值:1)删除table



删除dynamodb的一个表。




>```json
{
"tablenames":[
"电影"、
"音乐"
]<>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"Attributes": "Artist",
"attributeType":"s"
},
{
"attributeName":"songTitle",
"attributeType":"s"
}
],
"creationDateTime":"2017-07-02t23:19:52.932000-03:00",
"itemCount":0,
"keyschema":[
{
"attributes name":"artist",
"keytype":"hash"
},
{
"attributes":"songTitle",
"keytype":"range"
}
],
"provisiondthroughput"{
"lastdecreasedatetime":"1969-12-31t21:00:00-03:00",
"lastdecreasedatetime":"1969-12-31t21:00:00-03:00",
"numberofdecreasestoad":0,
"readcapacityunits":1,
"writecapacityunits":1

""TableArnArn": "arn:aws:dynamodb:ddBloc: 0000000000000000000000music",<
>><<<<<<<<<<<<<<<<>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>tableMusic -r 10 -w 10
`

`` javascript
{
"tabledescription":{
"attributedefinitions":[
{
"attributes name":"artist",
"attributetype":"s"

{
"attributes":"songTitle",
"attributeType":"s"
}
],
"creationDateTime":"2017-07-02t23:19:52.932000-03:00",
"itemCount":0,
"keyschema":[
{
"attribute name":"artist",
"keytype":"hash"
},
{
"attributes":"songTitle",
"keytype":"range"
],
"provisiondthroughput":{
"lastdecreasedatetime":"1969-12-31t21:00:00-03:00",
"lastdecreasedatetime":"1969-12-31t21:00:00-03:00",
"numberofdecreasestoad":0,
"readcapacityunits":10,
"writecapacityunits":10

"table arn":"arn:aws:dynamodb:ddblocal:000000000000000000:table/music",
"tablename":"music",
"tablesizebThe TableStatus means "ACTIVE"<<<<<<<<><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<< "ProvisiondThroughput": {
"LastDec实际时间:1969-12-31t21:00:00-03:00",
"LastIncreaseDateTime":"1969-12-31t21:00:00-03:00",
"NumberOfDecreaseToDay":0,
"ReadCapacityUnits":10,
"WriteCapacityUnits":10

"TableArn":"Arn:AWS:dynamodB:Ddblocal:0000000000:table/music",
"tablename":"music",
"tablesizebytes":0,
"tablestatus":"deleting"
}







欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
maven字段#getGenericType()抛出java。lang.TypeNotPresentException   用java绘制三角形的几何图形   java无法下载主题和发件人地址(rediff)   java如何使代码线程安全   java在尝试转换FileInputStream中的文件时,我遇到了一个FileNotFound异常   java Moxy和Jackson如何将Json映射到Pojo   在foreach循环中使用BufferedWriter生成新行的java问题   java为什么我的测试在单次执行中运行时间小于1秒,而在maven构建中运行时间大于20秒?   java如何显示下载附件的进度条   了解java rmi的良好实践   .net可以将Java portlet嵌入ASP。网页?   循环如何多次执行Java方法?   java如何确保用户输入在给定的有效范围内?   java单元测试定理   java如何在IntelliJ上运行外部构建项目?   JAVA:试图编写一个检查字符串是否为数字的方法。总是返回错误   javahadoop将特定键的所有map方法生成的所有值都发送到一个reduce方法,对吗?   在java中读取和使用文件