Interface EventBridgePutEventsEntry
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EventBridgePutEventsEntry.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:11.986Z")
@Stability(Experimental)
public interface EventBridgePutEventsEntry
extends software.amazon.jsii.JsiiSerializable
(experimental) An entry to be sent to EventBridge.
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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEventBridgePutEventsEntry
static final class
An implementation forEventBridgePutEventsEntry
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
(experimental) The event body.(experimental) Used along with the source field to help identify the fields and values expected in the detail field.(experimental) The event bus the entry will be sent to.(experimental) The service or application that caused this event to be generated.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDetail
(experimental) The event body.Can either be provided as an object or as a JSON-serialized string
Example:
ScheduleTargetInput.fromText("{\"instance-id\": \"i-1234567890abcdef0\", \"state\": \"terminated\"}"); ScheduleTargetInput.fromObject(Map.of("Message", "Hello from a friendly event :)"));
-
getDetailType
(experimental) Used along with the source field to help identify the fields and values expected in the detail field.For example, events by CloudTrail have detail type "AWS API Call via CloudTrail"
- See Also:
-
getEventBus
(experimental) The event bus the entry will be sent to. -
getSource
(experimental) The service or application that caused this event to be generated.Example value:
com.example.service
- See Also:
-
builder
- Returns:
- a
EventBridgePutEventsEntry.Builder
ofEventBridgePutEventsEntry
-