【问题标题】:Aws EventBridge PutEvent Limit error: An error occurred (ValidationException) when calling the PutEvents operationAws EventBridge PutEvent Limit 错误:调用 PutEvents 操作时发生错误 (ValidationException)
【发布时间】:2022-06-22 10:34:38
【问题描述】:

从 lambda 函数调用事件桥时,在详细信息中使用 10 多个对象时出现错误。可以与 Detail 关联的对象的限制是多少?当我使用 10 或少于 10 时,它工作正常。 这是我的代码:

> mylist= []
>     for key in range(1,11):
>             detail = "{} \"bucket\": \"{}\", \"key\": \"{}\" {}".format("{", bucket, key, "}")
>         
>             entry = {
>                     'Source': 'EventBridge',
>                     'DetailType': 'My location',
>                     'Detail': detail
>                 }
>             mylist.append(entry)
>             
>         response = cw.put_events(
>             Entries=mylist
>         )

【问题讨论】:

    标签: python-3.x amazon-web-services aws-lambda aws-event-bridge


    【解决方案1】:

    将事件放入事件桥时需要考虑两个限制:

    1. (您的问题)条目必须至少包含 1 项或最多 10 项。 source
    2. 总条目大小必须小于 256KB。 source

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-02
      • 2022-01-08
      • 2021-05-06
      • 1970-01-01
      • 2020-01-16
      相关资源
      最近更新 更多