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: rename iam -> identityPool in data-schema #195

Merged
merged 3 commits into from
Apr 26, 2024
Merged

feat: rename iam -> identityPool in data-schema #195

merged 3 commits into from
Apr 26, 2024

Conversation

iartemiev
Copy link
Member

Description of changes:

  • rename iam -> identityPool in schema builder
  • extend runtime AuthMode / GraphQLAuthMode types to support identityPool (iam remains valid on the client)
  • update tests/benches/comments

Related JS PR: aws-amplify/amplify-js#13299

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@iartemiev iartemiev requested review from a team as code owners April 26, 2024 18:03
Copy link

changeset-bot bot commented Apr 26, 2024

🦋 Changeset detected

Latest commit: d193c86

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@aws-amplify/data-schema-types Patch
@aws-amplify/data-schema Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -571,7 +571,9 @@ function calculateAuth(authorization: Authorization<any, any, any>[]) {
}

if (rule.provider) {
ruleParts.push(`provider: ${rule.provider}`);
// identityPool maps to iam in the transform
const provider = rule.provider === 'identityPool' ? 'iam' : rule.provider;
Copy link
Member

Choose a reason for hiding this comment

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

For my own curiosity will the Amplify schema to be updated eventually to use the consistent identityPool string?

Copy link
Member Author

@iartemiev iartemiev Apr 26, 2024

Choose a reason for hiding this comment

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

I'm not sure to be honest. Maybe not, since it's still IAM as far as AppSync is concerned. We're just trying to make it a bit less confusing for gen2 customers

@iartemiev iartemiev merged commit b3fffcf into main Apr 26, 2024
5 checks passed
@iartemiev iartemiev deleted the rename-iam branch June 20, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants