Show / Hide Table of Contents

Class EventBusReference

A reference to a EventBus resource.

Inheritance
object
EventBusReference
Implements
IEventBusReference
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.Interfaces.Events
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EventBusReference : IEventBusReference
Syntax (vb)
Public Class EventBusReference Implements IEventBusReference
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.Events;
            using Amazon.CDK.AwsApigatewayv2Integrations;

            IEventBus bus;
            HttpApi httpApi;


            // default integration (PutEvents)
            httpApi.AddRoutes(new AddRoutesOptions {
                Path = "/default",
                Methods = new [] { HttpMethod.POST },
                Integration = new HttpEventBridgeIntegration("DefaultEventBridgeIntegration", new HttpEventBridgeIntegrationProps {
                    EventBusRef = bus.EventBusRef
                })
            });

            // explicit subtype
            httpApi.AddRoutes(new AddRoutesOptions {
                Path = "/put-events",
                Methods = new [] { HttpMethod.POST },
                Integration = new HttpEventBridgeIntegration("ExplicitSubtypeIntegration", new HttpEventBridgeIntegrationProps {
                    EventBusRef = bus.EventBusRef,
                    Subtype = HttpIntegrationSubtype.EVENTBRIDGE_PUT_EVENTS
                })
            });

Synopsis

Constructors

EventBusReference()

A reference to a EventBus resource.

Properties

EventBusArn

The ARN of the EventBus resource.

EventBusName

The Name of the EventBus resource.

Constructors

EventBusReference()

A reference to a EventBus resource.

public EventBusReference()
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.Events;
            using Amazon.CDK.AwsApigatewayv2Integrations;

            IEventBus bus;
            HttpApi httpApi;


            // default integration (PutEvents)
            httpApi.AddRoutes(new AddRoutesOptions {
                Path = "/default",
                Methods = new [] { HttpMethod.POST },
                Integration = new HttpEventBridgeIntegration("DefaultEventBridgeIntegration", new HttpEventBridgeIntegrationProps {
                    EventBusRef = bus.EventBusRef
                })
            });

            // explicit subtype
            httpApi.AddRoutes(new AddRoutesOptions {
                Path = "/put-events",
                Methods = new [] { HttpMethod.POST },
                Integration = new HttpEventBridgeIntegration("ExplicitSubtypeIntegration", new HttpEventBridgeIntegrationProps {
                    EventBusRef = bus.EventBusRef,
                    Subtype = HttpIntegrationSubtype.EVENTBRIDGE_PUT_EVENTS
                })
            });

Properties

EventBusArn

The ARN of the EventBus resource.

public string EventBusArn { get; set; }
Property Value

string

Remarks

ExampleMetadata: infused

EventBusName

The Name of the EventBus resource.

public string EventBusName { get; set; }
Property Value

string

Remarks

ExampleMetadata: infused

Implements

IEventBusReference
Back to top Generated by DocFX