aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
24 lines (23 loc) • 789 B
TypeScript
import * as events from "./events.generated";
import * as iam from "../../aws-iam";
import * as cdk from "../../core/lib";
/**
* Collection of grant methods for a IEventBusRef
*/
export declare class EventBusGrants {
/**
* Creates grants for EventBusGrants
*/
static fromEventBus(resource: events.IEventBusRef): EventBusGrants;
protected readonly resource: events.IEventBusRef;
private constructor();
/**
* Grant the given identity custom permissions
*/
actions(grantee: iam.IGrantable, actions: Array<string>, options?: cdk.PermissionsOptions): iam.Grant;
/**
* Permits an IAM Principal to send custom events to EventBridge
* so that they can be matched to rules.
*/
allPutEvents(grantee: iam.IGrantable): iam.Grant;
}