Skip to content

docs(cognito): clarify standard attribute name mappings#35072

Closed
ubaidrmn wants to merge 1 commit intoaws:mainfrom
ubaidrmn:update-cognito-standard-attribute-docs
Closed

docs(cognito): clarify standard attribute name mappings#35072
ubaidrmn wants to merge 1 commit intoaws:mainfrom
ubaidrmn:update-cognito-standard-attribute-docs

Conversation

@ubaidrmn
Copy link
Copy Markdown

@ubaidrmn ubaidrmn commented Jul 25, 2025

Issue

Closes #17361

Reason for this change

The StandardAttribute interface for Cognito User Pools in the CDK includes profilePicture and fullname attributes that do not exist in the official list of Cognito standard attributes. These attributes are being mapped to the actual Cognito attributes name and picture internally in attr-names.ts.

This can be confusing for developers who are referencing Cognito's official documentation and expect the attribute names to match exactly.

Description of changes

Added a note in both fullname and profilePicture docstrings to clarify the mappings.

Checklist


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

### Issue

Closes aws#17361

### Reason for this change

The `StandardAttribute` interface for Cognito User Pools in the CDK includes `profilePicture` and `fullname` attributes that do not exist in the [official list](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html) of Cognito standard attributes. These attributes are being mapped to the actual Cognito attributes `name` and `picture` internally in [`attr-names.ts`](https://github.com/aws/aws-cdk/blob/v1-main/packages/@aws-cdk/aws-cognito/lib/private/attr-names.ts).

This can be confusing for developers who are referencing Cognito's official documentation and expect the attribute names to match exactly.

### Description of changes

Added a note in both `fullname` and `profilePicture` docstrings to clarify the mappings.

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@github-actions github-actions bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label Jul 25, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team July 25, 2025 18:14
@github-actions github-actions bot added feature-request A feature should be added or improved. p2 labels Jul 25, 2025
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 7f44cb2
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

This PR has been in the BUILD FAILING state for 3 weeks, and looks abandoned. Note that PRs with failing linting check or builds are not reviewed, please ensure your build is passing

To prevent automatic closure:

  • Resume work on the PR
  • OR request an exemption by adding a comment containing 'Exemption Request' with justification e.x "Exemption Request: "
  • OR request clarification by adding a comment containing 'Clarification Request' with a question e.x "Clarification Request: "

This PR will automatically close in 14 days if no action is taken.

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

This PR has been deemed to be abandoned, and will be automatically closed. Please create a new PR for these changes if you think this decision has been made in error.

@aws-cdk-automation aws-cdk-automation added the closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. label Aug 31, 2025
@github-actions
Copy link
Copy Markdown
Contributor

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. feature-request A feature should be added or improved. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(@aws-cdk/aws-cognito): SettingAttribute 'fullname' is not consistent with documentation.

3 participants