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.117]}'¶
-
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.118]}'¶
-
display_hint
¶ Human readable display hint about the event pattern.
- Return type
str
-
event_id
= '${Token[id.119]}'¶
-
path
¶ the path to a field in the event pattern.
- Return type
str
-
region
= '${Token[region.120]}'¶
-
source
= '${Token[source.121]}'¶
-
time
= '${Token[time.122]}'¶
Static Methods
-
classmethod
from_path
(path)¶ Extract a custom JSON path from the event.
- Parameters
path (
str
) –- Return type
str
-