The policy for an Event Bus. Policies define the operations that are allowed on this resource. You almost never need to define this construct directly. All AWS resources that support resource policies have a method called `addToResourcePolicy()`, which will automatically create a new resource policy if one doesn't exist yet, otherwise it will add to the existing policy. Prefer to use `addToResourcePolicy()` instead.
import { EventBusPolicy } from 'aws-cdk-lib/aws-events';Or use the module namespace:
import * as events from 'aws-cdk-lib/aws-events';
// events.EventBusPolicyConfiguration passed to the constructor as EventBusPolicyProps.
eventBusRequiredIEventBusThe event bus to which the policy applies.
statementRequiredPolicyStatementAn IAM Policy Statement to apply to the Event Bus.
statementIdRequiredstringAn identifier string for the external account that you are granting permissions to.
Everything you need to know about Amazon EventBridge on one page. HD quality, print-friendly.
Download Free Infographicaws-events