Skip to content

Conversation

@agrare
Copy link
Member

@agrare agrare commented Nov 5, 2024

The ItemReader looks a lot like a Task state in that it has a "Resource" URI field

https://docs.aws.amazon.com/step-functions/latest/dg/input-output-itemreader.html

Ref: https://states-language.net/#map-state

Reading Items

A Map State MAY have an "ItemReader" field, whose value MUST be a JSON object and is called the ItemReader Configuration. The ItemReader Configuration causes the interpreter to read items from the resource identified by the ItemReader Configuration’s "Resource" field.

The ItemReader Configuration MUST have a "Resource" field, whose value MUST be a URI that uniquely identifies the specific task to execute. The States language does not constrain the URI scheme nor any other part of the URI. The ItemReader Configuration MAY have a "Parameters" field, whose value MUST be a Payload Template. The ItemReader Configuration MAY have a "ReaderConfig" field whose value is a JSON object which MAY have a "MaxItems" field which MUST be a positive integer. The interpreter MAY define additional "ReaderConfig" fields.

The ItemReader Configuration causes the interpreter to read items from the task identified by the ItemReader’s "Resource" field. The interpreter will limit the number of items to the maximum number of items specified by the "ReaderConfig"’s "MaxItems" field. The "MaxItems" can be provided indirectly. A "ReaderConfig" field MAY have "MaxItemsPath" field which MUST be a Reference Path which, when resolved, MUST select a field whose value is a positive integer. A "ReaderConfig" field MUST NOT include both "MaxItems" and "MaxItemsPath".

The default result for "ItemReader" is "$", which is to say the whole effective input.

#241

@agrare agrare requested a review from Fryguy as a code owner November 5, 2024 19:17
@agrare agrare changed the title Implement Map ItemReader [WIP] Implement Map ItemReader Nov 5, 2024
@agrare agrare mentioned this pull request Nov 12, 2024
7 tasks
@Fryguy Fryguy added the wip label Jan 15, 2025
@miq-bot
Copy link
Member

miq-bot commented Apr 9, 2025

This pull request is not mergeable. Please rebase and repush.

1 similar comment
@miq-bot
Copy link
Member

miq-bot commented Apr 9, 2025

This pull request is not mergeable. Please rebase and repush.

@miq-bot
Copy link
Member

miq-bot commented Apr 9, 2025

This pull request is not mergeable. Please rebase and repush.

@miq-bot miq-bot added the stale label Jul 14, 2025
@miq-bot
Copy link
Member

miq-bot commented Jul 14, 2025

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants