Interface IEventBus
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IEventBusRef,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IEventBus.Jsii$Default
- All Known Implementing Classes:
EventBus,IEventBus.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:10.674Z")
@Stability(Stable)
public interface IEventBus
extends software.amazon.jsii.JsiiSerializable, IResource, IEventBusRef
Interface which all EventBus based classes MUST implement.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIEventBus.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionarchive(String id, BaseArchiveProps props) Create an EventBridge archive to send events to.getEnv()The environment this resource belongs to.The ARN of this event bus resource.The physical ID of this event bus resource.The JSON policy of this event bus resource.default StringThe partner event source to associate with this event bus resource.software.constructs.NodegetNode()The tree node.grantPutEventsTo(IGrantable grantee) Grants an IAM Principal to send custom events to the eventBus so that they can be matched to rules.grantPutEventsTo(IGrantable grantee, String sid) Grants an IAM Principal to send custom events to the eventBus so that they can be matched to rules.Methods inherited from interface software.amazon.awscdk.interfaces.events.IEventBusRef
getEventBusRefMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEventBusArn
The ARN of this event bus resource. -
getEventBusName
The physical ID of this event bus resource. -
getEventBusPolicy
The JSON policy of this event bus resource. -
getEventSourceName
The partner event source to associate with this event bus resource. -
archive
Create an EventBridge archive to send events to.When you create an archive, incoming events might not immediately start being sent to the archive. Allow a short period of time for changes to take effect.
- Parameters:
id- This parameter is required.props- Properties of the archive. This parameter is required.
-
grantPutEventsTo
@Stability(Stable) @NotNull Grant grantPutEventsTo(@NotNull IGrantable grantee, @Nullable String sid) Grants an IAM Principal to send custom events to the eventBus so that they can be matched to rules.- Parameters:
grantee- The principal (no-op if undefined). This parameter is required.sid- The Statement ID used if we need to add a trust policy on the event bus.
-
grantPutEventsTo
Grants an IAM Principal to send custom events to the eventBus so that they can be matched to rules.- Parameters:
grantee- The principal (no-op if undefined). This parameter is required.
-
getNode
@Stability(Stable) @NotNull software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct
-
getEnv
The environment this resource belongs to.For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.- Specified by:
getEnvin interfaceIEnvironmentAware
-