EventField

class aws_cdk.aws_events.EventField(*args: Any, **kwargs)

Bases: object

Represents a field in the event pattern.

Methods

resolve(_ctx)

Produce the Token’s value at resolution time.

Parameters:

_ctx (IResolveContext) –

Return type:

Any

to_json()

Convert the path to the field in the event pattern to JSON.

Return type:

str

to_string()

Return a string representation of this resolvable object.

Returns a reversible string representation.

Return type:

str

Attributes

account = '${Token[account.234]}'
creation_stack

The creation stack of this resolvable which will be appended to errors thrown during resolution.

This may return an array with a single informational element indicating how to get this property populated, if it was skipped for performance reasons.

detail_type = '${Token[detail-type.235]}'
display_hint

Human readable display hint about the event pattern.

event_id = '${Token[id.236]}'
path

the path to a field in the event pattern.

region = '${Token[region.237]}'
source = '${Token[source.238]}'
time = '${Token[time.239]}'

Static Methods

classmethod from_path(path)

Extract a custom JSON path from the event.

Parameters:

path (str) –

Return type:

str