From b70a5fa77c5861ef955b86097583bf3e6f8405f2 Mon Sep 17 00:00:00 2001 From: Carter Van Deuren Date: Mon, 17 May 2021 11:29:47 -0700 Subject: [PATCH] docs(kinesis): correct grantRead and grantWrite comments (#14707) This commit swaps the comments for `grantRead` and `grantWrite` so that the comments match the permissions being granted. No extra verification was done for this change, as it only effects comments. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/@aws-cdk/aws-kinesis/lib/stream.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/@aws-cdk/aws-kinesis/lib/stream.ts b/packages/@aws-cdk/aws-kinesis/lib/stream.ts index 0a73c6b9062f8..b2fed1eb10329 100644 --- a/packages/@aws-cdk/aws-kinesis/lib/stream.ts +++ b/packages/@aws-cdk/aws-kinesis/lib/stream.ts @@ -326,7 +326,7 @@ abstract class StreamBase extends Resource implements IStream { public abstract readonly encryptionKey?: kms.IKey; /** - * Grant write permissions for this stream and its contents to an IAM + * Grant read permissions for this stream and its contents to an IAM * principal (Role/Group/User). * * If an encryption key is used, permission to ues the key to decrypt the @@ -343,10 +343,10 @@ abstract class StreamBase extends Resource implements IStream { } /** - * Grant read permissions for this stream and its contents to an IAM + * Grant write permissions for this stream and its contents to an IAM * principal (Role/Group/User). * - * If an encryption key is used, permission to ues the key to decrypt the + * If an encryption key is used, permission to ues the key to encrypt the * contents of the stream will also be granted. */ public grantWrite(grantee: iam.IGrantable) {