@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:50.317Z")
public interface EventBridgePutEventsEntry
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.
|
java.lang.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.
|
java.lang.String |
getSource()
The service or application that caused this event to be generated.
|
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");
java.lang.String getDetailType()
For example, events by CloudTrail have detail type "AWS API Call via CloudTrail"
java.lang.String getSource()
Example value: com.example.service
default IEventBus getEventBus()
Default: - event is sent to account's default event bus
static EventBridgePutEventsEntry.Builder builder()
EventBridgePutEventsEntry.Builder
of EventBridgePutEventsEntry