JsonPath

class aws_cdk.aws_stepfunctions.JsonPath(*args, **kwargs)

Bases: object

Extract a field from the State Machine data or context that gets passed around between states.

See

https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-paths.html

Attributes

DISCARD = 'DISCARD'
entire_context = '${Token[TOKEN.125]}'
entire_payload = '${Token[TOKEN.126]}'
task_token = '${Token[Task.Token.127]}'

Static Methods

classmethod is_encoded_json_path(value)

Determines if the indicated string is an encoded JSON path.

Parameters

value (str) – string to be evaluated.

Return type

bool

classmethod list_at(path)

Instead of using a literal string list, get the value from a JSON path.

Parameters

path (str) –

Return type

List[str]

classmethod number_at(path)

Instead of using a literal number, get the value from a JSON path.

Parameters

path (str) –

Return type

Union[int, float]

classmethod string_at(path)

Instead of using a literal string, get the value from a JSON path.

Parameters

path (str) –

Return type

str