aws-cdk-lib.aws_events.EventBusPolicyProps

interface EventBusPolicyProps

LanguageType name
.NETAmazon.CDK.AWS.Events.EventBusPolicyProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsevents#EventBusPolicyProps
Javasoftware.amazon.awscdk.services.events.EventBusPolicyProps
Pythonaws_cdk.aws_events.EventBusPolicyProps
TypeScript (source)aws-cdk-lib » aws_events » EventBusPolicyProps

Properties to associate Event Buses with a policy.

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_iam as iam } from 'aws-cdk-lib';

declare const eventBus: events.EventBus;
declare const policyStatement: iam.PolicyStatement;
const eventBusPolicyProps: events.EventBusPolicyProps = {
  eventBus: eventBus,
  statement: policyStatement,
  statementId: 'statementId',
};

Properties

NameTypeDescription
eventBusIEventBusThe event bus to which the policy applies.
statementPolicyStatementAn IAM Policy Statement to apply to the Event Bus.
statementIdstringAn identifier string for the external account that you are granting permissions to.

eventBus

Type: IEventBus

The event bus to which the policy applies.


statement

Type: PolicyStatement

An IAM Policy Statement to apply to the Event Bus.


statementId

Type: string

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