简体   繁体   中英

AWS DynamoDB scan CLI

I want to do this scan:

在此处输入图像描述

Through CLI:

aws dynamodb scan --table-name dev-XXX-transactions --select "*" --filter-expression "#idXXXTransaction = :idXXXTransaction" --expression-attribute-names "{\"#idXXXTransaction\": \"idXXXTransaction\"}"

But I'm not sure how can I do an "EXISTS" on a attribute, I know how to make an exact match. Any help?

This is specified by the attribute_exists() function. I believe your filter expression should be attribute_exists(idXXXTransaction) .

The available expression operators and functions are documented here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM