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): implement directives for code-first approach #9973

Merged
merged 106 commits into from
Sep 3, 2020

Conversation

BryanPan342
Copy link
Contributor

@BryanPan342 BryanPan342 commented Aug 25, 2020

CDK supports auth directives for appsync. CDK has a class appsync.Directive that has static functions like .iam(), .apiKey(), etc. to give a field or type specific auth permissions.

BREAKING CHANGE: remove statement property for directives, instead use toString

  • AppSync: removed appsync.Directive.statement property, use the appsync.Directive.toString() function instead

Fixes: #9879


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

Copy link
Contributor

@shivlaks shivlaks left a comment

Choose a reason for hiding this comment

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

almost there! looking much better. some small suggestions and cleanup type things before we can merge it. awesome work @BryanPan342

@BryanPan342 BryanPan342 requested a review from shivlaks September 1, 2020 23:55
@BryanPan342 BryanPan342 dismissed shivlaks’s stale review September 2, 2020 17:50

addressed review

@shivlaks shivlaks added the pr/do-not-merge This PR should not be merged at this time. label Sep 2, 2020
Copy link
Contributor

@MrArnoldPalmer MrArnoldPalmer left a comment

Choose a reason for hiding this comment

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

👍

@MrArnoldPalmer MrArnoldPalmer removed the pr/do-not-merge This PR should not be merged at this time. label Sep 3, 2020
@mergify
Copy link
Contributor

mergify bot commented Sep 3, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: aeb44f9
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify
Copy link
Contributor

mergify bot commented Sep 3, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 088cd48 into aws:master Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-appsync Related to AWS AppSync contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[appsync]: support directives
4 participants