EventBusGrants

class aws_cdk.aws_events.EventBusGrants(*args: Any, **kwargs)

Bases: object

Collection of grant methods for a IEventBusRef.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_events as events
from aws_cdk.interfaces import aws_events as interfaces_aws_events

# event_bus_ref: interfaces_aws_events.IEventBusRef

event_bus_grants = events.EventBusGrants.from_event_bus(event_bus_ref)

Methods

all_put_events(grantee)

Permits an IAM Principal to send custom events to EventBridge so that they can be matched to rules.

Parameters:

grantee (IGrantable)

Return type:

Grant

Static Methods

classmethod from_event_bus(resource)

Creates grants for EventBusGrants.

Parameters:

resource (IEventBusRef)

Return type:

EventBusGrants