@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.508Z") @Stability(value=Stable) public interface EventBridgePutEventsEntry extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
EventBridgePutEventsEntry.Builder
A builder for
EventBridgePutEventsEntry |
static class |
EventBridgePutEventsEntry.Jsii$Proxy
An implementation for
EventBridgePutEventsEntry |
| Modifier and Type | Method and Description |
|---|---|
static EventBridgePutEventsEntry.Builder |
builder() |
TaskInput |
getDetail()
The event body.
|
String |
getDetailType()
Used along with the source field to help identify the fields and values expected in the detail field.
|
default IEventBus |
getEventBus()
The event bus the entry will be sent to.
|
String |
getSource()
The service or application that caused this event to be generated.
|
@Stability(value=Stable) @NotNull TaskInput getDetail()
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");
@Stability(value=Stable) @NotNull String getDetailType()
For example, events by CloudTrail have detail type "AWS API Call via CloudTrail"
@Stability(value=Stable) @NotNull String getSource()
Example value: com.example.service
@Stability(value=Stable) @Nullable default IEventBus getEventBus()
Default: - event is sent to account's default event bus
@Stability(value=Stable) static EventBridgePutEventsEntry.Builder builder()
EventBridgePutEventsEntry.Builder of EventBridgePutEventsEntryCopyright © 2022. All rights reserved.