EventField

class aws_cdk.aws_events.EventField(*args, **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.111]}'
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.

Return type

List[str]

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

Human readable display hint about the event pattern.

Return type

str

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

the path to a field in the event pattern.

Return type

str

region = '${Token[region.114]}'
source = '${Token[source.115]}'
time = '${Token[time.116]}'

Static Methods

classmethod from_path(path)

Extract a custom JSON path from the event.

Parameters

path (str) –

Return type

str