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

fix(cognito-identitypool): providerUrl causes error when mappingKey is not provided and it is a token #21191

Merged
merged 8 commits into from
Jul 30, 2022
Prev Previous commit
Next Next commit
Fix providerUrl.value is token error message
Update the wording of the error message when providerUrl.value is
a token as per request of @TheRealAmazonKendra
  • Loading branch information
SamStephens committed Jul 30, 2022
commit 49af778a822c58d034c58fde626971d6a379a50c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export class IdentityPoolRoleAttachment extends Resource implements IIdentityPoo
} else {
const providerUrl = prop.providerUrl.value;
if (Token.isUnresolved(providerUrl)) {
throw new Error('mappingKey must be provided when providerUrl.value is an unresolved token');
throw new Error('mappingKey must be provided when providerUrl.value is a token');
}
mappingKey = providerUrl;
}
Expand Down