RuleTargetInput

class aws_cdk.aws_events.RuleTargetInput

Bases: object

The input to send to the event target.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Return type

None

Methods

bind(rule)

Return the input properties for this input object.

Parameters

rule (IRule) –

Return type

RuleTargetInputProperties

Static Methods

classmethod from_event_path(path)

Take the event target input from a path in the event JSON.

Parameters

path (str) –

Return type

RuleTargetInput

classmethod from_multiline_text(text)

Pass text to the event target, splitting on newlines.

This is only useful when passing to a target that does not take a single argument.

May contain strings returned by EventField.from() to substitute in parts of the matched event.

Parameters

text (str) –

Return type

RuleTargetInput

classmethod from_object(obj)

Pass a JSON object to the event target.

May contain strings returned by EventField.from() to substitute in parts of the matched event.

Parameters

obj (Any) –

Return type

RuleTargetInput

classmethod from_text(text)

Pass text to the event target.

May contain strings returned by EventField.from() to substitute in parts of the matched event.

Parameters

text (str) –

Return type

RuleTargetInput