aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.66k stars 3.92k forks source link

(aws-stepfunctions-tasks): Add support for SQS ReceiveMessage and DeleteMessage tasks #23630

Open Gtofig opened 1 year ago

Gtofig commented 1 year ago

Describe the feature

Step Functions support arn:aws:states:::aws-sdk:sqs:receiveMessage and arn:aws:states:::aws-sdk:sqs:deleteMessage resource types now. Please add CDK support for it.

Use Case

I would like to be able to use L2 CDK constructs for all tasks, and ReceiveMessage and DeleteMessage APIs for SQS are currently missing

Proposed Solution

Create new SqsReceiveMessage and SqsDeleteMessage classes (similar to SqsSendMessage), that will implement arn:aws:states:::aws-sdk:sqs:receiveMessage and arn:aws:states:::aws-sdk:sqs:deleteMessage resources respectively.

Currently the workaround is to use CustomState class

Other Information

No response

Acknowledgements

CDK version used

2.59.0

Environment details (OS name and version, etc.)

N/A

pahud commented 1 year ago

Agree. Any PR submission for that would be highly appreciated and before we have that support, I think the aws sdk support should be a workaround.

ymhiroki commented 1 year ago

@pahud I'm interested in contributing to this feature. Are any documents or RFCs required before the implementation?