Skip to content

Conversation

@mazyu36
Copy link
Contributor

@mazyu36 mazyu36 commented Oct 27, 2025

Issue # (if applicable)

Closes #35854 .

Reason for this change

Improve the Cognito authorizer configuration by accepting Cognito construct references instead of string identifiers, providing better type safety and integration with the CDK ecosystem.
Additionally, add support for multi-clients.

Description of changes

  • Enhanced RuntimeAuthorizerConfiguration.usingCognito() to accept IUserPool and IUserPoolClient constructs instead of string parameters
  • Added support for multiple Cognito clients through an array parameter

The implementation now provides better CDK integration and type safety by using construct references rather than raw string identifiers.

Describe any new or updated permissions being added

N/A

Description of how you validated changes

Add unit tests and integ test.

BREAKING CHANGE: The signature of RuntimeAuthorizerConfiguration.usingCognito() has changed to accept IUserPool and IUserPoolClient constructs instead of string parameters, and now supports multiple clients.

Checklist


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 feature-request A feature should be added or improved. p2 labels Oct 27, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team October 27, 2025 13:44
@github-actions github-actions bot added the distinguished-contributor [Pilot] contributed 50+ PRs to the CDK label Oct 27, 2025
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

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

(This review is outdated)

@krokoko
Copy link
Contributor

krokoko commented Oct 27, 2025

That seems to be a fair edit, thanks @mazyu36 !

@Abogical
Copy link
Member

Thanks @mazyu36 ! Make sure to classify this as a breaking change.

@aws-cdk-automation aws-cdk-automation added the pr/needs-further-review PR requires additional review from our team specialists due to the scope or complexity of changes. label Oct 27, 2025
@aws-cdk-automation aws-cdk-automation dismissed their stale review October 28, 2025 04:36

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@github-actions github-actions bot added the effort/medium Medium work item – several days of effort label Oct 28, 2025
@mazyu36 mazyu36 marked this pull request as ready for review October 28, 2025 04:49
@aws-cdk-automation aws-cdk-automation removed the pr/needs-further-review PR requires additional review from our team specialists due to the scope or complexity of changes. label Oct 28, 2025
@mazyu36 mazyu36 force-pushed the feat/agentcore-cognito branch from d620e86 to 6ec275e Compare October 28, 2025 07:41
@mazyu36 mazyu36 changed the title feat(bedrock-agentcore): use IUserPool and IUserPoolClient interfaces instead of string identifiers feat(bedrock-agentcore): use IUserPool and IUserPoolClient interfaces instead of string identifiers Oct 28, 2025
@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Oct 28, 2025
@mazyu36
Copy link
Contributor Author

mazyu36 commented Oct 28, 2025

I struggled a bit with Rosetta, but I've completed the Construct implementation.
I recognize this will be a breaking change.

@aws-cdk-automation aws-cdk-automation added pr/needs-maintainer-review This PR needs a review from a Core Team Member and removed pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. labels Oct 28, 2025
@Abogical Abogical self-assigned this Oct 29, 2025
@mergify
Copy link
Contributor

mergify bot commented Oct 29, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit a38afc9 into aws:main Oct 29, 2025
20 of 21 checks passed
@github-actions
Copy link
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 Oct 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

distinguished-contributor [Pilot] contributed 50+ PRs to the CDK effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2 pr/needs-maintainer-review This PR needs a review from a Core Team Member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bedrock-agentcore: use IUserPool and IUserPoolClient interfaces instead of string identifiers

5 participants