Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions packages/aws-cdk-lib/aws-sns/lib/topic-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,17 @@ export interface ITopic extends IResource, notifications.INotificationRuleTarget
addToResourcePolicy(statement: iam.PolicyStatement): iam.AddToResourcePolicyResult;

/**
* Grant topic publishing permissions to the given identity
* Grant topic publishing permissions to the given identity.
*
* This grants the `sns:Publish` action on this topic's ARN.
* If the topic is encrypted with a KMS key, `kms:Decrypt` and `kms:GenerateDataKey*` are also granted.
*/
grantPublish(identity: iam.IGrantable): iam.Grant;

/**
* Grant topic subscribing permissions to the given identity
* Grant topic subscribing permissions to the given identity.
*
* This grants the `sns:Subscribe` action on this topic's ARN.
*/
grantSubscribe(identity: iam.IGrantable): iam.Grant;
}
Expand Down
Loading