Class EventBridgePutEvents.Builder
java.lang.Object
software.amazon.awscdk.services.scheduler.targets.alpha.EventBridgePutEvents.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventBridgePutEvents>
- Enclosing class:
EventBridgePutEvents
@Stability(Experimental)
public static final class EventBridgePutEvents.Builder
extends Object
implements software.amazon.jsii.Builder<EventBridgePutEvents>
(experimental) A fluent builder for
EventBridgePutEvents
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static EventBridgePutEvents.Builder
create()
static EventBridgePutEvents.Builder
create
(ScheduleTargetBaseProps props) detail
(ScheduleTargetInput detail) (experimental) The event body.detailType
(String detailType) (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.
-
Method Details
-
create
@Stability(Experimental) public static EventBridgePutEvents.Builder create(ScheduleTargetBaseProps props) - Parameters:
props
-- Returns:
- a new instance of
EventBridgePutEvents.Builder
.
-
create
- Returns:
- a new instance of
EventBridgePutEvents.Builder
.
-
detail
(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 :)"));
- Parameters:
detail
- The event body. This parameter is required.- Returns:
this
-
detailType
(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"
- Parameters:
detailType
- Used along with the source field to help identify the fields and values expected in the detail field. This parameter is required.- Returns:
this
- See Also:
-
eventBus
(experimental) The event bus the entry will be sent to.- Parameters:
eventBus
- The event bus the entry will be sent to. This parameter is required.- Returns:
this
-
source
(experimental) The service or application that caused this event to be generated.Example value:
com.example.service
- Parameters:
source
- The service or application that caused this event to be generated. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EventBridgePutEvents>
- Returns:
- a newly built instance of
EventBridgePutEvents
.
-