Skip to content

Commit 1798498

Browse files
faridnshmatboros
authored andcommitted
Add note to KMS alias grant methods docs
Co-authored-by: Matyas Boros <[email protected]>
1 parent 436a04b commit 1798498

File tree

1 file changed

+1
-1
lines changed
  • packages/aws-cdk-lib/aws-kms/lib

1 file changed

+1
-1
lines changed

packages/aws-cdk-lib/aws-kms/lib/alias.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class Alias extends AliasBase {
188188
* Import an existing KMS Alias defined outside the CDK app, by the alias name. This method should be used
189189
* instead of 'fromAliasAttributes' when the underlying KMS Key ARN is not available.
190190
* This Alias will not have a direct reference to the KMS Key, so addAlias method is not supported.
191-
* The grant* methods will use the kms:ResourceAliases condition to grant permissions to the specific alias name.
191+
* The grant* methods will use the kms:ResourceAliases condition to grant permissions to the specific alias name. They will also only modify the principal policy, not the key resource policy.
192192
*
193193
* @param scope The parent creating construct (usually `this`).
194194
* @param id The construct's name.

0 commit comments

Comments
 (0)