Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(appsync): support AppSync Events #32411

Closed
wants to merge 21 commits into from
Closed

Conversation

mazyu36
Copy link
Contributor

@mazyu36 mazyu36 commented Dec 7, 2024

Issue # (if applicable)

Closes #32004.

Reason for this change

To support AppSync Event APIs.

Description of changes

Add Api and ChannelNamespace Construct.

Description of how you validated changes

Add unit tests and an integ test.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p1 labels Dec 7, 2024
@aws-cdk-automation aws-cdk-automation requested a review from a team December 7, 2024 11:07
@github-actions github-actions bot added the distinguished-contributor [Pilot] contributed 50+ PRs to the CDK label Dec 7, 2024
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.

Copy link

codecov bot commented Dec 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.66%. Comparing base (06cdaac) to head (6a02ca1).
Report is 32 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #32411   +/-   ##
=======================================
  Coverage   78.66%   78.66%           
=======================================
  Files         107      107           
  Lines        7237     7237           
  Branches     1329     1329           
=======================================
  Hits         5693     5693           
  Misses       1358     1358           
  Partials      186      186           
Flag Coverage Δ
suite.unit 78.66% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
packages/aws-cdk 78.66% <ø> (ø)

@mazyu36 mazyu36 changed the title feat(appsync): support Event API and Channel Namespace feat(appsync): support Events API and Channel Namespace Dec 8, 2024
@mazyu36 mazyu36 changed the title feat(appsync): support Events API and Channel Namespace feat(appsync): support Event API and Channel Namespace Dec 8, 2024
@mazyu36 mazyu36 marked this pull request as ready for review December 9, 2024 11:43
@aws-cdk-automation aws-cdk-automation dismissed their stale review December 9, 2024 11:45

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

/**
* enum with all possible values for AppSync authorization type
*/
export enum AuthorizationType {
Copy link
Contributor Author

@mazyu36 mazyu36 Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The authorization config is largely same between GraphQL and Events, so it has been extracted into a separate file.

@mazyu36 mazyu36 marked this pull request as draft December 9, 2024 11:55
public readonly channelNamespaceArn: string;

constructor(scope: Construct, id: string, props: ChannelNamespaceProps) {
if (props.channelNamespaceName !== undefined && !Token.isUnresolved(props.channelNamespaceName)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ChannelNamespaceName's pattern is quoted from Management Console.
image

Currently, this pattern is inconsistent with the one described in the CloudFormation documentation.

I've reported it. aws-cloudformation/cloudformation-coverage-roadmap#2208

@mazyu36 mazyu36 marked this pull request as ready for review December 9, 2024 12:31
@mazyu36 mazyu36 changed the title feat(appsync): support Event API and Channel Namespace feat(appsync): support AppSync Events Dec 9, 2024
@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Dec 9, 2024
@mazyu36 mazyu36 mentioned this pull request Dec 9, 2024
2 tasks
@mazyu36 mazyu36 marked this pull request as draft December 9, 2024 14:26
@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Dec 9, 2024
@mazyu36 mazyu36 marked this pull request as ready for review December 9, 2024 15:48
@onlybakam
Copy link
Contributor

hey @mazyu36, thanks for opening this PR. the AppSync team is working on an L2 implementation as well. It would be good to collaborate and merge some of those efforts. Let me know if you're open to that and we can connect.

@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Dec 9, 2024
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 6a02ca1
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mazyu36
Copy link
Contributor Author

mazyu36 commented Dec 9, 2024

@onlybakam

Thank you.
Sounds great! I'd love to collaborate.

@onlybakam
Copy link
Contributor

cool. can you email me at bricep@amazon.com ?

@mazyu36 mazyu36 marked this pull request as draft December 10, 2024 23:33
@mazyu36
Copy link
Contributor Author

mazyu36 commented Dec 10, 2024

Since I am currently collaborating with the AppSync team, this PR will remain in Draft status for the time being.

@tai-acall
Copy link

Since I am currently collaborating with the AppSync team, this PR will remain in Draft status for the time being.

wow ! I can't wait to see this, is any schedule about release?

I'm considering how to do implementation for AppSnyc Events in our code base, if L2 construct ready will be so much helpful !

@mazyu36

@mazyu36
Copy link
Contributor Author

mazyu36 commented Dec 12, 2024

@tai-acall
Thank you for your comment.
I cannot provide specific details about the schedule, but I believe an update will come soon.

Please be patient for a moment.​​​​​​​​​​​​​​​​

@mazyu36
Copy link
Contributor Author

mazyu36 commented Dec 13, 2024

New PR by AppSync Team is now opened.

#32505

So I close this PR.

@mazyu36 mazyu36 closed this Dec 13, 2024
Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
distinguished-contributor [Pilot] contributed 50+ PRs to the CDK effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p1 pr/needs-maintainer-review This PR needs a review from a Core Team Member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

appsync: L2 for AppSync Events
4 participants