Interface EventBridgePutEventsEntry
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EventBridgePutEventsEntry.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:24.554Z")
@Stability(Stable)
public interface EventBridgePutEventsEntry
extends software.amazon.jsii.JsiiSerializable
An entry to be sent to EventBridge.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.events.*; import software.amazon.awscdk.services.stepfunctions.*; import software.amazon.awscdk.services.stepfunctions.tasks.*; EventBus eventBus; TaskInput taskInput; EventBridgePutEventsEntry eventBridgePutEventsEntry = EventBridgePutEventsEntry.builder() .detail(taskInput) .detailType("detailType") .source("source") // the properties below are optional .eventBus(eventBus) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEventBridgePutEventsEntry
static final class
An implementation forEventBridgePutEventsEntry
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDetail
The event body.Can either be provided as an object or as a JSON-serialized string
Example:
TaskInput.fromText("{\"instance-id\": \"i-1234567890abcdef0\", \"state\": \"terminated\"}"); TaskInput.fromObject(Map.of("Message", "Hello from Step Functions")); TaskInput.fromJsonPathAt("$.EventDetail");
-
getDetailType
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:
-
getSource
The service or application that caused this event to be generated.Example value:
com.example.service
- See Also:
-
getEventBus
The event bus the entry will be sent to.Default: - event is sent to account's default event bus
-
builder
- Returns:
- a
EventBridgePutEventsEntry.Builder
ofEventBridgePutEventsEntry
-