@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:38.793Z") @Stability(value=Experimental) 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();
https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEventsRequestEntry.html| 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()
(experimental) The event body.
|
String |
getDetailType()
(experimental) Used along with the source field to help identify the fields and values expected in the detail field.
|
default IEventBus |
getEventBus()
(experimental) The event bus the entry will be sent to.
|
String |
getSource()
(experimental) The service or application that caused this event to be generated.
|
@Stability(value=Experimental) @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=Experimental) @NotNull String getDetailType()
For example, events by CloudTrail have detail type "AWS API Call via CloudTrail"
https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events.html@Stability(value=Experimental) @NotNull String getSource()
Example value: com.example.service
https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events.html@Stability(value=Experimental) @Nullable default IEventBus getEventBus()
Default: - event is sent to account's default event bus
@Stability(value=Experimental) static EventBridgePutEventsEntry.Builder builder()
EventBridgePutEventsEntry.Builder of EventBridgePutEventsEntryCopyright © 2022. All rights reserved.