Skip to content

Commit

Permalink
docs(cognito): Fix type names for with*Attributes methods in docs (#1…
Browse files Browse the repository at this point in the history
…3174)

Closes #13173.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
douglasnaphas authored Feb 23, 2021
1 parent ed86c66 commit e628a73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@aws-cdk/aws-cognito/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -582,12 +582,12 @@ The default behaviour is to allow read and write permissions on all attributes.
const pool = new cognito.UserPool(this, 'Pool');

const clientWriteAttributes = (new ClientAttributes())
.withStandardAttributes({name: true, email: true})
.withCustomAttributes(['favouritePizza']);
.withStandardAttributes({fullname: true, email: true})
.withCustomAttributes('favouritePizza', 'favouriteBeverage');

const clientReadAttributes = clientWriteAttributes
.withStandardAttributes({emailVerified: true})
.withCustomAttributes(['pointsEarned']);
.withCustomAttributes('pointsEarned');

pool.addClient('app-client', {
// ...
Expand Down

0 comments on commit e628a73

Please sign in to comment.