Skip to content

fix(kms): Alias.fromAliasName does not prefix alias name with alias/#37308

Closed
syukawa-gh wants to merge 2 commits intoaws:mainfrom
syukawa-gh:fix/kms-alias-prefix-clean
Closed

fix(kms): Alias.fromAliasName does not prefix alias name with alias/#37308
syukawa-gh wants to merge 2 commits intoaws:mainfrom
syukawa-gh:fix/kms-alias-prefix-clean

Conversation

@syukawa-gh
Copy link
Copy Markdown
Contributor

When using Alias.fromAliasName, the alias name was not automatically prefixed with 'alias/' if not already provided, unlike the Alias constructor. Now fromAliasName normalizes the alias name by adding the 'alias/' prefix when missing (and the value is not an unresolved token).

Closes #36693

When using Alias.fromAliasName, the alias name was not automatically
prefixed with 'alias/' if not already provided, unlike the Alias
constructor which does add the prefix. This caused inconsistent
behavior between creating and importing aliases.

Now fromAliasName normalizes the alias name by adding the 'alias/'
prefix when it is missing (and the value is not an unresolved token).

Closes aws#36693
@github-actions github-actions bot added beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. effort/small Small work item – less than a day of effort p2 labels Mar 23, 2026
@aws-cdk-automation aws-cdk-automation requested a review from a team March 23, 2026 03:10
Copy link
Copy Markdown
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)

@syukawa-gh syukawa-gh changed the title fix(kms): Alias.fromAliasName does not prefix alias name with 'alias/' fix(kms): Alias.fromAliasName does not prefix alias name with alias/ Mar 23, 2026
@aws-cdk-automation aws-cdk-automation dismissed their stale review March 23, 2026 08:07

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

@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 Mar 23, 2026
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@syukawa-gh
Copy link
Copy Markdown
Contributor Author

Closing in favor of #37459 (same change, updated version)

@syukawa-gh syukawa-gh closed this Apr 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

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 Apr 2, 2026
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 bug This issue is a bug. effort/small Small work item – less than a day of effort p2 pr/needs-further-review PR requires additional review from our team specialists due to the scope or complexity of changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(aws-kms): Alias.fromAliasName does not validate the alias name

3 participants