amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

feat: Java graphql IAM template

Open ykethan opened this issue 2 years ago • 1 comments

Description of changes

The PR is to add Java template example that allow Lambda function to make a GraphQL request to a AppSync API. created in chain with https://github.com/aws-amplify/amplify-cli/pull/10997.

Changes include:

  1. adding Lambda templates for IAM model types
  2. Checks to add template if Apsync API and IAM auth are present.
  3. add e2e tests for different scenarios

Issue #, if available

Description of how you validated changes

Checklist

  • [X] PR description included
  • [X] yarn test passes
  • [X] Tests are changed or added
  • [ ] Relevant documentation is changed or added (and PR referenced)
  • [ ] New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies

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

ykethan avatar Sep 17 '22 01:09 ykethan

Codecov Report

Merging #11020 (61de5e0) into dev (3c39eba) will increase coverage by 0.00%. The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev   #11020   +/-   ##
=======================================
  Coverage   47.82%   47.82%           
=======================================
  Files         669      669           
  Lines       32678    32678           
  Branches     6608     6608           
=======================================
+ Hits        15627    15628    +1     
+ Misses      15419    15418    -1     
  Partials     1632     1632           
Impacted Files Coverage Δ
...li/src/domain/amplify-usageData/getUsageDataUrl.ts 100.00% <0.00%> (+12.50%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov-commenter avatar Sep 17 '22 02:09 codecov-commenter

@ykethan what's the status of this?

danielleadams avatar Nov 15 '22 15:11 danielleadams