Skip to content
v2.278.0

EventBusAttributes Struct ​

Interface with properties necessary to import a reusable EventBus.

Example ​

ts
// 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',
};
python
# 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

event_bus_attributes = events.EventBusAttributes(
    event_bus_arn="eventBusArn",
    event_bus_name="eventBusName",
    event_bus_policy="eventBusPolicy",

    # the properties below are optional
    event_source_name="eventSourceName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.events.*;

EventBusAttributes eventBusAttributes = EventBusAttributes.builder()
        .eventBusArn("eventBusArn")
        .eventBusName("eventBusName")
        .eventBusPolicy("eventBusPolicy")

        // the properties below are optional
        .eventSourceName("eventSourceName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Events;

var eventBusAttributes = new EventBusAttributes {
    EventBusArn = "eventBusArn",
    EventBusName = "eventBusName",
    EventBusPolicy = "eventBusPolicy",

    // the properties below are optional
    EventSourceName = "eventSourceName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

eventBusAttributes := &EventBusAttributes{
	EventBusArn: jsii.String("eventBusArn"),
	EventBusName: jsii.String("eventBusName"),
	EventBusPolicy: jsii.String("eventBusPolicy"),

	// the properties below are optional
	EventSourceName: jsii.String("eventSourceName"),
}

Properties ​

eventBusArnstringevent_bus_arnstreventBusArnStringEventBusArnstringEventBusArn*string required #
The ARN of this event bus resource.
eventBusNamestringevent_bus_namestreventBusNameStringEventBusNamestringEventBusName*string required #
The physical ID of this event bus resource.
eventBusPolicystringevent_bus_policystreventBusPolicyStringEventBusPolicystringEventBusPolicy*string required #
The JSON policy of this event bus resource.
eventSourceNameoptionalstringevent_source_nameoptionalstreventSourceNameoptionalStringEventSourceNameoptionalstringEventSourceNameoptional*string #
The partner event source to associate with this event bus resource.

Default: no partner event source