Unable to send more than 10 events in a request using SAP Eventbridge SDK

0

Hi All,

I'm using the AWS SAP SDK and I'm getting an error when sending more than 10 events in one request.

This code is working for up to 10 events. This is the error I get when I post more than 10 events: Exception /AWS1/CX_EVBCLIENTEXC: 1 validation error detected: Value '[PutEventsRequestEntry...........' at 'entries' failed to satisfy constraint: Member must have length less than or equal to 10

      loop at lt_events assigning field-symbol(<event>).
          aws_timestamp = convert_timestamp_to_aws_time( <event>-event_timestamp ).

*      Create eventbridge object
          create object lo_eb_req_entry
            exporting
              iv_time         = aws_timestamp
              iv_source       = 'SAP'
              iv_detailtype   = <event>-detail_type
              iv_detail       = <event>-detail
              iv_eventbusname = lv_event_bridge_arn
            .

          append lo_eb_req_entry to lt_eb_req_entries.
        endloop.

*      Post events to AWS Event Bridge
        data(lo_eb_result) = lo_eb->putevents(
          exporting
            it_entries                    = lt_eb_req_entries
        ).

I already check my quota settings and they're all set to default and no value is set for 10. I also couldn't find any eventbus setting that might explain this.

All help very much appreciated!

Best regards, Birgir

Biggi
질문됨 7달 전342회 조회
1개 답변
2
수락된 답변

This constraint is specified in EventBridge service doc. See https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEvents.html

It specifies max array size of 10 for entries.

AWS
답변함 7달 전
  • You're right. Thanks!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠