Skip to content

Conversation

@mazyu36
Copy link
Contributor

@mazyu36 mazyu36 commented Nov 7, 2025

Issue # (if applicable)

N/A

Reason for this change

Some Validation logics were throwing unexpected errors when properties are defined as CDK Token types.
string or number may be Token.

Description of changes

  • Added Token type checking before property validation
  • Added test cases for Token properties to verify not throwing errors.

Describe any new or updated permissions being added

N/A

Description of how you validated changes

Added unit tests to verify Token properties bypass validation

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 the p2 label Nov 7, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team November 7, 2025 09:03
@github-actions github-actions bot added the distinguished-contributor [Pilot] contributed 50+ PRs to the CDK label Nov 7, 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.

The pull request linter fails with the following errors:

❌ Fixes must contain a change to an integration test file and the resulting snapshot.

If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed, add Clarification Request to a comment.

✅ A exemption request has been requested. Please wait for a maintainer's review.

@mazyu36
Copy link
Contributor Author

mazyu36 commented Nov 7, 2025

Exemption Request: only added Token checks, so I think additional integ tests are not needed.

@aws-cdk-automation aws-cdk-automation added the pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback. label Nov 7, 2025
@mazyu36 mazyu36 changed the title fix(bedrock-agentcore-alpha): fix unexpected validation error whenproperties are Token fix(bedrock-agentcore-alpha): fix unexpected validation error whenproperties are Token Nov 7, 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 Nov 7, 2025
@mazyu36 mazyu36 changed the title fix(bedrock-agentcore-alpha): fix unexpected validation error whenproperties are Token fix(bedrock-agentcore-alpha): fix unexpected validation error when properties are Token Nov 7, 2025
@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 Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

distinguished-contributor [Pilot] contributed 50+ PRs to the CDK p2 pr/needs-maintainer-review This PR needs a review from a Core Team Member pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants