[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-aws-aws-step-functions":3,"mdc-o8v9dj-key":32,"related-org-aws-aws-step-functions":2372,"related-repo-aws-aws-step-functions":2539},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":21,"repoUrl":22,"updatedAt":23,"license":24,"forks":25,"topics":26,"repo":27,"sourceUrl":30,"mdContent":31},"aws-step-functions","author and edit AWS Step Functions","Authors and edits AWS Step Functions state machines: writes Amazon States Language (ASL) in JSONata, and chooses and structures state types (Task, Choice, Map, Parallel, Pass, Wait, Succeed, Fail). Covers ASL syntax, JSONata data transformation and variables, Retry\u002FCatch error handling, service integrations (.sync, waitForTaskToken callbacks), Distributed Map for large-scale S3\u002FCSV processing, saga\u002Fcompensation patterns, Standard vs Express workflow choice, TestState API unit testing, and migrating state machines from JSONPath to JSONata. Use when the user is building, authoring, debugging, or migrating a Step Functions state machine or ASL definition, or orchestrating multi-step workflows with branching, retries, or human-approval callbacks, even if they don't say 'Step Functions.' Do NOT use for general Lambda function code, API Gateway, EventBridge wiring, or SAM\u002FCDK application packaging.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"aws","AWS (Amazon)","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Faws.png",[12,16,19],{"name":13,"slug":14,"type":15},"Automation","automation","tag",{"name":17,"slug":18,"type":15},"Engineering","engineering",{"name":20,"slug":8,"type":15},"AWS",1822,"https:\u002F\u002Fgithub.com\u002Faws\u002Fagent-toolkit-for-aws","2026-07-29T06:00:28.512593",null,157,[],{"repoUrl":22,"stars":21,"forks":25,"topics":28,"description":29},[],"Official, AWS-supported MCP servers, skills, and plugins to help AI agents build on AWS","https:\u002F\u002Fgithub.com\u002Faws\u002Fagent-toolkit-for-aws\u002Ftree\u002FHEAD\u002Fskills\u002Fspecialized-skills\u002Fserverless-skills\u002Faws-step-functions","---\nname: aws-step-functions\ndescription: \"Authors and edits AWS Step Functions state machines: writes Amazon States Language (ASL) in JSONata, and chooses and structures state types (Task, Choice, Map, Parallel, Pass, Wait, Succeed, Fail). Covers ASL syntax, JSONata data transformation and variables, Retry\u002FCatch error handling, service integrations (.sync, waitForTaskToken callbacks), Distributed Map for large-scale S3\u002FCSV processing, saga\u002Fcompensation patterns, Standard vs Express workflow choice, TestState API unit testing, and migrating state machines from JSONPath to JSONata. Use when the user is building, authoring, debugging, or migrating a Step Functions state machine or ASL definition, or orchestrating multi-step workflows with branching, retries, or human-approval callbacks, even if they don't say 'Step Functions.' Do NOT use for general Lambda function code, API Gateway, EventBridge wiring, or SAM\u002FCDK application packaging.\"\nversion: 1\n---\n\n# AWS Step Functions\n\n## Overview\n\nAWS Step Functions uses Amazon States Language (ASL) to define state machines as JSON. With AWS Step Functions, you can create workflows, also called state machines, to build distributed applications, automate processes, orchestrate microservices, and create data and machine learning pipelines.\n\nThis skill provides comprehensive guidance for writing state machines in ASL, covering:\n\n- ASL structure and JSONata expression syntax\n- Details on the eight available workflow states\n- The `$states` reserved variable\n- Workflow variables with `Assign`\n- Error handling\n- AWS Service integration patterns\n- Example code for data transformation and architecture\n- Validation and testing of state machines\n- How to migrate from JSONPath to JSONata\n\nThe AWS MCP server is recommended for sandboxed execution and audit logging when following this skill, but all steps use AWS CLI syntax and work without it.\n\n## When to Load Reference Files\n\nLoad the appropriate reference file based on what the user is working on:\n\n- **ASL structure**, **state types**, **Task**, **Pass**, **Choice**, **Wait**, **Succeed**, **Fail**, **Parallel**, **Map** → see `references\u002Fasl-state-types.md`\n- **Error handling**, **troubleshooting**, **Retry**, **Catch**, **fallback**, **error codes**, **States.Timeout**, **States.ALL** → see `references\u002Ferror-handling.md`\n- **Service integrations**, **Lambda invoke**, **DynamoDB**, **SNS**, **SQS**, **SDK integrations**, **Resource ARN**, **sync**, **async** → see `references\u002Fservice-integrations.md`\n- **Migrating from JSONPath to JSONata**, **migration**, **JSONPath to JSONata**, **InputPath**, **Parameters**, **ResultSelector**, **ResultPath**, **OutputPath**, **intrinsic functions**, **Iterator**, **payload template** → see `references\u002Fmigrating-from-jsonpath-to-jsonata.md`\n- **Validation**, **linting**, **testing**, **TestState**, **test state**, **mock**, **mocking**, **unit test**, **inspection level**, **DEBUG**, **TRACE**, **validate state**, **test in isolation** → see `references\u002Fvalidation-and-testing.md`\n- **Architecture patterns**, **examples**, **polling**, **saga**, **compensation**, **scatter-gather**, **semaphore**, **lock**, **human-in-the-loop**, **escalation**, **Express to Standard** → see `references\u002Farchitecture-patterns.md`\n- **Data transformation**, **JSONata expressions**, **filtering**, **aggregation**, **string operations**, **$reduce**, **$lookup**, **$toMillis**, **$partition**, **$parse**, **$hash**, **$uuid** → see `references\u002Ftransforming-data.md`\n- **State input\u002Foutput**, **$states**, **Assign**, **Output**, **Arguments**, **variable scope**, **variable limits**, **evaluation order**, **passing data between states** → see `references\u002Fprocessing-state-inputs-and-outputs.md`\n\n## Quick Reference\n\n### Standard vs Express Workflows\n\n|                                   | Standard                             | Express                                     |\n| --------------------------------- | ------------------------------------ | ------------------------------------------- |\n| **Max duration**                  | 1 year                               | 5 minutes                                   |\n| **Execution semantics**           | Exactly-once                         | At-least-once (async) \u002F At-most-once (sync) |\n| **Execution history**             | Retained 90 days, queryable via API  | CloudWatch Logs only                        |\n| **Max throughput**                | 2,000 exec\u002Fsec                       | 100,000 exec\u002Fsec                            |\n| **Pricing model**                 | Per state transition                 | Per execution count + duration              |\n| **`.sync` \u002F `.waitForTaskToken`** | Supported                            | Not supported                               |\n| **Best for**                      | Auditable, non-idempotent operations | High-volume, idempotent event processing    |\n\n**Choose Standard** for: payment processing, order fulfillment, compliance workflows, anything that must never execute twice.\n\n**Choose Express** for: IoT data ingestion, streaming transformations, mobile backends, high-throughput short-lived processing.\n\n> **When recommending Express, the single limitation you must always state — even for fire-and-forget \u002F high-throughput pipelines — is that Express does NOT support `.sync` or `.waitForTaskToken`** (no callbacks, no nested `.sync` waits, no human-approval or job-completion waits). Also note: 5-minute max duration, no queryable execution history (CloudWatch Logs only), and at-least-once (async) \u002F at-most-once (sync) execution — so non-idempotent work can run twice. If any of these matter, choose Standard (exactly-once, up to 1 year, full history).\n\n### Setting the State Machine Query Language\n\nJSONata is the preferred way to reference and transform data in ASL. It replaces the five JSONPath I\u002FO fields (`InputPath`, `Parameters`, `ResultSelector`, `ResultPath`, `OutputPath`) with just two: `Arguments` (inputs) and `Output`.\n\n**Enable at the top level** to apply to all states:\n\n```json\n{ \"QueryLanguage\": \"JSONata\", \"StartAt\": \"...\", \"States\": {...} }\n```\n\n**Or per-state** to migrate from JSONPath incrementally:\n\n```json\n{ \"Type\": \"Task\", \"QueryLanguage\": \"JSONata\", ... }\n```\n\n**JSONPath is supported** and is the default if `QueryLanguage` is omitted — existing state machines do not need to be migrated.\n\n**Field mapping (JSONPath → JSONata):**\n\n| JSONPath field | JSONata equivalent |\n| --- | --- |\n| `Parameters` (keys use `key.$`) | `Arguments` — drop the `.$` suffix and wrap each value in `{% %}` |\n| `ResultSelector` and `OutputPath` | `Output` (reference the raw result via `$states.result`) |\n| `ResultPath` | `Assign` (preferred) or `Output` |\n| `InputPath` | not needed — reference `$states.input` directly |\n\n> **A state uses one query language, not both.** Never mix JSONPath fields (`InputPath`\u002F`Parameters`\u002F`ResultSelector`\u002F`ResultPath`\u002F`OutputPath`) with JSONata fields (`Arguments`\u002F`Output`) in the same state — this is the most common migration error. See `references\u002Fmigrating-from-jsonpath-to-jsonata.md` for full details.\n\n### How Assign and Output Are Evaluated (Parallel, Not Sequential)\n\nWithin a single state, `Assign` and `Output` are evaluated **at the same time — in parallel — both reading the same data (the state input plus the task result)**. They are NOT evaluated one after the other. Because they run together, a variable you set in `Assign` is **not** visible in that same state's `Output`: there is no ordering in which `Output` could observe the just-assigned value. The assigned value becomes available only to **subsequent** states.\n\nSo if you set a variable in `Assign` and reference it in the same state's `Output`, you get the old\u002Fundefined value — not because `Output` runs \"before\" `Assign`, but because both evaluate concurrently from the same snapshot. To use the value immediately, reference it in the **next** state (variables persist across states); to shape the current state's output from the task result, use `$states.result` directly in `Output`.\n\n### Unit Testing a State with TestState\n\nTest a single state **without deploying the state machine or calling the real service** using the TestState API (`aws stepfunctions test-state`) with `--mock`. A complete answer covers all four points:\n\n- **Mock the service response exactly** — the `--mock` `result` MUST match the target AWS service's API response schema exactly (field names are case-sensitive). For a Lambda `invoke` Task that is `StatusCode` and `Payload`: `--mock '{\"result\":\"{\\\"StatusCode\\\":200,\\\"Payload\\\":{...}}\"}'`.\n- **All three inspection levels** (`--inspection-level`): `INFO` (default — `output`, `status`, `nextState`), `DEBUG` (adds data flow: `afterArguments`, `result`, `variables` — use to debug JSONata\u002Fdata flow), `TRACE` (adds raw HTTP `request`\u002F`response`, for HTTP Task).\n- **`.sync` and `.waitForTaskToken` integrations still require a mock** — for `.sync`, mock the polling API (e.g. `DescribeExecution`, not the initial call); for `.waitForTaskToken`, also pass `--context '{\"Task\":{\"Token\":\"...\"}}'`.\n- **No deployment** or real invocation is needed — the state is tested in isolation.\n\nSee `references\u002Fvalidation-and-testing.md` for per-service mock structures and error\u002Fretry\u002FMap\u002FParallel testing.\n\n## Best Practices\n\n- Set `\"QueryLanguage\": \"JSONata\"` at the top level for new state machines unless the user wants to use JSONPath\n- Keep `Output` minimal — only include what the state immediately after the current state needs\n- Use `Assign` to store variables needed in later states instead of threading it through Output\n- Use `$states.input` to reference original state input\n- `Assign` and `Output` are evaluated **in parallel from the state's entry data, NOT sequentially** — a variable set in `Assign` is therefore NOT visible in the same state's `Output` (which still sees the pre-`Assign` values); the new value takes effect only in the next state.\n- All JSONata expressions must produce a defined value — `$data.nonExistentField` throws `States.QueryEvaluationError`\n- Use `$states.context.Execution.Input` to access the original workflow input from any state\n- Save state machine definitions with `.asl.json` extension when working outside the console\n- Prefer the optimized Lambda integration (`arn:aws:states:::lambda:invoke`) over the SDK integration\n\n## Troubleshooting\n\n### Common Errors\n\n- `States.QueryEvaluationError` — JSONata expression failed. Check for type errors, undefined fields, or out-of-range values.\n- Mixing JSONPath fields with JSONata fields in the same state.\n- Using `$` or `$$` at the top level of a JSONata expression — use `$states.input` instead.\n- Forgetting `{% %}` delimiters around JSONata expressions — the string will be treated as a literal.\n- Assigning variables in `Assign` and expecting them in `Output` of the same state — new values only take effect in the next state.\n- Reference references\u002Fvalidation-and-testing.md and references\u002Ferror-handling.md for detailed troubleshooting information.\n\n## Security Considerations\n\n- **Least-privilege execution role.** Scope the state machine's IAM role to the specific resources and actions it invokes (specific Lambda\u002FDynamoDB\u002FSQS\u002FSNS ARNs). Avoid `*FullAccess` policies and `service:*` wildcards.\n- **Encryption.** Recommend encryption at rest and in transit for every data store a workflow touches: KMS-encrypted DynamoDB tables, server-side encryption (`KmsMasterKeyId`) on SQS queues and SNS topics, and TLS for HTTP Tasks.\n- **Task tokens and message bodies are sensitive.** A `.waitForTaskToken` token is a credential — treat it as a secret. Do not place PII, financial data, or secrets in SQS\u002FSNS message bodies or notifications; pass a reference ID and have recipients look up details through an authorized channel.\n- **Validate input and fail fast.** Validate required fields at the start of the workflow with a Choice (or Pass) state using `$exists()` and `$type()`, and route invalid input to a Fail state so malformed data never reaches downstream states. Protect downstream services from bursts by setting `MaxConcurrency` on Map states and throttling upstream (StartExecution rate limits or EventBridge).\n- **Cross-account access.** When using the `Credentials` field to assume a role in another account, include condition keys such as `aws:SourceArn` or `aws:SourceAccount` in the target role's trust policy to prevent unintended assumption.\n- **External secrets.** For HTTP Tasks calling third-party APIs, store API keys and tokens in AWS Secrets Manager (referenced via an EventBridge connection), never embedded in the state machine definition.\n- **Observability.** Enable CloudWatch Logs for executions (log level `ALL` or `ERROR`; required for Express workflows, which have no queryable execution history), enable CloudTrail to audit Step Functions API calls, and set CloudWatch Alarms on execution failures. Always encrypt the execution log group with a customer-managed KMS key, since state input\u002Foutput routinely flows through execution logs.\n\n## Resources\n\n- [ASL Specification](https:\u002F\u002Fstates-language.net\u002Fspec.html)\n- [JSONata documentation](https:\u002F\u002Fdocs.jsonata.org\u002Foverview.html)\n- [Step Functions Developer Guide](https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fwelcome.html)\n- [Step Functions security best practices](https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fsecurity-best-practices.html)\n",{"data":33,"body":35},{"name":4,"description":6,"version":34},1,{"type":36,"children":37},"root",[38,46,53,59,64,129,134,140,145,718,724,731,921,931,941,974,980,1030,1040,1173,1183,1272,1289,1297,1449,1514,1520,1580,1633,1639,1667,1883,1895,1901,2052,2057,2063,2144,2150,2315,2321,2366],{"type":39,"tag":40,"props":41,"children":42},"element","h1",{"id":4},[43],{"type":44,"value":45},"text","AWS Step Functions",{"type":39,"tag":47,"props":48,"children":50},"h2",{"id":49},"overview",[51],{"type":44,"value":52},"Overview",{"type":39,"tag":54,"props":55,"children":56},"p",{},[57],{"type":44,"value":58},"AWS Step Functions uses Amazon States Language (ASL) to define state machines as JSON. With AWS Step Functions, you can create workflows, also called state machines, to build distributed applications, automate processes, orchestrate microservices, and create data and machine learning pipelines.",{"type":39,"tag":54,"props":60,"children":61},{},[62],{"type":44,"value":63},"This skill provides comprehensive guidance for writing state machines in ASL, covering:",{"type":39,"tag":65,"props":66,"children":67},"ul",{},[68,74,79,93,104,109,114,119,124],{"type":39,"tag":69,"props":70,"children":71},"li",{},[72],{"type":44,"value":73},"ASL structure and JSONata expression syntax",{"type":39,"tag":69,"props":75,"children":76},{},[77],{"type":44,"value":78},"Details on the eight available workflow states",{"type":39,"tag":69,"props":80,"children":81},{},[82,84,91],{"type":44,"value":83},"The ",{"type":39,"tag":85,"props":86,"children":88},"code",{"className":87},[],[89],{"type":44,"value":90},"$states",{"type":44,"value":92}," reserved variable",{"type":39,"tag":69,"props":94,"children":95},{},[96,98],{"type":44,"value":97},"Workflow variables with ",{"type":39,"tag":85,"props":99,"children":101},{"className":100},[],[102],{"type":44,"value":103},"Assign",{"type":39,"tag":69,"props":105,"children":106},{},[107],{"type":44,"value":108},"Error handling",{"type":39,"tag":69,"props":110,"children":111},{},[112],{"type":44,"value":113},"AWS Service integration patterns",{"type":39,"tag":69,"props":115,"children":116},{},[117],{"type":44,"value":118},"Example code for data transformation and architecture",{"type":39,"tag":69,"props":120,"children":121},{},[122],{"type":44,"value":123},"Validation and testing of state machines",{"type":39,"tag":69,"props":125,"children":126},{},[127],{"type":44,"value":128},"How to migrate from JSONPath to JSONata",{"type":39,"tag":54,"props":130,"children":131},{},[132],{"type":44,"value":133},"The AWS MCP server is recommended for sandboxed execution and audit logging when following this skill, but all steps use AWS CLI syntax and work without it.",{"type":39,"tag":47,"props":135,"children":137},{"id":136},"when-to-load-reference-files",[138],{"type":44,"value":139},"When to Load Reference Files",{"type":39,"tag":54,"props":141,"children":142},{},[143],{"type":44,"value":144},"Load the appropriate reference file based on what the user is working on:",{"type":39,"tag":65,"props":146,"children":147},{},[148,220,276,339,414,501,576,657],{"type":39,"tag":69,"props":149,"children":150},{},[151,157,159,164,165,170,171,176,177,182,183,188,189,194,195,200,201,206,207,212,214],{"type":39,"tag":152,"props":153,"children":154},"strong",{},[155],{"type":44,"value":156},"ASL structure",{"type":44,"value":158},", ",{"type":39,"tag":152,"props":160,"children":161},{},[162],{"type":44,"value":163},"state types",{"type":44,"value":158},{"type":39,"tag":152,"props":166,"children":167},{},[168],{"type":44,"value":169},"Task",{"type":44,"value":158},{"type":39,"tag":152,"props":172,"children":173},{},[174],{"type":44,"value":175},"Pass",{"type":44,"value":158},{"type":39,"tag":152,"props":178,"children":179},{},[180],{"type":44,"value":181},"Choice",{"type":44,"value":158},{"type":39,"tag":152,"props":184,"children":185},{},[186],{"type":44,"value":187},"Wait",{"type":44,"value":158},{"type":39,"tag":152,"props":190,"children":191},{},[192],{"type":44,"value":193},"Succeed",{"type":44,"value":158},{"type":39,"tag":152,"props":196,"children":197},{},[198],{"type":44,"value":199},"Fail",{"type":44,"value":158},{"type":39,"tag":152,"props":202,"children":203},{},[204],{"type":44,"value":205},"Parallel",{"type":44,"value":158},{"type":39,"tag":152,"props":208,"children":209},{},[210],{"type":44,"value":211},"Map",{"type":44,"value":213}," → see ",{"type":39,"tag":85,"props":215,"children":217},{"className":216},[],[218],{"type":44,"value":219},"references\u002Fasl-state-types.md",{"type":39,"tag":69,"props":221,"children":222},{},[223,227,228,233,234,239,240,245,246,251,252,257,258,263,264,269,270],{"type":39,"tag":152,"props":224,"children":225},{},[226],{"type":44,"value":108},{"type":44,"value":158},{"type":39,"tag":152,"props":229,"children":230},{},[231],{"type":44,"value":232},"troubleshooting",{"type":44,"value":158},{"type":39,"tag":152,"props":235,"children":236},{},[237],{"type":44,"value":238},"Retry",{"type":44,"value":158},{"type":39,"tag":152,"props":241,"children":242},{},[243],{"type":44,"value":244},"Catch",{"type":44,"value":158},{"type":39,"tag":152,"props":247,"children":248},{},[249],{"type":44,"value":250},"fallback",{"type":44,"value":158},{"type":39,"tag":152,"props":253,"children":254},{},[255],{"type":44,"value":256},"error codes",{"type":44,"value":158},{"type":39,"tag":152,"props":259,"children":260},{},[261],{"type":44,"value":262},"States.Timeout",{"type":44,"value":158},{"type":39,"tag":152,"props":265,"children":266},{},[267],{"type":44,"value":268},"States.ALL",{"type":44,"value":213},{"type":39,"tag":85,"props":271,"children":273},{"className":272},[],[274],{"type":44,"value":275},"references\u002Ferror-handling.md",{"type":39,"tag":69,"props":277,"children":278},{},[279,284,285,290,291,296,297,302,303,308,309,314,315,320,321,326,327,332,333],{"type":39,"tag":152,"props":280,"children":281},{},[282],{"type":44,"value":283},"Service integrations",{"type":44,"value":158},{"type":39,"tag":152,"props":286,"children":287},{},[288],{"type":44,"value":289},"Lambda invoke",{"type":44,"value":158},{"type":39,"tag":152,"props":292,"children":293},{},[294],{"type":44,"value":295},"DynamoDB",{"type":44,"value":158},{"type":39,"tag":152,"props":298,"children":299},{},[300],{"type":44,"value":301},"SNS",{"type":44,"value":158},{"type":39,"tag":152,"props":304,"children":305},{},[306],{"type":44,"value":307},"SQS",{"type":44,"value":158},{"type":39,"tag":152,"props":310,"children":311},{},[312],{"type":44,"value":313},"SDK integrations",{"type":44,"value":158},{"type":39,"tag":152,"props":316,"children":317},{},[318],{"type":44,"value":319},"Resource ARN",{"type":44,"value":158},{"type":39,"tag":152,"props":322,"children":323},{},[324],{"type":44,"value":325},"sync",{"type":44,"value":158},{"type":39,"tag":152,"props":328,"children":329},{},[330],{"type":44,"value":331},"async",{"type":44,"value":213},{"type":39,"tag":85,"props":334,"children":336},{"className":335},[],[337],{"type":44,"value":338},"references\u002Fservice-integrations.md",{"type":39,"tag":69,"props":340,"children":341},{},[342,347,348,353,354,359,360,365,366,371,372,377,378,383,384,389,390,395,396,401,402,407,408],{"type":39,"tag":152,"props":343,"children":344},{},[345],{"type":44,"value":346},"Migrating from JSONPath to JSONata",{"type":44,"value":158},{"type":39,"tag":152,"props":349,"children":350},{},[351],{"type":44,"value":352},"migration",{"type":44,"value":158},{"type":39,"tag":152,"props":355,"children":356},{},[357],{"type":44,"value":358},"JSONPath to JSONata",{"type":44,"value":158},{"type":39,"tag":152,"props":361,"children":362},{},[363],{"type":44,"value":364},"InputPath",{"type":44,"value":158},{"type":39,"tag":152,"props":367,"children":368},{},[369],{"type":44,"value":370},"Parameters",{"type":44,"value":158},{"type":39,"tag":152,"props":373,"children":374},{},[375],{"type":44,"value":376},"ResultSelector",{"type":44,"value":158},{"type":39,"tag":152,"props":379,"children":380},{},[381],{"type":44,"value":382},"ResultPath",{"type":44,"value":158},{"type":39,"tag":152,"props":385,"children":386},{},[387],{"type":44,"value":388},"OutputPath",{"type":44,"value":158},{"type":39,"tag":152,"props":391,"children":392},{},[393],{"type":44,"value":394},"intrinsic functions",{"type":44,"value":158},{"type":39,"tag":152,"props":397,"children":398},{},[399],{"type":44,"value":400},"Iterator",{"type":44,"value":158},{"type":39,"tag":152,"props":403,"children":404},{},[405],{"type":44,"value":406},"payload template",{"type":44,"value":213},{"type":39,"tag":85,"props":409,"children":411},{"className":410},[],[412],{"type":44,"value":413},"references\u002Fmigrating-from-jsonpath-to-jsonata.md",{"type":39,"tag":69,"props":415,"children":416},{},[417,422,423,428,429,434,435,440,441,446,447,452,453,458,459,464,465,470,471,476,477,482,483,488,489,494,495],{"type":39,"tag":152,"props":418,"children":419},{},[420],{"type":44,"value":421},"Validation",{"type":44,"value":158},{"type":39,"tag":152,"props":424,"children":425},{},[426],{"type":44,"value":427},"linting",{"type":44,"value":158},{"type":39,"tag":152,"props":430,"children":431},{},[432],{"type":44,"value":433},"testing",{"type":44,"value":158},{"type":39,"tag":152,"props":436,"children":437},{},[438],{"type":44,"value":439},"TestState",{"type":44,"value":158},{"type":39,"tag":152,"props":442,"children":443},{},[444],{"type":44,"value":445},"test state",{"type":44,"value":158},{"type":39,"tag":152,"props":448,"children":449},{},[450],{"type":44,"value":451},"mock",{"type":44,"value":158},{"type":39,"tag":152,"props":454,"children":455},{},[456],{"type":44,"value":457},"mocking",{"type":44,"value":158},{"type":39,"tag":152,"props":460,"children":461},{},[462],{"type":44,"value":463},"unit test",{"type":44,"value":158},{"type":39,"tag":152,"props":466,"children":467},{},[468],{"type":44,"value":469},"inspection level",{"type":44,"value":158},{"type":39,"tag":152,"props":472,"children":473},{},[474],{"type":44,"value":475},"DEBUG",{"type":44,"value":158},{"type":39,"tag":152,"props":478,"children":479},{},[480],{"type":44,"value":481},"TRACE",{"type":44,"value":158},{"type":39,"tag":152,"props":484,"children":485},{},[486],{"type":44,"value":487},"validate state",{"type":44,"value":158},{"type":39,"tag":152,"props":490,"children":491},{},[492],{"type":44,"value":493},"test in isolation",{"type":44,"value":213},{"type":39,"tag":85,"props":496,"children":498},{"className":497},[],[499],{"type":44,"value":500},"references\u002Fvalidation-and-testing.md",{"type":39,"tag":69,"props":502,"children":503},{},[504,509,510,515,516,521,522,527,528,533,534,539,540,545,546,551,552,557,558,563,564,569,570],{"type":39,"tag":152,"props":505,"children":506},{},[507],{"type":44,"value":508},"Architecture patterns",{"type":44,"value":158},{"type":39,"tag":152,"props":511,"children":512},{},[513],{"type":44,"value":514},"examples",{"type":44,"value":158},{"type":39,"tag":152,"props":517,"children":518},{},[519],{"type":44,"value":520},"polling",{"type":44,"value":158},{"type":39,"tag":152,"props":523,"children":524},{},[525],{"type":44,"value":526},"saga",{"type":44,"value":158},{"type":39,"tag":152,"props":529,"children":530},{},[531],{"type":44,"value":532},"compensation",{"type":44,"value":158},{"type":39,"tag":152,"props":535,"children":536},{},[537],{"type":44,"value":538},"scatter-gather",{"type":44,"value":158},{"type":39,"tag":152,"props":541,"children":542},{},[543],{"type":44,"value":544},"semaphore",{"type":44,"value":158},{"type":39,"tag":152,"props":547,"children":548},{},[549],{"type":44,"value":550},"lock",{"type":44,"value":158},{"type":39,"tag":152,"props":553,"children":554},{},[555],{"type":44,"value":556},"human-in-the-loop",{"type":44,"value":158},{"type":39,"tag":152,"props":559,"children":560},{},[561],{"type":44,"value":562},"escalation",{"type":44,"value":158},{"type":39,"tag":152,"props":565,"children":566},{},[567],{"type":44,"value":568},"Express to Standard",{"type":44,"value":213},{"type":39,"tag":85,"props":571,"children":573},{"className":572},[],[574],{"type":44,"value":575},"references\u002Farchitecture-patterns.md",{"type":39,"tag":69,"props":577,"children":578},{},[579,584,585,590,591,596,597,602,603,608,609,614,615,620,621,626,627,632,633,638,639,644,645,650,651],{"type":39,"tag":152,"props":580,"children":581},{},[582],{"type":44,"value":583},"Data transformation",{"type":44,"value":158},{"type":39,"tag":152,"props":586,"children":587},{},[588],{"type":44,"value":589},"JSONata expressions",{"type":44,"value":158},{"type":39,"tag":152,"props":592,"children":593},{},[594],{"type":44,"value":595},"filtering",{"type":44,"value":158},{"type":39,"tag":152,"props":598,"children":599},{},[600],{"type":44,"value":601},"aggregation",{"type":44,"value":158},{"type":39,"tag":152,"props":604,"children":605},{},[606],{"type":44,"value":607},"string operations",{"type":44,"value":158},{"type":39,"tag":152,"props":610,"children":611},{},[612],{"type":44,"value":613},"$reduce",{"type":44,"value":158},{"type":39,"tag":152,"props":616,"children":617},{},[618],{"type":44,"value":619},"$lookup",{"type":44,"value":158},{"type":39,"tag":152,"props":622,"children":623},{},[624],{"type":44,"value":625},"$toMillis",{"type":44,"value":158},{"type":39,"tag":152,"props":628,"children":629},{},[630],{"type":44,"value":631},"$partition",{"type":44,"value":158},{"type":39,"tag":152,"props":634,"children":635},{},[636],{"type":44,"value":637},"$parse",{"type":44,"value":158},{"type":39,"tag":152,"props":640,"children":641},{},[642],{"type":44,"value":643},"$hash",{"type":44,"value":158},{"type":39,"tag":152,"props":646,"children":647},{},[648],{"type":44,"value":649},"$uuid",{"type":44,"value":213},{"type":39,"tag":85,"props":652,"children":654},{"className":653},[],[655],{"type":44,"value":656},"references\u002Ftransforming-data.md",{"type":39,"tag":69,"props":658,"children":659},{},[660,665,666,670,671,675,676,681,682,687,688,693,694,699,700,705,706,711,712],{"type":39,"tag":152,"props":661,"children":662},{},[663],{"type":44,"value":664},"State input\u002Foutput",{"type":44,"value":158},{"type":39,"tag":152,"props":667,"children":668},{},[669],{"type":44,"value":90},{"type":44,"value":158},{"type":39,"tag":152,"props":672,"children":673},{},[674],{"type":44,"value":103},{"type":44,"value":158},{"type":39,"tag":152,"props":677,"children":678},{},[679],{"type":44,"value":680},"Output",{"type":44,"value":158},{"type":39,"tag":152,"props":683,"children":684},{},[685],{"type":44,"value":686},"Arguments",{"type":44,"value":158},{"type":39,"tag":152,"props":689,"children":690},{},[691],{"type":44,"value":692},"variable scope",{"type":44,"value":158},{"type":39,"tag":152,"props":695,"children":696},{},[697],{"type":44,"value":698},"variable limits",{"type":44,"value":158},{"type":39,"tag":152,"props":701,"children":702},{},[703],{"type":44,"value":704},"evaluation order",{"type":44,"value":158},{"type":39,"tag":152,"props":707,"children":708},{},[709],{"type":44,"value":710},"passing data between states",{"type":44,"value":213},{"type":39,"tag":85,"props":713,"children":715},{"className":714},[],[716],{"type":44,"value":717},"references\u002Fprocessing-state-inputs-and-outputs.md",{"type":39,"tag":47,"props":719,"children":721},{"id":720},"quick-reference",[722],{"type":44,"value":723},"Quick Reference",{"type":39,"tag":725,"props":726,"children":728},"h3",{"id":727},"standard-vs-express-workflows",[729],{"type":44,"value":730},"Standard vs Express Workflows",{"type":39,"tag":732,"props":733,"children":734},"table",{},[735,757],{"type":39,"tag":736,"props":737,"children":738},"thead",{},[739],{"type":39,"tag":740,"props":741,"children":742},"tr",{},[743,747,752],{"type":39,"tag":744,"props":745,"children":746},"th",{},[],{"type":39,"tag":744,"props":748,"children":749},{},[750],{"type":44,"value":751},"Standard",{"type":39,"tag":744,"props":753,"children":754},{},[755],{"type":44,"value":756},"Express",{"type":39,"tag":758,"props":759,"children":760},"tbody",{},[761,783,804,825,846,867,900],{"type":39,"tag":740,"props":762,"children":763},{},[764,773,778],{"type":39,"tag":765,"props":766,"children":767},"td",{},[768],{"type":39,"tag":152,"props":769,"children":770},{},[771],{"type":44,"value":772},"Max duration",{"type":39,"tag":765,"props":774,"children":775},{},[776],{"type":44,"value":777},"1 year",{"type":39,"tag":765,"props":779,"children":780},{},[781],{"type":44,"value":782},"5 minutes",{"type":39,"tag":740,"props":784,"children":785},{},[786,794,799],{"type":39,"tag":765,"props":787,"children":788},{},[789],{"type":39,"tag":152,"props":790,"children":791},{},[792],{"type":44,"value":793},"Execution semantics",{"type":39,"tag":765,"props":795,"children":796},{},[797],{"type":44,"value":798},"Exactly-once",{"type":39,"tag":765,"props":800,"children":801},{},[802],{"type":44,"value":803},"At-least-once (async) \u002F At-most-once (sync)",{"type":39,"tag":740,"props":805,"children":806},{},[807,815,820],{"type":39,"tag":765,"props":808,"children":809},{},[810],{"type":39,"tag":152,"props":811,"children":812},{},[813],{"type":44,"value":814},"Execution history",{"type":39,"tag":765,"props":816,"children":817},{},[818],{"type":44,"value":819},"Retained 90 days, queryable via API",{"type":39,"tag":765,"props":821,"children":822},{},[823],{"type":44,"value":824},"CloudWatch Logs only",{"type":39,"tag":740,"props":826,"children":827},{},[828,836,841],{"type":39,"tag":765,"props":829,"children":830},{},[831],{"type":39,"tag":152,"props":832,"children":833},{},[834],{"type":44,"value":835},"Max throughput",{"type":39,"tag":765,"props":837,"children":838},{},[839],{"type":44,"value":840},"2,000 exec\u002Fsec",{"type":39,"tag":765,"props":842,"children":843},{},[844],{"type":44,"value":845},"100,000 exec\u002Fsec",{"type":39,"tag":740,"props":847,"children":848},{},[849,857,862],{"type":39,"tag":765,"props":850,"children":851},{},[852],{"type":39,"tag":152,"props":853,"children":854},{},[855],{"type":44,"value":856},"Pricing model",{"type":39,"tag":765,"props":858,"children":859},{},[860],{"type":44,"value":861},"Per state transition",{"type":39,"tag":765,"props":863,"children":864},{},[865],{"type":44,"value":866},"Per execution count + duration",{"type":39,"tag":740,"props":868,"children":869},{},[870,890,895],{"type":39,"tag":765,"props":871,"children":872},{},[873],{"type":39,"tag":152,"props":874,"children":875},{},[876,882,884],{"type":39,"tag":85,"props":877,"children":879},{"className":878},[],[880],{"type":44,"value":881},".sync",{"type":44,"value":883}," \u002F ",{"type":39,"tag":85,"props":885,"children":887},{"className":886},[],[888],{"type":44,"value":889},".waitForTaskToken",{"type":39,"tag":765,"props":891,"children":892},{},[893],{"type":44,"value":894},"Supported",{"type":39,"tag":765,"props":896,"children":897},{},[898],{"type":44,"value":899},"Not supported",{"type":39,"tag":740,"props":901,"children":902},{},[903,911,916],{"type":39,"tag":765,"props":904,"children":905},{},[906],{"type":39,"tag":152,"props":907,"children":908},{},[909],{"type":44,"value":910},"Best for",{"type":39,"tag":765,"props":912,"children":913},{},[914],{"type":44,"value":915},"Auditable, non-idempotent operations",{"type":39,"tag":765,"props":917,"children":918},{},[919],{"type":44,"value":920},"High-volume, idempotent event processing",{"type":39,"tag":54,"props":922,"children":923},{},[924,929],{"type":39,"tag":152,"props":925,"children":926},{},[927],{"type":44,"value":928},"Choose Standard",{"type":44,"value":930}," for: payment processing, order fulfillment, compliance workflows, anything that must never execute twice.",{"type":39,"tag":54,"props":932,"children":933},{},[934,939],{"type":39,"tag":152,"props":935,"children":936},{},[937],{"type":44,"value":938},"Choose Express",{"type":44,"value":940}," for: IoT data ingestion, streaming transformations, mobile backends, high-throughput short-lived processing.",{"type":39,"tag":942,"props":943,"children":944},"blockquote",{},[945],{"type":39,"tag":54,"props":946,"children":947},{},[948,965,967,972],{"type":39,"tag":152,"props":949,"children":950},{},[951,953,958,960],{"type":44,"value":952},"When recommending Express, the single limitation you must always state — even for fire-and-forget \u002F high-throughput pipelines — is that Express does NOT support ",{"type":39,"tag":85,"props":954,"children":956},{"className":955},[],[957],{"type":44,"value":881},{"type":44,"value":959}," or ",{"type":39,"tag":85,"props":961,"children":963},{"className":962},[],[964],{"type":44,"value":889},{"type":44,"value":966}," (no callbacks, no nested ",{"type":39,"tag":85,"props":968,"children":970},{"className":969},[],[971],{"type":44,"value":881},{"type":44,"value":973}," waits, no human-approval or job-completion waits). Also note: 5-minute max duration, no queryable execution history (CloudWatch Logs only), and at-least-once (async) \u002F at-most-once (sync) execution — so non-idempotent work can run twice. If any of these matter, choose Standard (exactly-once, up to 1 year, full history).",{"type":39,"tag":725,"props":975,"children":977},{"id":976},"setting-the-state-machine-query-language",[978],{"type":44,"value":979},"Setting the State Machine Query Language",{"type":39,"tag":54,"props":981,"children":982},{},[983,985,990,991,996,997,1002,1003,1008,1009,1014,1016,1021,1023,1028],{"type":44,"value":984},"JSONata is the preferred way to reference and transform data in ASL. It replaces the five JSONPath I\u002FO fields (",{"type":39,"tag":85,"props":986,"children":988},{"className":987},[],[989],{"type":44,"value":364},{"type":44,"value":158},{"type":39,"tag":85,"props":992,"children":994},{"className":993},[],[995],{"type":44,"value":370},{"type":44,"value":158},{"type":39,"tag":85,"props":998,"children":1000},{"className":999},[],[1001],{"type":44,"value":376},{"type":44,"value":158},{"type":39,"tag":85,"props":1004,"children":1006},{"className":1005},[],[1007],{"type":44,"value":382},{"type":44,"value":158},{"type":39,"tag":85,"props":1010,"children":1012},{"className":1011},[],[1013],{"type":44,"value":388},{"type":44,"value":1015},") with just two: ",{"type":39,"tag":85,"props":1017,"children":1019},{"className":1018},[],[1020],{"type":44,"value":686},{"type":44,"value":1022}," (inputs) and ",{"type":39,"tag":85,"props":1024,"children":1026},{"className":1025},[],[1027],{"type":44,"value":680},{"type":44,"value":1029},".",{"type":39,"tag":54,"props":1031,"children":1032},{},[1033,1038],{"type":39,"tag":152,"props":1034,"children":1035},{},[1036],{"type":44,"value":1037},"Enable at the top level",{"type":44,"value":1039}," to apply to all states:",{"type":39,"tag":1041,"props":1042,"children":1047},"pre",{"className":1043,"code":1044,"language":1045,"meta":1046,"style":1046},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{ \"QueryLanguage\": \"JSONata\", \"StartAt\": \"...\", \"States\": {...} }\n","json","",[1048],{"type":39,"tag":85,"props":1049,"children":1050},{"__ignoreMap":1046},[1051],{"type":39,"tag":1052,"props":1053,"children":1055},"span",{"class":1054,"line":34},"line",[1056,1062,1067,1073,1078,1083,1087,1093,1097,1102,1106,1111,1115,1119,1123,1128,1132,1136,1140,1145,1149,1153,1158,1163,1168],{"type":39,"tag":1052,"props":1057,"children":1059},{"style":1058},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[1060],{"type":44,"value":1061},"{",{"type":39,"tag":1052,"props":1063,"children":1064},{"style":1058},[1065],{"type":44,"value":1066}," \"",{"type":39,"tag":1052,"props":1068,"children":1070},{"style":1069},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1071],{"type":44,"value":1072},"QueryLanguage",{"type":39,"tag":1052,"props":1074,"children":1075},{"style":1058},[1076],{"type":44,"value":1077},"\"",{"type":39,"tag":1052,"props":1079,"children":1080},{"style":1058},[1081],{"type":44,"value":1082},":",{"type":39,"tag":1052,"props":1084,"children":1085},{"style":1058},[1086],{"type":44,"value":1066},{"type":39,"tag":1052,"props":1088,"children":1090},{"style":1089},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[1091],{"type":44,"value":1092},"JSONata",{"type":39,"tag":1052,"props":1094,"children":1095},{"style":1058},[1096],{"type":44,"value":1077},{"type":39,"tag":1052,"props":1098,"children":1099},{"style":1058},[1100],{"type":44,"value":1101},",",{"type":39,"tag":1052,"props":1103,"children":1104},{"style":1058},[1105],{"type":44,"value":1066},{"type":39,"tag":1052,"props":1107,"children":1108},{"style":1069},[1109],{"type":44,"value":1110},"StartAt",{"type":39,"tag":1052,"props":1112,"children":1113},{"style":1058},[1114],{"type":44,"value":1077},{"type":39,"tag":1052,"props":1116,"children":1117},{"style":1058},[1118],{"type":44,"value":1082},{"type":39,"tag":1052,"props":1120,"children":1121},{"style":1058},[1122],{"type":44,"value":1066},{"type":39,"tag":1052,"props":1124,"children":1125},{"style":1089},[1126],{"type":44,"value":1127},"...",{"type":39,"tag":1052,"props":1129,"children":1130},{"style":1058},[1131],{"type":44,"value":1077},{"type":39,"tag":1052,"props":1133,"children":1134},{"style":1058},[1135],{"type":44,"value":1101},{"type":39,"tag":1052,"props":1137,"children":1138},{"style":1058},[1139],{"type":44,"value":1066},{"type":39,"tag":1052,"props":1141,"children":1142},{"style":1069},[1143],{"type":44,"value":1144},"States",{"type":39,"tag":1052,"props":1146,"children":1147},{"style":1058},[1148],{"type":44,"value":1077},{"type":39,"tag":1052,"props":1150,"children":1151},{"style":1058},[1152],{"type":44,"value":1082},{"type":39,"tag":1052,"props":1154,"children":1155},{"style":1058},[1156],{"type":44,"value":1157}," {",{"type":39,"tag":1052,"props":1159,"children":1161},{"style":1160},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[1162],{"type":44,"value":1127},{"type":39,"tag":1052,"props":1164,"children":1165},{"style":1058},[1166],{"type":44,"value":1167},"}",{"type":39,"tag":1052,"props":1169,"children":1170},{"style":1058},[1171],{"type":44,"value":1172}," }\n",{"type":39,"tag":54,"props":1174,"children":1175},{},[1176,1181],{"type":39,"tag":152,"props":1177,"children":1178},{},[1179],{"type":44,"value":1180},"Or per-state",{"type":44,"value":1182}," to migrate from JSONPath incrementally:",{"type":39,"tag":1041,"props":1184,"children":1186},{"className":1043,"code":1185,"language":1045,"meta":1046,"style":1046},"{ \"Type\": \"Task\", \"QueryLanguage\": \"JSONata\", ... }\n",[1187],{"type":39,"tag":85,"props":1188,"children":1189},{"__ignoreMap":1046},[1190],{"type":39,"tag":1052,"props":1191,"children":1192},{"class":1054,"line":34},[1193,1197,1201,1206,1210,1214,1218,1222,1226,1230,1234,1238,1242,1246,1250,1254,1258,1262,1267],{"type":39,"tag":1052,"props":1194,"children":1195},{"style":1058},[1196],{"type":44,"value":1061},{"type":39,"tag":1052,"props":1198,"children":1199},{"style":1058},[1200],{"type":44,"value":1066},{"type":39,"tag":1052,"props":1202,"children":1203},{"style":1069},[1204],{"type":44,"value":1205},"Type",{"type":39,"tag":1052,"props":1207,"children":1208},{"style":1058},[1209],{"type":44,"value":1077},{"type":39,"tag":1052,"props":1211,"children":1212},{"style":1058},[1213],{"type":44,"value":1082},{"type":39,"tag":1052,"props":1215,"children":1216},{"style":1058},[1217],{"type":44,"value":1066},{"type":39,"tag":1052,"props":1219,"children":1220},{"style":1089},[1221],{"type":44,"value":169},{"type":39,"tag":1052,"props":1223,"children":1224},{"style":1058},[1225],{"type":44,"value":1077},{"type":39,"tag":1052,"props":1227,"children":1228},{"style":1058},[1229],{"type":44,"value":1101},{"type":39,"tag":1052,"props":1231,"children":1232},{"style":1058},[1233],{"type":44,"value":1066},{"type":39,"tag":1052,"props":1235,"children":1236},{"style":1069},[1237],{"type":44,"value":1072},{"type":39,"tag":1052,"props":1239,"children":1240},{"style":1058},[1241],{"type":44,"value":1077},{"type":39,"tag":1052,"props":1243,"children":1244},{"style":1058},[1245],{"type":44,"value":1082},{"type":39,"tag":1052,"props":1247,"children":1248},{"style":1058},[1249],{"type":44,"value":1066},{"type":39,"tag":1052,"props":1251,"children":1252},{"style":1089},[1253],{"type":44,"value":1092},{"type":39,"tag":1052,"props":1255,"children":1256},{"style":1058},[1257],{"type":44,"value":1077},{"type":39,"tag":1052,"props":1259,"children":1260},{"style":1058},[1261],{"type":44,"value":1101},{"type":39,"tag":1052,"props":1263,"children":1264},{"style":1160},[1265],{"type":44,"value":1266}," ... ",{"type":39,"tag":1052,"props":1268,"children":1269},{"style":1058},[1270],{"type":44,"value":1271},"}\n",{"type":39,"tag":54,"props":1273,"children":1274},{},[1275,1280,1282,1287],{"type":39,"tag":152,"props":1276,"children":1277},{},[1278],{"type":44,"value":1279},"JSONPath is supported",{"type":44,"value":1281}," and is the default if ",{"type":39,"tag":85,"props":1283,"children":1285},{"className":1284},[],[1286],{"type":44,"value":1072},{"type":44,"value":1288}," is omitted — existing state machines do not need to be migrated.",{"type":39,"tag":54,"props":1290,"children":1291},{},[1292],{"type":39,"tag":152,"props":1293,"children":1294},{},[1295],{"type":44,"value":1296},"Field mapping (JSONPath → JSONata):",{"type":39,"tag":732,"props":1298,"children":1299},{},[1300,1316],{"type":39,"tag":736,"props":1301,"children":1302},{},[1303],{"type":39,"tag":740,"props":1304,"children":1305},{},[1306,1311],{"type":39,"tag":744,"props":1307,"children":1308},{},[1309],{"type":44,"value":1310},"JSONPath field",{"type":39,"tag":744,"props":1312,"children":1313},{},[1314],{"type":44,"value":1315},"JSONata equivalent",{"type":39,"tag":758,"props":1317,"children":1318},{},[1319,1364,1399,1425],{"type":39,"tag":740,"props":1320,"children":1321},{},[1322,1340],{"type":39,"tag":765,"props":1323,"children":1324},{},[1325,1330,1332,1338],{"type":39,"tag":85,"props":1326,"children":1328},{"className":1327},[],[1329],{"type":44,"value":370},{"type":44,"value":1331}," (keys use ",{"type":39,"tag":85,"props":1333,"children":1335},{"className":1334},[],[1336],{"type":44,"value":1337},"key.$",{"type":44,"value":1339},")",{"type":39,"tag":765,"props":1341,"children":1342},{},[1343,1348,1350,1356,1358],{"type":39,"tag":85,"props":1344,"children":1346},{"className":1345},[],[1347],{"type":44,"value":686},{"type":44,"value":1349}," — drop the ",{"type":39,"tag":85,"props":1351,"children":1353},{"className":1352},[],[1354],{"type":44,"value":1355},".$",{"type":44,"value":1357}," suffix and wrap each value in ",{"type":39,"tag":85,"props":1359,"children":1361},{"className":1360},[],[1362],{"type":44,"value":1363},"{% %}",{"type":39,"tag":740,"props":1365,"children":1366},{},[1367,1382],{"type":39,"tag":765,"props":1368,"children":1369},{},[1370,1375,1377],{"type":39,"tag":85,"props":1371,"children":1373},{"className":1372},[],[1374],{"type":44,"value":376},{"type":44,"value":1376}," and ",{"type":39,"tag":85,"props":1378,"children":1380},{"className":1379},[],[1381],{"type":44,"value":388},{"type":39,"tag":765,"props":1383,"children":1384},{},[1385,1390,1392,1398],{"type":39,"tag":85,"props":1386,"children":1388},{"className":1387},[],[1389],{"type":44,"value":680},{"type":44,"value":1391}," (reference the raw result via ",{"type":39,"tag":85,"props":1393,"children":1395},{"className":1394},[],[1396],{"type":44,"value":1397},"$states.result",{"type":44,"value":1339},{"type":39,"tag":740,"props":1400,"children":1401},{},[1402,1410],{"type":39,"tag":765,"props":1403,"children":1404},{},[1405],{"type":39,"tag":85,"props":1406,"children":1408},{"className":1407},[],[1409],{"type":44,"value":382},{"type":39,"tag":765,"props":1411,"children":1412},{},[1413,1418,1420],{"type":39,"tag":85,"props":1414,"children":1416},{"className":1415},[],[1417],{"type":44,"value":103},{"type":44,"value":1419}," (preferred) or ",{"type":39,"tag":85,"props":1421,"children":1423},{"className":1422},[],[1424],{"type":44,"value":680},{"type":39,"tag":740,"props":1426,"children":1427},{},[1428,1436],{"type":39,"tag":765,"props":1429,"children":1430},{},[1431],{"type":39,"tag":85,"props":1432,"children":1434},{"className":1433},[],[1435],{"type":44,"value":364},{"type":39,"tag":765,"props":1437,"children":1438},{},[1439,1441,1447],{"type":44,"value":1440},"not needed — reference ",{"type":39,"tag":85,"props":1442,"children":1444},{"className":1443},[],[1445],{"type":44,"value":1446},"$states.input",{"type":44,"value":1448}," directly",{"type":39,"tag":942,"props":1450,"children":1451},{},[1452],{"type":39,"tag":54,"props":1453,"children":1454},{},[1455,1460,1462,1467,1469,1474,1475,1480,1481,1486,1487,1492,1494,1499,1500,1505,1507,1512],{"type":39,"tag":152,"props":1456,"children":1457},{},[1458],{"type":44,"value":1459},"A state uses one query language, not both.",{"type":44,"value":1461}," Never mix JSONPath fields (",{"type":39,"tag":85,"props":1463,"children":1465},{"className":1464},[],[1466],{"type":44,"value":364},{"type":44,"value":1468},"\u002F",{"type":39,"tag":85,"props":1470,"children":1472},{"className":1471},[],[1473],{"type":44,"value":370},{"type":44,"value":1468},{"type":39,"tag":85,"props":1476,"children":1478},{"className":1477},[],[1479],{"type":44,"value":376},{"type":44,"value":1468},{"type":39,"tag":85,"props":1482,"children":1484},{"className":1483},[],[1485],{"type":44,"value":382},{"type":44,"value":1468},{"type":39,"tag":85,"props":1488,"children":1490},{"className":1489},[],[1491],{"type":44,"value":388},{"type":44,"value":1493},") with JSONata fields (",{"type":39,"tag":85,"props":1495,"children":1497},{"className":1496},[],[1498],{"type":44,"value":686},{"type":44,"value":1468},{"type":39,"tag":85,"props":1501,"children":1503},{"className":1502},[],[1504],{"type":44,"value":680},{"type":44,"value":1506},") in the same state — this is the most common migration error. See ",{"type":39,"tag":85,"props":1508,"children":1510},{"className":1509},[],[1511],{"type":44,"value":413},{"type":44,"value":1513}," for full details.",{"type":39,"tag":725,"props":1515,"children":1517},{"id":1516},"how-assign-and-output-are-evaluated-parallel-not-sequential",[1518],{"type":44,"value":1519},"How Assign and Output Are Evaluated (Parallel, Not Sequential)",{"type":39,"tag":54,"props":1521,"children":1522},{},[1523,1525,1530,1531,1536,1538,1543,1545,1550,1552,1557,1559,1564,1566,1571,1573,1578],{"type":44,"value":1524},"Within a single state, ",{"type":39,"tag":85,"props":1526,"children":1528},{"className":1527},[],[1529],{"type":44,"value":103},{"type":44,"value":1376},{"type":39,"tag":85,"props":1532,"children":1534},{"className":1533},[],[1535],{"type":44,"value":680},{"type":44,"value":1537}," are evaluated ",{"type":39,"tag":152,"props":1539,"children":1540},{},[1541],{"type":44,"value":1542},"at the same time — in parallel — both reading the same data (the state input plus the task result)",{"type":44,"value":1544},". They are NOT evaluated one after the other. Because they run together, a variable you set in ",{"type":39,"tag":85,"props":1546,"children":1548},{"className":1547},[],[1549],{"type":44,"value":103},{"type":44,"value":1551}," is ",{"type":39,"tag":152,"props":1553,"children":1554},{},[1555],{"type":44,"value":1556},"not",{"type":44,"value":1558}," visible in that same state's ",{"type":39,"tag":85,"props":1560,"children":1562},{"className":1561},[],[1563],{"type":44,"value":680},{"type":44,"value":1565},": there is no ordering in which ",{"type":39,"tag":85,"props":1567,"children":1569},{"className":1568},[],[1570],{"type":44,"value":680},{"type":44,"value":1572}," could observe the just-assigned value. The assigned value becomes available only to ",{"type":39,"tag":152,"props":1574,"children":1575},{},[1576],{"type":44,"value":1577},"subsequent",{"type":44,"value":1579}," states.",{"type":39,"tag":54,"props":1581,"children":1582},{},[1583,1585,1590,1592,1597,1599,1604,1606,1611,1613,1618,1620,1625,1627,1632],{"type":44,"value":1584},"So if you set a variable in ",{"type":39,"tag":85,"props":1586,"children":1588},{"className":1587},[],[1589],{"type":44,"value":103},{"type":44,"value":1591}," and reference it in the same state's ",{"type":39,"tag":85,"props":1593,"children":1595},{"className":1594},[],[1596],{"type":44,"value":680},{"type":44,"value":1598},", you get the old\u002Fundefined value — not because ",{"type":39,"tag":85,"props":1600,"children":1602},{"className":1601},[],[1603],{"type":44,"value":680},{"type":44,"value":1605}," runs \"before\" ",{"type":39,"tag":85,"props":1607,"children":1609},{"className":1608},[],[1610],{"type":44,"value":103},{"type":44,"value":1612},", but because both evaluate concurrently from the same snapshot. To use the value immediately, reference it in the ",{"type":39,"tag":152,"props":1614,"children":1615},{},[1616],{"type":44,"value":1617},"next",{"type":44,"value":1619}," state (variables persist across states); to shape the current state's output from the task result, use ",{"type":39,"tag":85,"props":1621,"children":1623},{"className":1622},[],[1624],{"type":44,"value":1397},{"type":44,"value":1626}," directly in ",{"type":39,"tag":85,"props":1628,"children":1630},{"className":1629},[],[1631],{"type":44,"value":680},{"type":44,"value":1029},{"type":39,"tag":725,"props":1634,"children":1636},{"id":1635},"unit-testing-a-state-with-teststate",[1637],{"type":44,"value":1638},"Unit Testing a State with TestState",{"type":39,"tag":54,"props":1640,"children":1641},{},[1642,1644,1649,1651,1657,1659,1665],{"type":44,"value":1643},"Test a single state ",{"type":39,"tag":152,"props":1645,"children":1646},{},[1647],{"type":44,"value":1648},"without deploying the state machine or calling the real service",{"type":44,"value":1650}," using the TestState API (",{"type":39,"tag":85,"props":1652,"children":1654},{"className":1653},[],[1655],{"type":44,"value":1656},"aws stepfunctions test-state",{"type":44,"value":1658},") with ",{"type":39,"tag":85,"props":1660,"children":1662},{"className":1661},[],[1663],{"type":44,"value":1664},"--mock",{"type":44,"value":1666},". A complete answer covers all four points:",{"type":39,"tag":65,"props":1668,"children":1669},{},[1670,1725,1823,1873],{"type":39,"tag":69,"props":1671,"children":1672},{},[1673,1678,1680,1685,1687,1693,1695,1701,1703,1709,1710,1716,1718,1724],{"type":39,"tag":152,"props":1674,"children":1675},{},[1676],{"type":44,"value":1677},"Mock the service response exactly",{"type":44,"value":1679}," — the ",{"type":39,"tag":85,"props":1681,"children":1683},{"className":1682},[],[1684],{"type":44,"value":1664},{"type":44,"value":1686}," ",{"type":39,"tag":85,"props":1688,"children":1690},{"className":1689},[],[1691],{"type":44,"value":1692},"result",{"type":44,"value":1694}," MUST match the target AWS service's API response schema exactly (field names are case-sensitive). For a Lambda ",{"type":39,"tag":85,"props":1696,"children":1698},{"className":1697},[],[1699],{"type":44,"value":1700},"invoke",{"type":44,"value":1702}," Task that is ",{"type":39,"tag":85,"props":1704,"children":1706},{"className":1705},[],[1707],{"type":44,"value":1708},"StatusCode",{"type":44,"value":1376},{"type":39,"tag":85,"props":1711,"children":1713},{"className":1712},[],[1714],{"type":44,"value":1715},"Payload",{"type":44,"value":1717},": ",{"type":39,"tag":85,"props":1719,"children":1721},{"className":1720},[],[1722],{"type":44,"value":1723},"--mock '{\"result\":\"{\\\"StatusCode\\\":200,\\\"Payload\\\":{...}}\"}'",{"type":44,"value":1029},{"type":39,"tag":69,"props":1726,"children":1727},{},[1728,1733,1735,1741,1743,1749,1751,1757,1758,1764,1765,1771,1773,1778,1780,1786,1787,1792,1793,1799,1801,1806,1808,1814,1815,1821],{"type":39,"tag":152,"props":1729,"children":1730},{},[1731],{"type":44,"value":1732},"All three inspection levels",{"type":44,"value":1734}," (",{"type":39,"tag":85,"props":1736,"children":1738},{"className":1737},[],[1739],{"type":44,"value":1740},"--inspection-level",{"type":44,"value":1742},"): ",{"type":39,"tag":85,"props":1744,"children":1746},{"className":1745},[],[1747],{"type":44,"value":1748},"INFO",{"type":44,"value":1750}," (default — ",{"type":39,"tag":85,"props":1752,"children":1754},{"className":1753},[],[1755],{"type":44,"value":1756},"output",{"type":44,"value":158},{"type":39,"tag":85,"props":1759,"children":1761},{"className":1760},[],[1762],{"type":44,"value":1763},"status",{"type":44,"value":158},{"type":39,"tag":85,"props":1766,"children":1768},{"className":1767},[],[1769],{"type":44,"value":1770},"nextState",{"type":44,"value":1772},"), ",{"type":39,"tag":85,"props":1774,"children":1776},{"className":1775},[],[1777],{"type":44,"value":475},{"type":44,"value":1779}," (adds data flow: ",{"type":39,"tag":85,"props":1781,"children":1783},{"className":1782},[],[1784],{"type":44,"value":1785},"afterArguments",{"type":44,"value":158},{"type":39,"tag":85,"props":1788,"children":1790},{"className":1789},[],[1791],{"type":44,"value":1692},{"type":44,"value":158},{"type":39,"tag":85,"props":1794,"children":1796},{"className":1795},[],[1797],{"type":44,"value":1798},"variables",{"type":44,"value":1800}," — use to debug JSONata\u002Fdata flow), ",{"type":39,"tag":85,"props":1802,"children":1804},{"className":1803},[],[1805],{"type":44,"value":481},{"type":44,"value":1807}," (adds raw HTTP ",{"type":39,"tag":85,"props":1809,"children":1811},{"className":1810},[],[1812],{"type":44,"value":1813},"request",{"type":44,"value":1468},{"type":39,"tag":85,"props":1816,"children":1818},{"className":1817},[],[1819],{"type":44,"value":1820},"response",{"type":44,"value":1822},", for HTTP Task).",{"type":39,"tag":69,"props":1824,"children":1825},{},[1826,1842,1844,1849,1851,1857,1859,1864,1866,1872],{"type":39,"tag":152,"props":1827,"children":1828},{},[1829,1834,1835,1840],{"type":39,"tag":85,"props":1830,"children":1832},{"className":1831},[],[1833],{"type":44,"value":881},{"type":44,"value":1376},{"type":39,"tag":85,"props":1836,"children":1838},{"className":1837},[],[1839],{"type":44,"value":889},{"type":44,"value":1841}," integrations still require a mock",{"type":44,"value":1843}," — for ",{"type":39,"tag":85,"props":1845,"children":1847},{"className":1846},[],[1848],{"type":44,"value":881},{"type":44,"value":1850},", mock the polling API (e.g. ",{"type":39,"tag":85,"props":1852,"children":1854},{"className":1853},[],[1855],{"type":44,"value":1856},"DescribeExecution",{"type":44,"value":1858},", not the initial call); for ",{"type":39,"tag":85,"props":1860,"children":1862},{"className":1861},[],[1863],{"type":44,"value":889},{"type":44,"value":1865},", also pass ",{"type":39,"tag":85,"props":1867,"children":1869},{"className":1868},[],[1870],{"type":44,"value":1871},"--context '{\"Task\":{\"Token\":\"...\"}}'",{"type":44,"value":1029},{"type":39,"tag":69,"props":1874,"children":1875},{},[1876,1881],{"type":39,"tag":152,"props":1877,"children":1878},{},[1879],{"type":44,"value":1880},"No deployment",{"type":44,"value":1882}," or real invocation is needed — the state is tested in isolation.",{"type":39,"tag":54,"props":1884,"children":1885},{},[1886,1888,1893],{"type":44,"value":1887},"See ",{"type":39,"tag":85,"props":1889,"children":1891},{"className":1890},[],[1892],{"type":44,"value":500},{"type":44,"value":1894}," for per-service mock structures and error\u002Fretry\u002FMap\u002FParallel testing.",{"type":39,"tag":47,"props":1896,"children":1898},{"id":1897},"best-practices",[1899],{"type":44,"value":1900},"Best Practices",{"type":39,"tag":65,"props":1902,"children":1903},{},[1904,1917,1929,1941,1952,1995,2014,2026,2039],{"type":39,"tag":69,"props":1905,"children":1906},{},[1907,1909,1915],{"type":44,"value":1908},"Set ",{"type":39,"tag":85,"props":1910,"children":1912},{"className":1911},[],[1913],{"type":44,"value":1914},"\"QueryLanguage\": \"JSONata\"",{"type":44,"value":1916}," at the top level for new state machines unless the user wants to use JSONPath",{"type":39,"tag":69,"props":1918,"children":1919},{},[1920,1922,1927],{"type":44,"value":1921},"Keep ",{"type":39,"tag":85,"props":1923,"children":1925},{"className":1924},[],[1926],{"type":44,"value":680},{"type":44,"value":1928}," minimal — only include what the state immediately after the current state needs",{"type":39,"tag":69,"props":1930,"children":1931},{},[1932,1934,1939],{"type":44,"value":1933},"Use ",{"type":39,"tag":85,"props":1935,"children":1937},{"className":1936},[],[1938],{"type":44,"value":103},{"type":44,"value":1940}," to store variables needed in later states instead of threading it through Output",{"type":39,"tag":69,"props":1942,"children":1943},{},[1944,1945,1950],{"type":44,"value":1933},{"type":39,"tag":85,"props":1946,"children":1948},{"className":1947},[],[1949],{"type":44,"value":1446},{"type":44,"value":1951}," to reference original state input",{"type":39,"tag":69,"props":1953,"children":1954},{},[1955,1960,1961,1966,1967,1972,1974,1979,1981,1986,1988,1993],{"type":39,"tag":85,"props":1956,"children":1958},{"className":1957},[],[1959],{"type":44,"value":103},{"type":44,"value":1376},{"type":39,"tag":85,"props":1962,"children":1964},{"className":1963},[],[1965],{"type":44,"value":680},{"type":44,"value":1537},{"type":39,"tag":152,"props":1968,"children":1969},{},[1970],{"type":44,"value":1971},"in parallel from the state's entry data, NOT sequentially",{"type":44,"value":1973}," — a variable set in ",{"type":39,"tag":85,"props":1975,"children":1977},{"className":1976},[],[1978],{"type":44,"value":103},{"type":44,"value":1980}," is therefore NOT visible in the same state's ",{"type":39,"tag":85,"props":1982,"children":1984},{"className":1983},[],[1985],{"type":44,"value":680},{"type":44,"value":1987}," (which still sees the pre-",{"type":39,"tag":85,"props":1989,"children":1991},{"className":1990},[],[1992],{"type":44,"value":103},{"type":44,"value":1994}," values); the new value takes effect only in the next state.",{"type":39,"tag":69,"props":1996,"children":1997},{},[1998,2000,2006,2008],{"type":44,"value":1999},"All JSONata expressions must produce a defined value — ",{"type":39,"tag":85,"props":2001,"children":2003},{"className":2002},[],[2004],{"type":44,"value":2005},"$data.nonExistentField",{"type":44,"value":2007}," throws ",{"type":39,"tag":85,"props":2009,"children":2011},{"className":2010},[],[2012],{"type":44,"value":2013},"States.QueryEvaluationError",{"type":39,"tag":69,"props":2015,"children":2016},{},[2017,2018,2024],{"type":44,"value":1933},{"type":39,"tag":85,"props":2019,"children":2021},{"className":2020},[],[2022],{"type":44,"value":2023},"$states.context.Execution.Input",{"type":44,"value":2025}," to access the original workflow input from any state",{"type":39,"tag":69,"props":2027,"children":2028},{},[2029,2031,2037],{"type":44,"value":2030},"Save state machine definitions with ",{"type":39,"tag":85,"props":2032,"children":2034},{"className":2033},[],[2035],{"type":44,"value":2036},".asl.json",{"type":44,"value":2038}," extension when working outside the console",{"type":39,"tag":69,"props":2040,"children":2041},{},[2042,2044,2050],{"type":44,"value":2043},"Prefer the optimized Lambda integration (",{"type":39,"tag":85,"props":2045,"children":2047},{"className":2046},[],[2048],{"type":44,"value":2049},"arn:aws:states:::lambda:invoke",{"type":44,"value":2051},") over the SDK integration",{"type":39,"tag":47,"props":2053,"children":2054},{"id":232},[2055],{"type":44,"value":2056},"Troubleshooting",{"type":39,"tag":725,"props":2058,"children":2060},{"id":2059},"common-errors",[2061],{"type":44,"value":2062},"Common Errors",{"type":39,"tag":65,"props":2064,"children":2065},{},[2066,2076,2081,2108,2120,2139],{"type":39,"tag":69,"props":2067,"children":2068},{},[2069,2074],{"type":39,"tag":85,"props":2070,"children":2072},{"className":2071},[],[2073],{"type":44,"value":2013},{"type":44,"value":2075}," — JSONata expression failed. Check for type errors, undefined fields, or out-of-range values.",{"type":39,"tag":69,"props":2077,"children":2078},{},[2079],{"type":44,"value":2080},"Mixing JSONPath fields with JSONata fields in the same state.",{"type":39,"tag":69,"props":2082,"children":2083},{},[2084,2086,2092,2093,2099,2101,2106],{"type":44,"value":2085},"Using ",{"type":39,"tag":85,"props":2087,"children":2089},{"className":2088},[],[2090],{"type":44,"value":2091},"$",{"type":44,"value":959},{"type":39,"tag":85,"props":2094,"children":2096},{"className":2095},[],[2097],{"type":44,"value":2098},"$$",{"type":44,"value":2100}," at the top level of a JSONata expression — use ",{"type":39,"tag":85,"props":2102,"children":2104},{"className":2103},[],[2105],{"type":44,"value":1446},{"type":44,"value":2107}," instead.",{"type":39,"tag":69,"props":2109,"children":2110},{},[2111,2113,2118],{"type":44,"value":2112},"Forgetting ",{"type":39,"tag":85,"props":2114,"children":2116},{"className":2115},[],[2117],{"type":44,"value":1363},{"type":44,"value":2119}," delimiters around JSONata expressions — the string will be treated as a literal.",{"type":39,"tag":69,"props":2121,"children":2122},{},[2123,2125,2130,2132,2137],{"type":44,"value":2124},"Assigning variables in ",{"type":39,"tag":85,"props":2126,"children":2128},{"className":2127},[],[2129],{"type":44,"value":103},{"type":44,"value":2131}," and expecting them in ",{"type":39,"tag":85,"props":2133,"children":2135},{"className":2134},[],[2136],{"type":44,"value":680},{"type":44,"value":2138}," of the same state — new values only take effect in the next state.",{"type":39,"tag":69,"props":2140,"children":2141},{},[2142],{"type":44,"value":2143},"Reference references\u002Fvalidation-and-testing.md and references\u002Ferror-handling.md for detailed troubleshooting information.",{"type":39,"tag":47,"props":2145,"children":2147},{"id":2146},"security-considerations",[2148],{"type":44,"value":2149},"Security Considerations",{"type":39,"tag":65,"props":2151,"children":2152},{},[2153,2179,2197,2214,2247,2280,2290],{"type":39,"tag":69,"props":2154,"children":2155},{},[2156,2161,2163,2169,2171,2177],{"type":39,"tag":152,"props":2157,"children":2158},{},[2159],{"type":44,"value":2160},"Least-privilege execution role.",{"type":44,"value":2162}," Scope the state machine's IAM role to the specific resources and actions it invokes (specific Lambda\u002FDynamoDB\u002FSQS\u002FSNS ARNs). Avoid ",{"type":39,"tag":85,"props":2164,"children":2166},{"className":2165},[],[2167],{"type":44,"value":2168},"*FullAccess",{"type":44,"value":2170}," policies and ",{"type":39,"tag":85,"props":2172,"children":2174},{"className":2173},[],[2175],{"type":44,"value":2176},"service:*",{"type":44,"value":2178}," wildcards.",{"type":39,"tag":69,"props":2180,"children":2181},{},[2182,2187,2189,2195],{"type":39,"tag":152,"props":2183,"children":2184},{},[2185],{"type":44,"value":2186},"Encryption.",{"type":44,"value":2188}," Recommend encryption at rest and in transit for every data store a workflow touches: KMS-encrypted DynamoDB tables, server-side encryption (",{"type":39,"tag":85,"props":2190,"children":2192},{"className":2191},[],[2193],{"type":44,"value":2194},"KmsMasterKeyId",{"type":44,"value":2196},") on SQS queues and SNS topics, and TLS for HTTP Tasks.",{"type":39,"tag":69,"props":2198,"children":2199},{},[2200,2205,2207,2212],{"type":39,"tag":152,"props":2201,"children":2202},{},[2203],{"type":44,"value":2204},"Task tokens and message bodies are sensitive.",{"type":44,"value":2206}," A ",{"type":39,"tag":85,"props":2208,"children":2210},{"className":2209},[],[2211],{"type":44,"value":889},{"type":44,"value":2213}," token is a credential — treat it as a secret. Do not place PII, financial data, or secrets in SQS\u002FSNS message bodies or notifications; pass a reference ID and have recipients look up details through an authorized channel.",{"type":39,"tag":69,"props":2215,"children":2216},{},[2217,2222,2224,2230,2231,2237,2239,2245],{"type":39,"tag":152,"props":2218,"children":2219},{},[2220],{"type":44,"value":2221},"Validate input and fail fast.",{"type":44,"value":2223}," Validate required fields at the start of the workflow with a Choice (or Pass) state using ",{"type":39,"tag":85,"props":2225,"children":2227},{"className":2226},[],[2228],{"type":44,"value":2229},"$exists()",{"type":44,"value":1376},{"type":39,"tag":85,"props":2232,"children":2234},{"className":2233},[],[2235],{"type":44,"value":2236},"$type()",{"type":44,"value":2238},", and route invalid input to a Fail state so malformed data never reaches downstream states. Protect downstream services from bursts by setting ",{"type":39,"tag":85,"props":2240,"children":2242},{"className":2241},[],[2243],{"type":44,"value":2244},"MaxConcurrency",{"type":44,"value":2246}," on Map states and throttling upstream (StartExecution rate limits or EventBridge).",{"type":39,"tag":69,"props":2248,"children":2249},{},[2250,2255,2257,2263,2265,2271,2272,2278],{"type":39,"tag":152,"props":2251,"children":2252},{},[2253],{"type":44,"value":2254},"Cross-account access.",{"type":44,"value":2256}," When using the ",{"type":39,"tag":85,"props":2258,"children":2260},{"className":2259},[],[2261],{"type":44,"value":2262},"Credentials",{"type":44,"value":2264}," field to assume a role in another account, include condition keys such as ",{"type":39,"tag":85,"props":2266,"children":2268},{"className":2267},[],[2269],{"type":44,"value":2270},"aws:SourceArn",{"type":44,"value":959},{"type":39,"tag":85,"props":2273,"children":2275},{"className":2274},[],[2276],{"type":44,"value":2277},"aws:SourceAccount",{"type":44,"value":2279}," in the target role's trust policy to prevent unintended assumption.",{"type":39,"tag":69,"props":2281,"children":2282},{},[2283,2288],{"type":39,"tag":152,"props":2284,"children":2285},{},[2286],{"type":44,"value":2287},"External secrets.",{"type":44,"value":2289}," For HTTP Tasks calling third-party APIs, store API keys and tokens in AWS Secrets Manager (referenced via an EventBridge connection), never embedded in the state machine definition.",{"type":39,"tag":69,"props":2291,"children":2292},{},[2293,2298,2300,2306,2307,2313],{"type":39,"tag":152,"props":2294,"children":2295},{},[2296],{"type":44,"value":2297},"Observability.",{"type":44,"value":2299}," Enable CloudWatch Logs for executions (log level ",{"type":39,"tag":85,"props":2301,"children":2303},{"className":2302},[],[2304],{"type":44,"value":2305},"ALL",{"type":44,"value":959},{"type":39,"tag":85,"props":2308,"children":2310},{"className":2309},[],[2311],{"type":44,"value":2312},"ERROR",{"type":44,"value":2314},"; required for Express workflows, which have no queryable execution history), enable CloudTrail to audit Step Functions API calls, and set CloudWatch Alarms on execution failures. Always encrypt the execution log group with a customer-managed KMS key, since state input\u002Foutput routinely flows through execution logs.",{"type":39,"tag":47,"props":2316,"children":2318},{"id":2317},"resources",[2319],{"type":44,"value":2320},"Resources",{"type":39,"tag":65,"props":2322,"children":2323},{},[2324,2336,2346,2356],{"type":39,"tag":69,"props":2325,"children":2326},{},[2327],{"type":39,"tag":2328,"props":2329,"children":2333},"a",{"href":2330,"rel":2331},"https:\u002F\u002Fstates-language.net\u002Fspec.html",[2332],"nofollow",[2334],{"type":44,"value":2335},"ASL Specification",{"type":39,"tag":69,"props":2337,"children":2338},{},[2339],{"type":39,"tag":2328,"props":2340,"children":2343},{"href":2341,"rel":2342},"https:\u002F\u002Fdocs.jsonata.org\u002Foverview.html",[2332],[2344],{"type":44,"value":2345},"JSONata documentation",{"type":39,"tag":69,"props":2347,"children":2348},{},[2349],{"type":39,"tag":2328,"props":2350,"children":2353},{"href":2351,"rel":2352},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fwelcome.html",[2332],[2354],{"type":44,"value":2355},"Step Functions Developer Guide",{"type":39,"tag":69,"props":2357,"children":2358},{},[2359],{"type":39,"tag":2328,"props":2360,"children":2363},{"href":2361,"rel":2362},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fsecurity-best-practices.html",[2332],[2364],{"type":44,"value":2365},"Step Functions security best practices",{"type":39,"tag":2367,"props":2368,"children":2369},"style",{},[2370],{"type":44,"value":2371},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":2373,"total":2538},[2374,2387,2402,2417,2432,2442,2455,2471,2488,2501,2513,2528],{"slug":2375,"name":2375,"fn":2376,"description":2377,"org":2378,"tags":2379,"stars":21,"repoUrl":22,"updatedAt":2386},"agents-build","add capabilities to existing agent projects","Use when adding capabilities to an existing agent project — memory, app integration, VPC, multi-agent, migration, model changes, browser, code interpreter, or resource removal. Triggers on: \"add memory\", \"remember across sessions\", \"call agent from app\", \"invoke agent from code\", \"auth to call agent\", \"streaming responses\", \"VPC\", \"VPC connectivity\", \"VPC error\", \"can't reach from VPC\", \"multi-agent\", \"A2A\", \"A2A auth\", \"orchestrator not delegating\", \"specialist not called\", \"migrate Bedrock Agent\", \"after import\", \"migration issue\", \"framework for migration\", \"change model\", \"browser tool\", \"code interpreter\", \"delete agent\", \"tear down\", \"agentcore remove\", \"cross-account memory\", \"resource-based policy on memory\", \"pay for x402 content\", \"402 Payment Required\", \"microtransactions\", \"paid API or tool\". Not for connecting to external APIs via Gateway — use agents-connect. Not for scaffolding a new project — use agents-get-started. Not for CLI\u002Fdev server errors — use agents-debug. Strands vs LangGraph in a migration context routes here.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2380,2383,2384,2385],{"name":2381,"slug":2382,"type":15},"Agents","agents",{"name":13,"slug":14,"type":15},{"name":20,"slug":8,"type":15},{"name":17,"slug":18,"type":15},"2026-07-12T08:42:53.812877",{"slug":2388,"name":2388,"fn":2389,"description":2390,"org":2391,"tags":2392,"stars":21,"repoUrl":22,"updatedAt":2401},"agents-connect","connect agents to external services","Use when connecting your agent to external APIs, tools, or services via Gateway, or restricting tool access with Cedar policies. Handles gateway setup, target types, outbound auth (OAuth, API key, IAM), credentials, and Cedar policy authoring. Triggers on: \"connect to API\", \"add gateway\", \"connect to MCP server\", \"Lambda tools\", \"OpenAPI\", \"gateway target\", \"Cedar policy\", \"restrict tools\", \"policy engine\", \"gateway auth error\", \"store API key\", \"outbound credential\", \"env var API key\", \"API key None after deploy\", \"credential not available after deploy\", \"should this be a gateway target\", \"give my agent tools\", \"add tools to agent\". Not for inbound auth (who can call your agent) — use agents-harden. Not for debugging agent behavior — use agents-debug. Not for VPC networking errors (agent can't reach APIs due to VPC) — use agents-build. Not for creating or hosting a new MCP server project — use agents-get-started.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2393,2394,2397,2400],{"name":2381,"slug":2382,"type":15},{"name":2395,"slug":2396,"type":15},"API Development","api-development",{"name":2398,"slug":2399,"type":15},"Authentication","authentication",{"name":20,"slug":8,"type":15},"2026-07-16T06:00:38.866147",{"slug":2403,"name":2403,"fn":2404,"description":2405,"org":2406,"tags":2407,"stars":21,"repoUrl":22,"updatedAt":2416},"agents-debug","debug agent and environment issues","Use when your agent or environment is broken — wrong answers, errors, timeouts, tool failures, or CLI issues. Reads traces and logs to diagnose root causes. Also checks prerequisites when the CLI itself isn't working. Triggers on: \"agent not working\", \"wrong answer\", \"agent error\", \"tool call failing\", \"debug agent\", \"check logs\", \"read traces\", \"broken\", \"500 error\", \"424 error\", \"model access denied\", \"command not found\", \"stuck in DELETING\", \"maxVms exceeded\", \"cold start diagnosis\", \"cold start slow\", \"agentcore create error\", \"create failed\", \"exit code 7\", \"connection refused local dev\". Not for deploy failures — use agents-deploy. Not for performance tuning without errors — use agents-optimize. Not for VPC configuration — use agents-build. Not for observability setup or missing logs — use agents-optimize.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2408,2409,2410,2413],{"name":2381,"slug":2382,"type":15},{"name":20,"slug":8,"type":15},{"name":2411,"slug":2412,"type":15},"Debugging","debugging",{"name":2414,"slug":2415,"type":15},"Observability","observability","2026-07-16T06:00:44.679093",{"slug":2418,"name":2418,"fn":2419,"description":2420,"org":2421,"tags":2422,"stars":21,"repoUrl":22,"updatedAt":2431},"agents-deploy","deploy AI agents to AWS","Use when deploying your agent to AWS, or when a deploy has failed. Handles pre-flight validation, CDK\u002FIAM\u002Fquota error diagnosis, version management, rollback, and canary deployments. Triggers on: \"deploy my agent\", \"agentcore deploy\", \"deploy failed\", \"CDK error\", \"rollback\", \"canary deploy\", \"pin version\", \"redeploy\", \"deploy stuck\". Not for production hardening — use agents-harden. Not for adding capabilities before deploy — use agents-build or agents-connect. Not for VPC configuration errors — use agents-build.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2423,2424,2425,2428],{"name":2381,"slug":2382,"type":15},{"name":20,"slug":8,"type":15},{"name":2426,"slug":2427,"type":15},"CI\u002FCD","ci-cd",{"name":2429,"slug":2430,"type":15},"Deployment","deployment","2026-07-12T08:42:55.059577",{"slug":2433,"name":2433,"fn":2434,"description":2435,"org":2436,"tags":2437,"stars":21,"repoUrl":22,"updatedAt":2441},"agents-get-started","scaffold and deploy new agent projects","Use when a developer wants to create a new agent project or get started with AgentCore. Handles framework selection, project scaffolding, first deploy, and first invocation. Triggers on: \"build an agent\", \"create an agent\", \"get started\", \"new project\", \"agentcore create\", \"which framework\", \"Strands vs LangGraph\", \"hello world agent\", \"first agent\", \"create MCP server\", \"host MCP server\", \"agentcore dev\", \"dev server\", \"what port\", \"local development\". Not for adding capabilities to existing projects — use agents-build or agents-connect. Strands vs LangGraph in a migration context routes to agents-build, not here. Connecting to an existing MCP server routes to agents-connect, not here.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2438,2439,2440],{"name":2381,"slug":2382,"type":15},{"name":20,"slug":8,"type":15},{"name":2429,"slug":2430,"type":15},"2026-07-12T08:42:51.963247",{"slug":2443,"name":2443,"fn":2444,"description":2445,"org":2446,"tags":2447,"stars":21,"repoUrl":22,"updatedAt":2454},"agents-harden","harden agents for production","Use when preparing your agent for production — IAM scoping, inbound auth (JWT, SigV4), secrets management, cold start optimization, session lifecycle, rate limiting, input validation, and quota guidance. Triggers on: \"production checklist\", \"harden agent\", \"production ready\", \"secure agent\", \"inbound auth\", \"going live\", \"cold start optimization\", \"session lifecycle\", \"StopRuntimeSession\", \"quota\", \"throttling\", \"maxVms\", \"rate limit\", \"security audit of outbound API calls\", \"gateway target audit for production\", \"restrict who can call\", \"lock down endpoint\", \"only our app can call\". Not for Cedar tool-restriction policies — use agents-connect. Not for quality measurement — use agents-optimize. Not for outbound credential storage or API key wiring — use agents-connect. Not for A2A agent-to-agent auth — use agents-build. Cold start observation and diagnosis (not optimization) routes to agents-debug.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2448,2449,2450,2451],{"name":2381,"slug":2382,"type":15},{"name":20,"slug":8,"type":15},{"name":1900,"slug":1897,"type":15},{"name":2452,"slug":2453,"type":15},"Security","security","2026-07-16T06:00:42.174705",{"slug":2456,"name":2456,"fn":2457,"description":2458,"org":2459,"tags":2460,"stars":21,"repoUrl":22,"updatedAt":2470},"agents-optimize","optimize agent quality and performance","Use when measuring or improving agent quality and performance — set up evaluators, online monitoring, CI\u002FCD quality gates, observability, or cost optimization. Triggers on: \"evaluate my agent\", \"add evaluator\", \"measure quality\", \"quality gate\", \"run evals\", \"agent too slow\", \"why is it slow\", \"reduce latency\", \"set up observability\", \"CloudWatch dashboard\", \"how much does my agent cost\", \"cost optimization\", \"logs not showing up\", \"logs missing\", \"spans not found\", \"eval failing\", \"eval error\", \"dev traces\", \"local traces\", \"agentcore dev traces\", \"traces to CloudWatch\". Not for debugging errors or crashes — use agents-debug. Slow but correct routes here; broken routes to debug.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2461,2462,2463,2466,2467],{"name":2381,"slug":2382,"type":15},{"name":20,"slug":8,"type":15},{"name":2464,"slug":2465,"type":15},"Evals","evals",{"name":2414,"slug":2415,"type":15},{"name":2468,"slug":2469,"type":15},"Performance","performance","2026-07-12T08:42:56.488105",{"slug":2472,"name":2472,"fn":2473,"description":2474,"org":2475,"tags":2476,"stars":21,"repoUrl":22,"updatedAt":2487},"amazon-aurora-mysql","manage Amazon Aurora MySQL clusters","Amazon Aurora MySQL — creates, modifies, and advises on Aurora MySQL clusters specifically (MySQL-compatible engine, Aurora serverless, parallel query). Trigger for Aurora MySQL cluster operations, ACU sizing, I\u002FO-Optimized storage, commitment pricing, or MySQL upgrade planning. Aurora MySQL uses full (VPC-based) configuration — express configuration is PostgreSQL-only. For Aurora PostgreSQL, use amazon-aurora-postgresql instead. Contains safety guardrails and response templates that override defaults.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2477,2478,2481,2484],{"name":20,"slug":8,"type":15},{"name":2479,"slug":2480,"type":15},"Database","database",{"name":2482,"slug":2483,"type":15},"MySQL","mysql",{"name":2485,"slug":2486,"type":15},"Serverless","serverless","2026-07-12T08:43:13.27939",{"slug":2489,"name":2489,"fn":2490,"description":2491,"org":2492,"tags":2493,"stars":21,"repoUrl":22,"updatedAt":2500},"amazon-aurora-postgresql","configure Amazon Aurora PostgreSQL clusters","Amazon Aurora PostgreSQL — creates, modifies, and advises on Aurora PostgreSQL clusters specifically (PostgreSQL-compatible engine, Aurora serverless, express configuration, pgvector, Babelfish). Trigger for Aurora PostgreSQL cluster operations, express-configuration quick-start, ACU sizing, I\u002FO-Optimized storage, commitment pricing, or PostgreSQL upgrade planning. For Aurora MySQL, use amazon-aurora-mysql instead. Contains safety guardrails, express-first routing, and response templates that override defaults.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2494,2495,2496,2499],{"name":20,"slug":8,"type":15},{"name":2479,"slug":2480,"type":15},{"name":2497,"slug":2498,"type":15},"PostgreSQL","postgresql",{"name":2485,"slug":2486,"type":15},"2026-07-16T06:00:34.789624",{"slug":2502,"name":2502,"fn":2503,"description":2504,"org":2505,"tags":2506,"stars":21,"repoUrl":22,"updatedAt":2512},"amazon-bedrock","build generative AI apps with Amazon Bedrock","Builds generative AI applications on Amazon Bedrock. Covers model invocation (Converse API, InvokeModel), RAG with Knowledge Bases, Bedrock Agents, Guardrails, and AgentCore. Use when invoking models, setting up Knowledge Bases, creating agents, applying guardrails, deploying to AgentCore, migrating\u002Fporting\u002Fconverting a Bedrock Agent (including inline agents) to an AgentCore Harness, troubleshooting Bedrock errors (ThrottlingException, AccessDeniedException), or choosing models (Claude, Llama, Nova, Titan). ALSO USE for prompt caching setup and debugging, quota health checks and throttling diagnosis, cost attribution and tracking, migrating between Claude model generations (4.5 to 4.6 to 4.7), chunking strategies, API selection (Converse vs InvokeModel), guardrail capabilities, and model selection. Also covers AgentCore Payments setup (x402, microtransactions, Payment Manager, Connector, Instrument, Coinbase CDP, Stripe Privy, 402 Payment Required, pay for content, paid endpoint, agent payments). NOT for custom model training, Rekognition, or Comprehend.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2507,2508,2509],{"name":2381,"slug":2382,"type":15},{"name":20,"slug":8,"type":15},{"name":2510,"slug":2511,"type":15},"LLM","llm","2026-07-25T05:30:35.20899",{"slug":2514,"name":2514,"fn":2515,"description":2516,"org":2517,"tags":2518,"stars":21,"repoUrl":22,"updatedAt":2527},"amazon-documentdb","manage Amazon DocumentDB clusters","Manages Amazon DocumentDB end-to-end — serverless-on-8.0 cluster setup, TLS\u002FVPC\u002Fdriver config, flexible-schema and vector-search data modeling, MongoDB compatibility assessment, DMS-based migration, slow-query diagnosis, major version upgrades (4.0→5.0→8.0), Well-Architected reviews (41-check wa_review.py), cost estimation, and security hardening. Retrieve for every DocumentDB question and when the user asks to set up or migrate MongoDB to AWS — DocumentDB is AWS's MongoDB-compatible managed database. Triggers: JSON document store, document database, MongoDB on AWS, Nested fields, Lambda cannot connect, TLS handshake, VPC port 27017, IAM auth, Secrets Manager, encryption at rest, $graphLookup, flexible schema, COLLSCAN, compound index, DMS migration, CDC cutover, $vectorSearch, RAG, Global Clusters, DR replication, cost sizing, audit, health check, production-readiness.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2519,2520,2521,2524],{"name":20,"slug":8,"type":15},{"name":2479,"slug":2480,"type":15},{"name":2522,"slug":2523,"type":15},"MongoDB","mongodb",{"name":2525,"slug":2526,"type":15},"NoSQL","nosql","2026-07-12T08:43:00.455878",{"slug":2529,"name":2529,"fn":2530,"description":2531,"org":2532,"tags":2533,"stars":21,"repoUrl":22,"updatedAt":2537},"amazon-dynamodb","design and debug DynamoDB data layers","Designs, reviews, and debugs DynamoDB data layers from design axioms — enumerates access patterns, chooses partition\u002Fsort keys and GSIs, decides single-table vs. multi-table, configures Streams, Global Tables, TTL, and zero-ETL integrations to OpenSearch\u002FRedshift\u002FSageMaker Lakehouse, and produces a defensible data-layer design with a monthly cost estimate and optional live validation. Applies whenever a user is designing, reviewing, or refactoring anything backed by DynamoDB — schemas, access patterns, GSIs, single- vs. multi-table choices, Streams consumers, transactional outboxes, Global Tables, zero-ETL pipelines — even when they don't say \"axioms\" or \"design review.\" Also applies when debugging hot partitions, throttling, unbounded Scans, LWW conflicts, or surprise bills on DynamoDB workloads.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2534,2535,2536],{"name":20,"slug":8,"type":15},{"name":2479,"slug":2480,"type":15},{"name":2525,"slug":2526,"type":15},"2026-07-16T06:00:37.690386",115,{"items":2540,"total":2590},[2541,2548,2555,2562,2569,2575,2582],{"slug":2375,"name":2375,"fn":2376,"description":2377,"org":2542,"tags":2543,"stars":21,"repoUrl":22,"updatedAt":2386},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2544,2545,2546,2547],{"name":2381,"slug":2382,"type":15},{"name":13,"slug":14,"type":15},{"name":20,"slug":8,"type":15},{"name":17,"slug":18,"type":15},{"slug":2388,"name":2388,"fn":2389,"description":2390,"org":2549,"tags":2550,"stars":21,"repoUrl":22,"updatedAt":2401},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2551,2552,2553,2554],{"name":2381,"slug":2382,"type":15},{"name":2395,"slug":2396,"type":15},{"name":2398,"slug":2399,"type":15},{"name":20,"slug":8,"type":15},{"slug":2403,"name":2403,"fn":2404,"description":2405,"org":2556,"tags":2557,"stars":21,"repoUrl":22,"updatedAt":2416},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2558,2559,2560,2561],{"name":2381,"slug":2382,"type":15},{"name":20,"slug":8,"type":15},{"name":2411,"slug":2412,"type":15},{"name":2414,"slug":2415,"type":15},{"slug":2418,"name":2418,"fn":2419,"description":2420,"org":2563,"tags":2564,"stars":21,"repoUrl":22,"updatedAt":2431},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2565,2566,2567,2568],{"name":2381,"slug":2382,"type":15},{"name":20,"slug":8,"type":15},{"name":2426,"slug":2427,"type":15},{"name":2429,"slug":2430,"type":15},{"slug":2433,"name":2433,"fn":2434,"description":2435,"org":2570,"tags":2571,"stars":21,"repoUrl":22,"updatedAt":2441},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2572,2573,2574],{"name":2381,"slug":2382,"type":15},{"name":20,"slug":8,"type":15},{"name":2429,"slug":2430,"type":15},{"slug":2443,"name":2443,"fn":2444,"description":2445,"org":2576,"tags":2577,"stars":21,"repoUrl":22,"updatedAt":2454},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2578,2579,2580,2581],{"name":2381,"slug":2382,"type":15},{"name":20,"slug":8,"type":15},{"name":1900,"slug":1897,"type":15},{"name":2452,"slug":2453,"type":15},{"slug":2456,"name":2456,"fn":2457,"description":2458,"org":2583,"tags":2584,"stars":21,"repoUrl":22,"updatedAt":2470},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2585,2586,2587,2588,2589],{"name":2381,"slug":2382,"type":15},{"name":20,"slug":8,"type":15},{"name":2464,"slug":2465,"type":15},{"name":2414,"slug":2415,"type":15},{"name":2468,"slug":2469,"type":15},114]