EventBusPolicyProps

class aws_cdk.aws_events.EventBusPolicyProps(*, event_bus, statement, statement_id)

Bases: object

Properties to associate Event Buses with a policy.

Parameters:
  • event_bus (IEventBus) – The event bus to which the policy applies.

  • statement (PolicyStatement) – An IAM Policy Statement to apply to the Event Bus.

  • statement_id (str) – An identifier string for the external account that you are granting permissions to.

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 import aws_iam as iam

# event_bus: events.EventBus
# policy_statement: iam.PolicyStatement

event_bus_policy_props = events.EventBusPolicyProps(
    event_bus=event_bus,
    statement=policy_statement,
    statement_id="statementId"
)

Attributes

event_bus

The event bus to which the policy applies.

statement

An IAM Policy Statement to apply to the Event Bus.

statement_id

An identifier string for the external account that you are granting permissions to.