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 DynamoDBStream getShardIterator and getRecords actions #23632

Open Gtofig opened 1 year ago

Gtofig commented 1 year ago

Describe the feature

Step Functions support arn:aws:states:::aws-sdk:dynamodbstreams:getShardIterator and arn:aws:states:::aws-sdk:dynamodbstreams:getRecords 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 GetShardIterator and GetRecords APIs for DynamoDB streams are currently missing

Proposed Solution

Create new DynamoDBStreamGetShardIterator and DynamoDBStreamGetRecords classes that will implement arn:aws:states:::aws-sdk:dynamodbstreams:getShardIterator and arn:aws:states:::aws-sdk:dynamodbstreams:getRecords resources respectively.

Currently, the workaround is to use CustomState

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

Thank you for your feature request. I am making it as p2 now. Any PR submission would be highly appreciated!!