你好,
使用“aws sqs get-queue-attributes”时,结果总是空白:
$ aws sqs get-queue-attributes --queue-url https://queue.amazonaws.com/1234/sample_queue
{
"ResponseMetadata": {
"RequestId": "edfaceaa-a8a6-59b6-9e75-87f13e5d1da6"
}
}
如果我尝试指定特定属性(例如 All 或 ApproximateNumberOfMessagesNotVisible),则会出现错误:
$ aws sqs get-queue-attributes --queue-url https://queue.amazonaws.com/1234/sample_queue --attribute-names ApproximateNumberOfMessagesNotVisible
{
"ErrorResponse": {
"RequestId": "7e742e72-b760-5881-a799-672920ab7f3b",
"Error": {
"Message": "Top level element may not be treated as a list",
"Code": "MalformedInput",
"Type": "Sender",
"Detail": ""
}
}
}
A client error (Unknown) occurred: Unknown
如果我能帮忙,请告诉我。 谢谢你的好工具!
马安
这现在应该在 0.4.5 版本和开发分支中修复。
似乎--attribute-names
是可选的,但没有它你什么也得不到。
试试--attributes-names All
似乎
--attribute-names
是可选的,但没有它你什么也得不到。试试
--attributes-names All
小幅修正: --attribute-names
非常感谢!
最有用的评论
似乎
--attribute-names
是可选的,但没有它你什么也得不到。试试
--attributes-names All