# EventBusAttributes

Interface with properties necessary to import a reusable EventBus.

Used as argument in: [EventBus.fromEventBusAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.EventBus.html#fromeventbusattributes)

- Source: [`aws-events/lib/event-bus.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-events/lib/event-bus.ts#L186)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `eventBusArn`: string (required) — The ARN of this event bus resource.

- `eventBusName`: string (required) — The physical ID of this event bus resource.

- `eventBusPolicy`: string (required) — The JSON policy of this event bus resource.

- `eventSourceName`: string — The partner event source to associate with this event bus resource.

  **Default:** no partner event source
