Asynchronous response from request handlers in aws cloudformation resource type

0

I am following the below guide to onboard a new resource type to aws cloudformation:

https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-walkthrough.html

I am using JAVA to code the CRUD request handlers for the resource type. Looking at the method signature of the auto-generated handlers, it seems like there is no way to return a ProgressEvent wrapped in a Java future from the handlers.

Does this mean that aws does not allow to asynchronously return the ProgressEvent response and the call to the request handler is a blocking call?

The caller code for the java request handlers is present here:

https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/tree/master/src/main/java/software/amazon/cloudformation

The invokeHandler() method in AbstractWrapper.java and handleRequest() method in LambdaWrapper.java seems to always return a synchronous response. Is there no way to return an async response from the request handlers?

질문됨 2년 전74회 조회
답변 없음

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

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

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

관련 콘텐츠