aws-cdk-lib.aws_events.EventBusAttributes

interface EventBusAttributes

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

Interface with properties necessary to import a reusable EventBus.

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';
const eventBusAttributes: events.EventBusAttributes = {
  eventBusArn: 'eventBusArn',
  eventBusName: 'eventBusName',
  eventBusPolicy: 'eventBusPolicy',

  // the properties below are optional
  eventSourceName: 'eventSourceName',
};

Properties

NameTypeDescription
eventBusArnstringThe ARN of this event bus resource.
eventBusNamestringThe physical ID of this event bus resource.
eventBusPolicystringThe JSON policy of this event bus resource.
eventSourceName?stringThe partner event source to associate with this event bus resource.

eventBusArn

Type: string

The ARN of this event bus resource.


eventBusName

Type: string

The physical ID of this event bus resource.


eventBusPolicy

Type: string

The JSON policy of this event bus resource.


eventSourceName?

Type: string (optional, default: no partner event source)

The partner event source to associate with this event bus resource.