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.67k stars 3.92k forks source link

appsync: L2 for AppSync Events #32004

Open tmokmss opened 1 week ago

tmokmss commented 1 week ago

Describe the feature

AWS AppSync Events allows developers to easily broadcast real-time event data to subscribers using serverless WebSocket APIs, eliminating the need to build WebSocket infrastructure.

Release blog: https://aws.amazon.com/blogs/mobile/announcing-aws-appsync-events-serverless-websocket-apis/

Developer Guide: https://docs.aws.amazon.com/appsync/latest/eventapi/event-api-welcome.html

Use Case

Easily configure AppSync Events resources, e.g.

Proposed Solution

No response

Other Information

It seems we don't have CloudFormation for AppSync Events support yet. After L1s are added, we can design L2 APIs. edit) L1s appears merged recently: https://github.com/aws/aws-cdk/pull/32007 Here is an implementation example: https://github.com/aws-samples/websocket-api-cognito-auth-sample/blob/main/cdk/lib/construct/events.ts

Acknowledgements

CDK version used

2.165.0

Environment details (OS name and version, etc.)

macOS

FilipPyrek commented 1 week ago

It will be great to have L2 constructs 💪

Are there already L1 constructs? 👀 I don't see any. But I can see it in CloudFormation docs.

tmokmss commented 1 week ago

It seems L1s are merged: #32007

pahud commented 1 week ago

Thank you! Please help us prioritize with 👍 and we welcome community PRs!