EventBusAttributes

class aws_cdk.aws_events.EventBusAttributes(*, event_bus_arn, event_bus_name, event_bus_policy, event_source_name=None)

Bases: object

Interface with properties necessary to import a reusable EventBus.

Parameters:
  • event_bus_arn (str) – The ARN of this event bus resource.

  • event_bus_name (str) – The physical ID of this event bus resource.

  • event_bus_policy (str) – The JSON policy of this event bus resource.

  • event_source_name (Optional[str]) – The partner event source to associate with this event bus resource. Default: - no partner event source

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.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"
)

Attributes

event_bus_arn

The ARN of this event bus resource.

Link:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#Arn-fn::getatt

event_bus_name

The physical ID of this event bus resource.

Link:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-name

event_bus_policy

The JSON policy of this event bus resource.

Link:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#Policy-fn::getatt

event_source_name

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

Default:
  • no partner event source

Link:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-eventsourcename