aws / aws/aws-durable-execution-sdk-java

[Feature]: parse SQSEvent and other trigger event types

オープン
#366 コメント 4 件 リアクション 1 件 担当者 1 名 @zhongkechen が担当を希望しています GitHub で見る
enhancement
主要言語
Java
スター
28
フォーク
11
平均マージ
1日 8時間
マージ済み PR(30日)
47

説明

### Expected Behavior

When a durable function is subscribed to an SQS queue, then the incoming SQS event should directly convert to `SQSEvent` model of [AWS Lambda Java Events library](https://github.com/aws/aws-lambda-java-libs/blob/main/aws-lambda-java-events/README.md).

### Actual Behavior

Durable execution fails with the following error.
```
Cannot invoke \"java.util.List.iterator()\" because the return value of \"com.amazonaws.services.lambda.runtime.events.SQSEvent.getRecords()\" is null
```

### Steps to Reproduce

1. Set up SNS -> SQS -> Durable Lambda (Java)
2. Use `SQSEvent` model of [AWS Lambda Java Events library](https://github.com/aws/aws-lambda-java-libs/blob/main/aws-lambda-java-events/README.md).
```java
public SQSBatchResponse handleRequest(final SQSEvent event, final DurableContext ctx) {

}
```
3. Publish an SNS message.

### SDK Version

1.0.1

### Java Version

17

### Is this a regression?

No

### Last Working Version

_No response_

### Additional Context

_No response_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。