EventBusGrants
- class aws_cdk.aws_events.EventBusGrants(*args: Any, **kwargs)
Bases:
objectCollection 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_events # event_bus_ref: interfaces_events.IEventBusRef event_bus_grants = events.EventBusGrants.from_event_bus(event_bus_ref)
Methods
- actions(grantee, actions, *, resource_arns=None)
Grant the given identity custom permissions.
- Parameters:
grantee (
IGrantable)actions (
Sequence[str])resource_arns (
Optional[Sequence[str]]) – The ARNs of the resources to grant permissions on. Default: - The ARN of the resource associated with the grant is used.
- Return type:
- 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:
Static Methods
- classmethod from_event_bus(resource)
Creates grants for EventBusGrants.
- Parameters:
resource (
IEventBusRef)- Return type: