LogConfig

class aws_cdk.aws_events.LogConfig(*, include_detail=None, level=None)

Bases: object

Interface for Logging Configuration of the Event Bus.

Parameters:
  • include_detail (Optional[IncludeDetail]) – Whether EventBridge include detailed event information in the records it generates. Default: no details

  • level (Optional[Level]) – Logging level. Default: OFF

ExampleMetadata:

infused

Example:

from aws_cdk.aws_events import EventBus, IncludeDetail, Level


bus = EventBus(self, "Bus",
    log_config=events.LogConfig(
        include_detail=IncludeDetail.FULL,
        level=Level.TRACE
    )
)

Attributes

include_detail

Whether EventBridge include detailed event information in the records it generates.

Default:

no details

level

Logging level.

Default:

OFF