Class EventBridgePutEvents
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.scheduler.targets.alpha.ScheduleTargetBase
software.amazon.awscdk.services.scheduler.targets.alpha.EventBridgePutEvents
- All Implemented Interfaces:
IScheduleTarget
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-10-31T19:13:08.298Z")
@Stability(Experimental)
public class EventBridgePutEvents
extends ScheduleTargetBase
implements IScheduleTarget
(experimental) 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(EventBridgePutEvents.Builder.create(eventEntry).build()) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forEventBridgePutEvents
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.scheduler.alpha.IScheduleTarget
IScheduleTarget.Jsii$Default, IScheduleTarget.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
EventBridgePutEvents
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
EventBridgePutEvents
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addTargetActionToRole
(ISchedule schedule, IRole role) protected ScheduleTargetConfig
bindBaseTargetConfig
(ISchedule _schedule) Methods inherited from class software.amazon.awscdk.services.scheduler.targets.alpha.ScheduleTargetBase
bind, getTargetArn
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.services.scheduler.alpha.IScheduleTarget
bind
Methods 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(Experimental) public EventBridgePutEvents(@NotNull EventBridgePutEventsEntry entry, @NotNull ScheduleTargetBaseProps props) - Parameters:
entry
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
addTargetActionToRole
@Stability(Experimental) protected void addTargetActionToRole(@NotNull ISchedule schedule, @NotNull IRole role) - Specified by:
addTargetActionToRole
in classScheduleTargetBase
- Parameters:
schedule
- This parameter is required.role
- This parameter is required.
-
bindBaseTargetConfig
@Stability(Experimental) @NotNull protected ScheduleTargetConfig bindBaseTargetConfig(@NotNull ISchedule _schedule) - Overrides:
bindBaseTargetConfig
in classScheduleTargetBase
- Parameters:
_schedule
- This parameter is required.
-