如何在查询 cloudtrail 事件时提供多个查找属性

How to give multiple lookup-attributes while querying cloudtrail events

是否可以使用多个查找属性查询 cloudtrail

当我执行以下操作时

aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=CreateTopic 

它给了我 'CreateTopic'

类型的事件列表

当我执行以下操作时

aws cloudtrail lookup-events --lookup-attributes AttributeKey=AttributeKey=Username,AttributeValue=MyUserName 

它给了我与用户相关的事件列表 'MyUserName'

但是我想要的是查询类型为 'CreateTopic' 且与用户 'MyUserName'

相关的所有事件

我试过关注,但 none 成功了

aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=CreateTopic,AttributeKey=Username,AttributeValue=MyUserName 
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=CreateTopic AttributeKey=Username,AttributeValue=MyUserName 
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=CreateTopic --lookup-attributes AttributeKey=Username,AttributeValue=MyUserName 

根据文档,--lookup-attributes 仅支持一项列表。

--lookup-attributes (list)

    Contains a list of lookup attributes. Currently the list can contain only one item.

https://docs.aws.amazon.com/cli/latest/reference/cloudtrail/lookup-events.html