Skip to content

feat(appsync): implement directives for code-first approach#9973

Merged
mergify[bot] merged 106 commits intoaws:masterfrom
BryanPan342:directives
Sep 3, 2020
Merged

feat(appsync): implement directives for code-first approach#9973
mergify[bot] merged 106 commits intoaws:masterfrom
BryanPan342:directives

Conversation

@BryanPan342
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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