class EventBusGrants
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Events.EventBusGrants |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsevents#EventBusGrants |
Java | software.amazon.awscdk.services.events.EventBusGrants |
Python | aws_cdk.aws_events.EventBusGrants |
TypeScript | aws-cdk-lib » aws_events » EventBusGrants |
Collection of grant methods for a IEventBusRef.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_events as events } from 'aws-cdk-lib';
import { aws_events as interfaces_aws_events } from 'aws-cdk-lib/interfaces';
declare const eventBusRef: interfaces_aws_events.IEventBusRef;
const eventBusGrants = events.EventBusGrants.fromEventBus(eventBusRef);
Properties
| Name | Type | Description |
|---|---|---|
| resource | IEvent |
resource
Type:
IEvent
Methods
| Name | Description |
|---|---|
| all | Permits an IAM Principal to send custom events to EventBridge so that they can be matched to rules. |
| static from | Creates grants for EventBusGrants. |
allPutEvents(grantee)
public allPutEvents(grantee: IGrantable): Grant
Parameters
- grantee
IGrantable
Returns
Permits an IAM Principal to send custom events to EventBridge so that they can be matched to rules.
static fromEventBus(resource)
public static fromEventBus(resource: IEventBusRef): EventBusGrants
Parameters
- resource
IEventBus Ref
Returns
Creates grants for EventBusGrants.

.NET
Go
Java
Python
TypeScript