EventBridgePutEventsEntry

class aws_cdk.aws_stepfunctions_tasks.EventBridgePutEventsEntry(*, detail, detail_type, source, event_bus=None)

Bases: object

An entry to be sent to EventBridge.

Parameters
  • detail (TaskInput) – The event body. Can either be provided as an object or as a JSON-serialized string

  • detail_type (str) – 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”

  • source (str) – The service or application that caused this event to be generated.

  • event_bus (Optional[IEventBus]) – The event bus the entry will be sent to. Default: - event is sent to account’s default event bus

See

https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEventsRequestEntry.html

Attributes

detail

The event body.

Can either be provided as an object or as a JSON-serialized string

Example:

# Example automatically generated. See https://github.com/aws/jsii/issues/826
sfn.TaskInput.from_text("{"instance-id": "i-1234567890abcdef0", "state": "terminated"}")
sfn.TaskInput.from_object(Message="Hello from Step Functions")
sfn.TaskInput.from_json_path_at("$.EventDetail")
Return type

TaskInput

detail_type

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

https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events.html

Return type

str

event_bus

The event bus the entry will be sent to.

Default
  • event is sent to account’s default event bus

Return type

Optional[IEventBus]

source

The service or application that caused this event to be generated.

See

https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events.html

Example:

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
"com.example.service"
Return type

str