24 lines
789 B
TypeScript
24 lines
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;
|
|
}
|