UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

24 lines (23 loc) 754 B
import * as sns from "./sns.generated"; import * as iam from "../../aws-iam"; /** * Collection of grant methods for a ITopicRef */ export declare class TopicGrants { /** * Creates grants for TopicGrants */ static fromTopic(resource: sns.ITopicRef): TopicGrants; protected readonly resource: sns.ITopicRef; protected readonly encryptedResource?: iam.IEncryptedResource; protected readonly policyResource?: iam.IResourceWithPolicyV2; private constructor(); /** * Grant topic publishing permissions to the given identity */ publish(grantee: iam.IGrantable): iam.Grant; /** * Grant topic subscribing permissions to the given identity */ subscribe(grantee: iam.IGrantable): iam.Grant; }