Skip to content

Commit d74d511

Browse files
cartervpull[bot]
authored andcommitted
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*
1 parent def7021 commit d74d511

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/@aws-cdk/aws-kinesis/lib/stream.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ abstract class StreamBase extends Resource implements IStream {
326326
public abstract readonly encryptionKey?: kms.IKey;
327327

328328
/**
329-
* Grant write permissions for this stream and its contents to an IAM
329+
* Grant read permissions for this stream and its contents to an IAM
330330
* principal (Role/Group/User).
331331
*
332332
* 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 {
343343
}
344344

345345
/**
346-
* Grant read permissions for this stream and its contents to an IAM
346+
* Grant write permissions for this stream and its contents to an IAM
347347
* principal (Role/Group/User).
348348
*
349-
* If an encryption key is used, permission to ues the key to decrypt the
349+
* If an encryption key is used, permission to ues the key to encrypt the
350350
* contents of the stream will also be granted.
351351
*/
352352
public grantWrite(grantee: iam.IGrantable) {

0 commit comments

Comments
 (0)