Skip to content

Commit

Permalink
add link to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
msambol committed Jan 22, 2024
1 parent 0624bb3 commit 201cf23
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export class UserPoolIdentityProviderOidc extends UserPoolIdentityProviderBase {
if (!Token.isUnresolved(name) && (name.length < 3 || name.length > 32)) {
throw new Error(`Expected provider name to be between 3 and 32 characters, received ${name} (${name.length} characters)`);
}
// https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolidentityprovider.html#aws-resource-cognito-userpoolidentityprovider-properties
if (!name.match(/[^_\p{Z}][\p{L}\p{M}\p{S}\p{N}\p{P}][^_\p{Z}]+/)) {
throw new Error(`Expected provider name must match [^_\p{Z}][\p{L}\p{M}\p{S}\p{N}\p{P}][^_\p{Z}]+, received ${name}`);
}
Expand Down

0 comments on commit 201cf23

Please sign in to comment.