Class EventBridgePutEvents
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.scheduler.targets.ScheduleTargetBase
software.amazon.awscdk.services.scheduler.targets.EventBridgePutEvents
- All Implemented Interfaces:
IScheduleTarget,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:45.348Z")
@Stability(Stable)
public class EventBridgePutEvents
extends ScheduleTargetBase
implements IScheduleTarget
Send an event to an AWS EventBridge by AWS EventBridge Scheduler.
Example:
import software.amazon.awscdk.services.events.*;
EventBus eventBus = EventBus.Builder.create(this, "EventBus")
.eventBusName("DomainEvents")
.build();
EventBridgePutEventsEntry eventEntry = EventBridgePutEventsEntry.builder()
.eventBus(eventBus)
.source("PetService")
.detail(ScheduleTargetInput.fromObject(Map.of("Name", "Fluffy")))
.detailType("🐶")
.build();
Schedule.Builder.create(this, "Schedule")
.schedule(ScheduleExpression.rate(Duration.hours(1)))
.target(new EventBridgePutEvents(eventEntry))
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.scheduler.IScheduleTarget
IScheduleTarget.Jsii$Default, IScheduleTarget.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEventBridgePutEvents(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedEventBridgePutEvents(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddTargetActionToRole(IRole role) protected ScheduleTargetConfigbindBaseTargetConfig(ISchedule _schedule) Methods inherited from class software.amazon.awscdk.services.scheduler.targets.ScheduleTargetBase
bind, getTargetArnMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awscdk.services.scheduler.IScheduleTarget
bindMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
EventBridgePutEvents
protected EventBridgePutEvents(software.amazon.jsii.JsiiObjectRef objRef) -
EventBridgePutEvents
protected EventBridgePutEvents(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
EventBridgePutEvents
@Stability(Stable) public EventBridgePutEvents(@NotNull EventBridgePutEventsEntry entry, @Nullable ScheduleTargetBaseProps props) - Parameters:
entry- This parameter is required.props-
-
EventBridgePutEvents
- Parameters:
entry- This parameter is required.
-
-
Method Details
-
addTargetActionToRole
- Specified by:
addTargetActionToRolein classScheduleTargetBase- Parameters:
role- This parameter is required.
-
bindBaseTargetConfig
@Stability(Stable) @NotNull protected ScheduleTargetConfig bindBaseTargetConfig(@NotNull ISchedule _schedule) - Overrides:
bindBaseTargetConfigin classScheduleTargetBase- Parameters:
_schedule- This parameter is required.
-