[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-aws-labs-aws-lambda-durable-functions":3,"mdc-rt11nq-key":39,"related-org-aws-labs-aws-lambda-durable-functions":2009,"related-repo-aws-labs-aws-lambda-durable-functions":2187},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":34,"sourceUrl":37,"mdContent":38},"aws-lambda-durable-functions","build resilient AWS Lambda durable functions","Build resilient, long-running, multi-step applications with AWS Lambda durable functions with automatic state persistence, retry logic, and orchestration for long-running executions. Covers the critical replay model, step operations, wait\u002Fcallback patterns, error handling with saga pattern, testing with LocalDurableTestRunner. Triggers on phrases like: lambda durable functions, workflow orchestration, state machines, retry\u002Fcheckpoint patterns, long-running stateful Lambda functions, saga pattern, human-in-the-loop callbacks, and reliable serverless applications.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"aws-labs","AWS Labs","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Faws-labs.png","awslabs",[13,17,20],{"name":14,"slug":15,"type":16},"Architecture","architecture","tag",{"name":18,"slug":19,"type":16},"Serverless","serverless",{"name":21,"slug":22,"type":16},"AWS","aws",831,"https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fagent-plugins","2026-07-12T08:39:05.546173",null,127,[29,30,31,22,32,33],"agent-plugins","agent-skills","agents","coding-agent-skills","coding-agents",{"repoUrl":24,"stars":23,"forks":27,"topics":35,"description":36},[29,30,31,22,32,33],"Agent Plugins for AWS equip AI coding agents with the skills to help you architect, deploy, and operate on AWS.","https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fagent-plugins\u002Ftree\u002FHEAD\u002Fplugins\u002Faws-serverless\u002Fskills\u002Faws-lambda-durable-functions","---\nname: aws-lambda-durable-functions\ndescription: >\n  Build resilient, long-running, multi-step applications with AWS Lambda durable functions with automatic state persistence, retry logic, and orchestration for long-running executions. Covers the critical replay model, step operations, wait\u002Fcallback patterns, error handling with saga pattern, testing with LocalDurableTestRunner. Triggers on phrases like: lambda durable functions, workflow orchestration, state machines, retry\u002Fcheckpoint patterns, long-running stateful Lambda functions, saga pattern, human-in-the-loop callbacks, and reliable serverless applications.\n---\n\n# AWS Lambda durable functions\n\nBuild resilient multi-step applications and AI workflows that can execute for up to 1 year while maintaining reliable progress despite interruptions.\n\n## Onboarding\n\n### Step 1: Validate Prerequisites\n\nBefore using AWS Lambda durable functions, verify:\n\n1. **AWS CLI** is installed (2.33.22 or higher) and configured:\n\n   ```bash\n   aws --version\n   aws sts get-caller-identity\n   ```\n\n2. **Runtime environment** is ready:\n   - For TypeScript\u002FJavaScript: Node.js 22+ (`node --version`)\n   - For Python: Python 3.11+ (`python --version`. Note that currently only Lambda runtime environments 3.13+ come with the Durable Execution SDK pre-installed. 3.11 is the min supported Python version by the Durable SDK itself, however, you could use OCI to bring your own container image with your own Python runtime + Durable SDK.)\n\n3. **Deployment capability** exists (one of):\n   - AWS SAM CLI (`sam --version`) 1.153.1 or higher\n   - AWS CDK (`cdk --version`) v2.237.1 or higher\n   - Direct Lambda deployment access\n\n### Step 2: Select language and IaC framework\n\n### Language Selection\n\nDefault: TypeScript\n\nOverride syntax:\n\n- \"use Python\" → Generate Python code\n- \"use JavaScript\" → Generate JavaScript code\n\nWhen not specified, ALWAYS use TypeScript\n\n### IaC framework selection\n\nDefault: CDK\n\nOverride syntax:\n\n- \"use CloudFormation\" → Generate YAML templates\n- \"use SAM\" → Generate YAML templates\n\nWhen not specified, ALWAYS use CDK\n\n### Error Scenarios\n\n#### Unsupported Language\n\n- List detected language\n- State: \"Durable Execution SDK is not yet available for [framework]\"\n- Suggest supported languages as alternatives\n\n#### Unsupported IaC Framework\n\n- List detected framework\n- State: \"[framework] might not support Lambda durable functions yet\"\n- Suggest supported frameworks as alternatives\n\n### Serverless MCP Server Unavailable\n\n- Inform user: \"AWS Serverless MCP not responding\"\n- Ask: \"Proceed without MCP support?\"\n- DO NOT continue without user confirmation\n\n### Step 3: Install SDK\n\n**For TypeScript\u002FJavaScript:**\n\n```bash\nnpm install @aws\u002Fdurable-execution-sdk-js\nnpm install --save-dev @aws\u002Fdurable-execution-sdk-js-testing\n```\n\n**For Python:**\n\n```bash\npip install aws-durable-execution-sdk-python\npip install aws-durable-execution-sdk-python-testing\n```\n\n## When to Load Reference Files\n\nLoad the appropriate reference file based on what the user is working on:\n\n- **Getting started**, **basic setup**, **example**, **ESLint**, or **Jest setup** -> see [getting-started.md](references\u002Fgetting-started.md)\n- **Understanding replay model**, **determinism**, or **non-deterministic errors** -> see [replay-model-rules.md](references\u002Freplay-model-rules.md)\n- **Creating steps**, **atomic operations**, or **retry logic** -> see [step-operations.md](references\u002Fstep-operations.md)\n- **Waiting**, **delays**, **callbacks**, **external systems**, or **polling** -> see [wait-operations.md](references\u002Fwait-operations.md)\n- **Parallel execution**, **map operations**, **batch processing**, or **concurrency** -> see [concurrent-operations.md](references\u002Fconcurrent-operations.md)\n- **Error handling**, **retry strategies**, **saga pattern**, or **compensating transactions** -> see [error-handling.md](references\u002Ferror-handling.md)\n- **Advanced error handling**, **timeout handling**, **circuit breakers**, or **conditional retries** -> see [advanced-error-handling.md](references\u002Fadvanced-error-handling.md)\n- **Testing**, **local testing**, **cloud testing**, **test runner**, or **flaky tests** -> see [testing-patterns.md](references\u002Ftesting-patterns.md)\n- **Deployment**, **CloudFormation**, **CDK**, **SAM**, **log groups**, **deploy**, or **infrastructure** -> see [deployment-iac.md](references\u002Fdeployment-iac.md)\n- **Advanced patterns**, **GenAI agents**, **completion policies**, **step semantics**, or **custom serialization** -> see [advanced-patterns.md](references\u002Fadvanced-patterns.md)\n- **troubleshooting**, **stuck execution**, **failed execution**, **debug execution ID**, **execution history**, **execution error**, **why did my execution fail**, **execution timed out**, **callback not received**, **diagnose execution**, or **root cause execution** -> see [troubleshooting-executions.md](references\u002Ftroubleshooting-executions.md)\n\n## Quick Reference\n\n### Basic Handler Pattern\n\n**TypeScript:**\n\n```typescript\nimport { withDurableExecution, DurableContext } from '@aws\u002Fdurable-execution-sdk-js';\n\nexport const handler = withDurableExecution(async (event, context: DurableContext) => {\n  const result = await context.step('process', async () => processData(event));\n  return result;\n});\n```\n\n**Python:**\n\n```python\nfrom aws_durable_execution_sdk_python import durable_execution, DurableContext\n\n@durable_execution\ndef handler(event: dict, context: DurableContext) -> dict:\n    result = context.step(lambda _: process_data(event), name='process')\n    return result\n```\n\n### Critical Rules\n\n1. **All non-deterministic code MUST be in steps** (Date.now, Math.random, API calls)\n2. **Cannot nest durable operations** - use `runInChildContext` to group operations\n3. **Closure mutations are lost on replay** - return values from steps\n4. **Side effects outside steps repeat** - use `context.logger` (replay-aware)\n\n### Python API Differences\n\nThe Python SDK differs from TypeScript in several key areas:\n\n- **Steps**: Use `@durable_step` decorator + `context.step(my_step(args))`, or inline `context.step(lambda _: ..., name='...')`. Prefer the decorator for automatic step naming.\n- **Wait**: `context.wait(duration=Duration.from_seconds(n), name='...')`\n- **Exceptions**: `ExecutionError` (permanent), `InvocationError` (transient), `CallbackError` (callback failures)\n- **Testing**: Use `DurableFunctionTestRunner` class directly - instantiate with handler, use context manager, call `run(input=...)`\n\n### Invocation Requirements\n\nDurable functions **require qualified ARNs** (version, alias, or `$LATEST`):\n\n```bash\n# Valid\naws lambda invoke --function-name my-function:1 output.json\naws lambda invoke --function-name my-function:prod output.json\n\n# Invalid - will fail\naws lambda invoke --function-name my-function output.json\n```\n\n## IAM Permissions\n\nYour Lambda execution role MUST have the `AWSLambdaBasicDurableExecutionRolePolicy` managed policy attached. This includes:\n\n- `lambda:CheckpointDurableExecution` - Persist execution state\n- `lambda:GetDurableExecutionState` - Retrieve execution state\n- CloudWatch Logs permissions\n\n**Additional permissions needed for:**\n\n- **Durable invokes**: `lambda:InvokeFunction` on target function ARNs\n- **External callbacks**: Systems need `lambda:SendDurableExecutionCallbackSuccess` and `lambda:SendDurableExecutionCallbackFailure`\n\n## Validation Guidelines\n\nWhen writing or reviewing durable function code, ALWAYS check for these replay model violations:\n\n1. **Non-deterministic code outside steps**: `Date.now()`, `Math.random()`, UUID generation, API calls, database queries must all be inside steps\n2. **Nested durable operations in step functions**: Cannot call `context.step()`, `context.wait()`, or `context.invoke()` inside a step function — use `context.runInChildContext()` instead\n3. **Closure mutations that won't persist**: Variables mutated inside steps are NOT preserved across replays — return values from steps instead\n4. **Side effects outside steps that repeat on replay**: Use `context.logger` for logging (it is replay-aware and deduplicates automatically)\n\nWhen implementing or modifying tests for durable functions, ALWAYS verify:\n\n1. All operations have descriptive names\n2. Tests get operations by NAME, never by index\n3. Replay behavior is tested with multiple invocations\n4. Use `LocalDurableTestRunner` for local testing\n\n### MCP Server Configuration\n\n**Write access is enabled by default.** The plugin ships with `--allow-write` in `.mcp.json`, so the MCP server can create projects, generate IaC, and deploy on behalf of the user.\n\nAccess to sensitive data (like Lambda and API Gateway logs) is **not** enabled by default. To grant it, add `--allow-sensitive-data-access` to `.mcp.json`.\n\n## Resources\n\n- [AWS Lambda durable functions Documentation](https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-functions.html)\n- [JavaScript SDK Repository](https:\u002F\u002Fgithub.com\u002Faws\u002Faws-durable-execution-sdk-js)\n- [Python SDK Repository](https:\u002F\u002Fgithub.com\u002Faws\u002Faws-durable-execution-sdk-python)\n- [IAM Policy Reference](https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-managed-policy\u002Flatest\u002Freference\u002FAWSLambdaBasicDurableExecutionRolePolicy.html)\n",{"data":40,"body":41},{"name":4,"description":6},{"type":42,"children":43},"root",[44,52,58,65,72,77,224,230,236,241,246,259,264,270,275,279,292,297,303,310,335,341,365,371,389,395,403,449,457,497,503,508,950,956,962,970,1262,1270,1326,1332,1390,1396,1401,1509,1515,1535,1654,1660,1673,1703,1711,1755,1761,1766,1859,1864,1895,1901,1927,1953,1959,2003],{"type":45,"tag":46,"props":47,"children":48},"element","h1",{"id":4},[49],{"type":50,"value":51},"text","AWS Lambda durable functions",{"type":45,"tag":53,"props":54,"children":55},"p",{},[56],{"type":50,"value":57},"Build resilient multi-step applications and AI workflows that can execute for up to 1 year while maintaining reliable progress despite interruptions.",{"type":45,"tag":59,"props":60,"children":62},"h2",{"id":61},"onboarding",[63],{"type":50,"value":64},"Onboarding",{"type":45,"tag":66,"props":67,"children":69},"h3",{"id":68},"step-1-validate-prerequisites",[70],{"type":50,"value":71},"Step 1: Validate Prerequisites",{"type":45,"tag":53,"props":73,"children":74},{},[75],{"type":50,"value":76},"Before using AWS Lambda durable functions, verify:",{"type":45,"tag":78,"props":79,"children":80},"ol",{},[81,140,180],{"type":45,"tag":82,"props":83,"children":84},"li",{},[85,91,93],{"type":45,"tag":86,"props":87,"children":88},"strong",{},[89],{"type":50,"value":90},"AWS CLI",{"type":50,"value":92}," is installed (2.33.22 or higher) and configured:",{"type":45,"tag":94,"props":95,"children":100},"pre",{"className":96,"code":97,"language":98,"meta":99,"style":99},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","aws --version\naws sts get-caller-identity\n","bash","",[101],{"type":45,"tag":102,"props":103,"children":104},"code",{"__ignoreMap":99},[105,122],{"type":45,"tag":106,"props":107,"children":110},"span",{"class":108,"line":109},"line",1,[111,116],{"type":45,"tag":106,"props":112,"children":114},{"style":113},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[115],{"type":50,"value":22},{"type":45,"tag":106,"props":117,"children":119},{"style":118},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[120],{"type":50,"value":121}," --version\n",{"type":45,"tag":106,"props":123,"children":125},{"class":108,"line":124},2,[126,130,135],{"type":45,"tag":106,"props":127,"children":128},{"style":113},[129],{"type":50,"value":22},{"type":45,"tag":106,"props":131,"children":132},{"style":118},[133],{"type":50,"value":134}," sts",{"type":45,"tag":106,"props":136,"children":137},{"style":118},[138],{"type":50,"value":139}," get-caller-identity\n",{"type":45,"tag":82,"props":141,"children":142},{},[143,148,150],{"type":45,"tag":86,"props":144,"children":145},{},[146],{"type":50,"value":147},"Runtime environment",{"type":50,"value":149}," is ready:",{"type":45,"tag":151,"props":152,"children":153},"ul",{},[154,167],{"type":45,"tag":82,"props":155,"children":156},{},[157,159,165],{"type":50,"value":158},"For TypeScript\u002FJavaScript: Node.js 22+ (",{"type":45,"tag":102,"props":160,"children":162},{"className":161},[],[163],{"type":50,"value":164},"node --version",{"type":50,"value":166},")",{"type":45,"tag":82,"props":168,"children":169},{},[170,172,178],{"type":50,"value":171},"For Python: Python 3.11+ (",{"type":45,"tag":102,"props":173,"children":175},{"className":174},[],[176],{"type":50,"value":177},"python --version",{"type":50,"value":179},". Note that currently only Lambda runtime environments 3.13+ come with the Durable Execution SDK pre-installed. 3.11 is the min supported Python version by the Durable SDK itself, however, you could use OCI to bring your own container image with your own Python runtime + Durable SDK.)",{"type":45,"tag":82,"props":181,"children":182},{},[183,188,190],{"type":45,"tag":86,"props":184,"children":185},{},[186],{"type":50,"value":187},"Deployment capability",{"type":50,"value":189}," exists (one of):",{"type":45,"tag":151,"props":191,"children":192},{},[193,206,219],{"type":45,"tag":82,"props":194,"children":195},{},[196,198,204],{"type":50,"value":197},"AWS SAM CLI (",{"type":45,"tag":102,"props":199,"children":201},{"className":200},[],[202],{"type":50,"value":203},"sam --version",{"type":50,"value":205},") 1.153.1 or higher",{"type":45,"tag":82,"props":207,"children":208},{},[209,211,217],{"type":50,"value":210},"AWS CDK (",{"type":45,"tag":102,"props":212,"children":214},{"className":213},[],[215],{"type":50,"value":216},"cdk --version",{"type":50,"value":218},") v2.237.1 or higher",{"type":45,"tag":82,"props":220,"children":221},{},[222],{"type":50,"value":223},"Direct Lambda deployment access",{"type":45,"tag":66,"props":225,"children":227},{"id":226},"step-2-select-language-and-iac-framework",[228],{"type":50,"value":229},"Step 2: Select language and IaC framework",{"type":45,"tag":66,"props":231,"children":233},{"id":232},"language-selection",[234],{"type":50,"value":235},"Language Selection",{"type":45,"tag":53,"props":237,"children":238},{},[239],{"type":50,"value":240},"Default: TypeScript",{"type":45,"tag":53,"props":242,"children":243},{},[244],{"type":50,"value":245},"Override syntax:",{"type":45,"tag":151,"props":247,"children":248},{},[249,254],{"type":45,"tag":82,"props":250,"children":251},{},[252],{"type":50,"value":253},"\"use Python\" → Generate Python code",{"type":45,"tag":82,"props":255,"children":256},{},[257],{"type":50,"value":258},"\"use JavaScript\" → Generate JavaScript code",{"type":45,"tag":53,"props":260,"children":261},{},[262],{"type":50,"value":263},"When not specified, ALWAYS use TypeScript",{"type":45,"tag":66,"props":265,"children":267},{"id":266},"iac-framework-selection",[268],{"type":50,"value":269},"IaC framework selection",{"type":45,"tag":53,"props":271,"children":272},{},[273],{"type":50,"value":274},"Default: CDK",{"type":45,"tag":53,"props":276,"children":277},{},[278],{"type":50,"value":245},{"type":45,"tag":151,"props":280,"children":281},{},[282,287],{"type":45,"tag":82,"props":283,"children":284},{},[285],{"type":50,"value":286},"\"use CloudFormation\" → Generate YAML templates",{"type":45,"tag":82,"props":288,"children":289},{},[290],{"type":50,"value":291},"\"use SAM\" → Generate YAML templates",{"type":45,"tag":53,"props":293,"children":294},{},[295],{"type":50,"value":296},"When not specified, ALWAYS use CDK",{"type":45,"tag":66,"props":298,"children":300},{"id":299},"error-scenarios",[301],{"type":50,"value":302},"Error Scenarios",{"type":45,"tag":304,"props":305,"children":307},"h4",{"id":306},"unsupported-language",[308],{"type":50,"value":309},"Unsupported Language",{"type":45,"tag":151,"props":311,"children":312},{},[313,318,330],{"type":45,"tag":82,"props":314,"children":315},{},[316],{"type":50,"value":317},"List detected language",{"type":45,"tag":82,"props":319,"children":320},{},[321,323,328],{"type":50,"value":322},"State: \"Durable Execution SDK is not yet available for ",{"type":45,"tag":106,"props":324,"children":325},{},[326],{"type":50,"value":327},"framework",{"type":50,"value":329},"\"",{"type":45,"tag":82,"props":331,"children":332},{},[333],{"type":50,"value":334},"Suggest supported languages as alternatives",{"type":45,"tag":304,"props":336,"children":338},{"id":337},"unsupported-iac-framework",[339],{"type":50,"value":340},"Unsupported IaC Framework",{"type":45,"tag":151,"props":342,"children":343},{},[344,349,360],{"type":45,"tag":82,"props":345,"children":346},{},[347],{"type":50,"value":348},"List detected framework",{"type":45,"tag":82,"props":350,"children":351},{},[352,354,358],{"type":50,"value":353},"State: \"",{"type":45,"tag":106,"props":355,"children":356},{},[357],{"type":50,"value":327},{"type":50,"value":359}," might not support Lambda durable functions yet\"",{"type":45,"tag":82,"props":361,"children":362},{},[363],{"type":50,"value":364},"Suggest supported frameworks as alternatives",{"type":45,"tag":66,"props":366,"children":368},{"id":367},"serverless-mcp-server-unavailable",[369],{"type":50,"value":370},"Serverless MCP Server Unavailable",{"type":45,"tag":151,"props":372,"children":373},{},[374,379,384],{"type":45,"tag":82,"props":375,"children":376},{},[377],{"type":50,"value":378},"Inform user: \"AWS Serverless MCP not responding\"",{"type":45,"tag":82,"props":380,"children":381},{},[382],{"type":50,"value":383},"Ask: \"Proceed without MCP support?\"",{"type":45,"tag":82,"props":385,"children":386},{},[387],{"type":50,"value":388},"DO NOT continue without user confirmation",{"type":45,"tag":66,"props":390,"children":392},{"id":391},"step-3-install-sdk",[393],{"type":50,"value":394},"Step 3: Install SDK",{"type":45,"tag":53,"props":396,"children":397},{},[398],{"type":45,"tag":86,"props":399,"children":400},{},[401],{"type":50,"value":402},"For TypeScript\u002FJavaScript:",{"type":45,"tag":94,"props":404,"children":406},{"className":96,"code":405,"language":98,"meta":99,"style":99},"npm install @aws\u002Fdurable-execution-sdk-js\nnpm install --save-dev @aws\u002Fdurable-execution-sdk-js-testing\n",[407],{"type":45,"tag":102,"props":408,"children":409},{"__ignoreMap":99},[410,428],{"type":45,"tag":106,"props":411,"children":412},{"class":108,"line":109},[413,418,423],{"type":45,"tag":106,"props":414,"children":415},{"style":113},[416],{"type":50,"value":417},"npm",{"type":45,"tag":106,"props":419,"children":420},{"style":118},[421],{"type":50,"value":422}," install",{"type":45,"tag":106,"props":424,"children":425},{"style":118},[426],{"type":50,"value":427}," @aws\u002Fdurable-execution-sdk-js\n",{"type":45,"tag":106,"props":429,"children":430},{"class":108,"line":124},[431,435,439,444],{"type":45,"tag":106,"props":432,"children":433},{"style":113},[434],{"type":50,"value":417},{"type":45,"tag":106,"props":436,"children":437},{"style":118},[438],{"type":50,"value":422},{"type":45,"tag":106,"props":440,"children":441},{"style":118},[442],{"type":50,"value":443}," --save-dev",{"type":45,"tag":106,"props":445,"children":446},{"style":118},[447],{"type":50,"value":448}," @aws\u002Fdurable-execution-sdk-js-testing\n",{"type":45,"tag":53,"props":450,"children":451},{},[452],{"type":45,"tag":86,"props":453,"children":454},{},[455],{"type":50,"value":456},"For Python:",{"type":45,"tag":94,"props":458,"children":460},{"className":96,"code":459,"language":98,"meta":99,"style":99},"pip install aws-durable-execution-sdk-python\npip install aws-durable-execution-sdk-python-testing\n",[461],{"type":45,"tag":102,"props":462,"children":463},{"__ignoreMap":99},[464,481],{"type":45,"tag":106,"props":465,"children":466},{"class":108,"line":109},[467,472,476],{"type":45,"tag":106,"props":468,"children":469},{"style":113},[470],{"type":50,"value":471},"pip",{"type":45,"tag":106,"props":473,"children":474},{"style":118},[475],{"type":50,"value":422},{"type":45,"tag":106,"props":477,"children":478},{"style":118},[479],{"type":50,"value":480}," aws-durable-execution-sdk-python\n",{"type":45,"tag":106,"props":482,"children":483},{"class":108,"line":124},[484,488,492],{"type":45,"tag":106,"props":485,"children":486},{"style":113},[487],{"type":50,"value":471},{"type":45,"tag":106,"props":489,"children":490},{"style":118},[491],{"type":50,"value":422},{"type":45,"tag":106,"props":493,"children":494},{"style":118},[495],{"type":50,"value":496}," aws-durable-execution-sdk-python-testing\n",{"type":45,"tag":59,"props":498,"children":500},{"id":499},"when-to-load-reference-files",[501],{"type":50,"value":502},"When to Load Reference Files",{"type":45,"tag":53,"props":504,"children":505},{},[506],{"type":50,"value":507},"Load the appropriate reference file based on what the user is working on:",{"type":45,"tag":151,"props":509,"children":510},{},[511,554,581,608,647,680,713,746,785,836,875],{"type":45,"tag":82,"props":512,"children":513},{},[514,519,521,526,527,532,533,538,540,545,547],{"type":45,"tag":86,"props":515,"children":516},{},[517],{"type":50,"value":518},"Getting started",{"type":50,"value":520},", ",{"type":45,"tag":86,"props":522,"children":523},{},[524],{"type":50,"value":525},"basic setup",{"type":50,"value":520},{"type":45,"tag":86,"props":528,"children":529},{},[530],{"type":50,"value":531},"example",{"type":50,"value":520},{"type":45,"tag":86,"props":534,"children":535},{},[536],{"type":50,"value":537},"ESLint",{"type":50,"value":539},", or ",{"type":45,"tag":86,"props":541,"children":542},{},[543],{"type":50,"value":544},"Jest setup",{"type":50,"value":546}," -> see ",{"type":45,"tag":548,"props":549,"children":551},"a",{"href":550},"references\u002Fgetting-started.md",[552],{"type":50,"value":553},"getting-started.md",{"type":45,"tag":82,"props":555,"children":556},{},[557,562,563,568,569,574,575],{"type":45,"tag":86,"props":558,"children":559},{},[560],{"type":50,"value":561},"Understanding replay model",{"type":50,"value":520},{"type":45,"tag":86,"props":564,"children":565},{},[566],{"type":50,"value":567},"determinism",{"type":50,"value":539},{"type":45,"tag":86,"props":570,"children":571},{},[572],{"type":50,"value":573},"non-deterministic errors",{"type":50,"value":546},{"type":45,"tag":548,"props":576,"children":578},{"href":577},"references\u002Freplay-model-rules.md",[579],{"type":50,"value":580},"replay-model-rules.md",{"type":45,"tag":82,"props":582,"children":583},{},[584,589,590,595,596,601,602],{"type":45,"tag":86,"props":585,"children":586},{},[587],{"type":50,"value":588},"Creating steps",{"type":50,"value":520},{"type":45,"tag":86,"props":591,"children":592},{},[593],{"type":50,"value":594},"atomic operations",{"type":50,"value":539},{"type":45,"tag":86,"props":597,"children":598},{},[599],{"type":50,"value":600},"retry logic",{"type":50,"value":546},{"type":45,"tag":548,"props":603,"children":605},{"href":604},"references\u002Fstep-operations.md",[606],{"type":50,"value":607},"step-operations.md",{"type":45,"tag":82,"props":609,"children":610},{},[611,616,617,622,623,628,629,634,635,640,641],{"type":45,"tag":86,"props":612,"children":613},{},[614],{"type":50,"value":615},"Waiting",{"type":50,"value":520},{"type":45,"tag":86,"props":618,"children":619},{},[620],{"type":50,"value":621},"delays",{"type":50,"value":520},{"type":45,"tag":86,"props":624,"children":625},{},[626],{"type":50,"value":627},"callbacks",{"type":50,"value":520},{"type":45,"tag":86,"props":630,"children":631},{},[632],{"type":50,"value":633},"external systems",{"type":50,"value":539},{"type":45,"tag":86,"props":636,"children":637},{},[638],{"type":50,"value":639},"polling",{"type":50,"value":546},{"type":45,"tag":548,"props":642,"children":644},{"href":643},"references\u002Fwait-operations.md",[645],{"type":50,"value":646},"wait-operations.md",{"type":45,"tag":82,"props":648,"children":649},{},[650,655,656,661,662,667,668,673,674],{"type":45,"tag":86,"props":651,"children":652},{},[653],{"type":50,"value":654},"Parallel execution",{"type":50,"value":520},{"type":45,"tag":86,"props":657,"children":658},{},[659],{"type":50,"value":660},"map operations",{"type":50,"value":520},{"type":45,"tag":86,"props":663,"children":664},{},[665],{"type":50,"value":666},"batch processing",{"type":50,"value":539},{"type":45,"tag":86,"props":669,"children":670},{},[671],{"type":50,"value":672},"concurrency",{"type":50,"value":546},{"type":45,"tag":548,"props":675,"children":677},{"href":676},"references\u002Fconcurrent-operations.md",[678],{"type":50,"value":679},"concurrent-operations.md",{"type":45,"tag":82,"props":681,"children":682},{},[683,688,689,694,695,700,701,706,707],{"type":45,"tag":86,"props":684,"children":685},{},[686],{"type":50,"value":687},"Error handling",{"type":50,"value":520},{"type":45,"tag":86,"props":690,"children":691},{},[692],{"type":50,"value":693},"retry strategies",{"type":50,"value":520},{"type":45,"tag":86,"props":696,"children":697},{},[698],{"type":50,"value":699},"saga pattern",{"type":50,"value":539},{"type":45,"tag":86,"props":702,"children":703},{},[704],{"type":50,"value":705},"compensating transactions",{"type":50,"value":546},{"type":45,"tag":548,"props":708,"children":710},{"href":709},"references\u002Ferror-handling.md",[711],{"type":50,"value":712},"error-handling.md",{"type":45,"tag":82,"props":714,"children":715},{},[716,721,722,727,728,733,734,739,740],{"type":45,"tag":86,"props":717,"children":718},{},[719],{"type":50,"value":720},"Advanced error handling",{"type":50,"value":520},{"type":45,"tag":86,"props":723,"children":724},{},[725],{"type":50,"value":726},"timeout handling",{"type":50,"value":520},{"type":45,"tag":86,"props":729,"children":730},{},[731],{"type":50,"value":732},"circuit breakers",{"type":50,"value":539},{"type":45,"tag":86,"props":735,"children":736},{},[737],{"type":50,"value":738},"conditional retries",{"type":50,"value":546},{"type":45,"tag":548,"props":741,"children":743},{"href":742},"references\u002Fadvanced-error-handling.md",[744],{"type":50,"value":745},"advanced-error-handling.md",{"type":45,"tag":82,"props":747,"children":748},{},[749,754,755,760,761,766,767,772,773,778,779],{"type":45,"tag":86,"props":750,"children":751},{},[752],{"type":50,"value":753},"Testing",{"type":50,"value":520},{"type":45,"tag":86,"props":756,"children":757},{},[758],{"type":50,"value":759},"local testing",{"type":50,"value":520},{"type":45,"tag":86,"props":762,"children":763},{},[764],{"type":50,"value":765},"cloud testing",{"type":50,"value":520},{"type":45,"tag":86,"props":768,"children":769},{},[770],{"type":50,"value":771},"test runner",{"type":50,"value":539},{"type":45,"tag":86,"props":774,"children":775},{},[776],{"type":50,"value":777},"flaky tests",{"type":50,"value":546},{"type":45,"tag":548,"props":780,"children":782},{"href":781},"references\u002Ftesting-patterns.md",[783],{"type":50,"value":784},"testing-patterns.md",{"type":45,"tag":82,"props":786,"children":787},{},[788,793,794,799,800,805,806,811,812,817,818,823,824,829,830],{"type":45,"tag":86,"props":789,"children":790},{},[791],{"type":50,"value":792},"Deployment",{"type":50,"value":520},{"type":45,"tag":86,"props":795,"children":796},{},[797],{"type":50,"value":798},"CloudFormation",{"type":50,"value":520},{"type":45,"tag":86,"props":801,"children":802},{},[803],{"type":50,"value":804},"CDK",{"type":50,"value":520},{"type":45,"tag":86,"props":807,"children":808},{},[809],{"type":50,"value":810},"SAM",{"type":50,"value":520},{"type":45,"tag":86,"props":813,"children":814},{},[815],{"type":50,"value":816},"log groups",{"type":50,"value":520},{"type":45,"tag":86,"props":819,"children":820},{},[821],{"type":50,"value":822},"deploy",{"type":50,"value":539},{"type":45,"tag":86,"props":825,"children":826},{},[827],{"type":50,"value":828},"infrastructure",{"type":50,"value":546},{"type":45,"tag":548,"props":831,"children":833},{"href":832},"references\u002Fdeployment-iac.md",[834],{"type":50,"value":835},"deployment-iac.md",{"type":45,"tag":82,"props":837,"children":838},{},[839,844,845,850,851,856,857,862,863,868,869],{"type":45,"tag":86,"props":840,"children":841},{},[842],{"type":50,"value":843},"Advanced patterns",{"type":50,"value":520},{"type":45,"tag":86,"props":846,"children":847},{},[848],{"type":50,"value":849},"GenAI agents",{"type":50,"value":520},{"type":45,"tag":86,"props":852,"children":853},{},[854],{"type":50,"value":855},"completion policies",{"type":50,"value":520},{"type":45,"tag":86,"props":858,"children":859},{},[860],{"type":50,"value":861},"step semantics",{"type":50,"value":539},{"type":45,"tag":86,"props":864,"children":865},{},[866],{"type":50,"value":867},"custom serialization",{"type":50,"value":546},{"type":45,"tag":548,"props":870,"children":872},{"href":871},"references\u002Fadvanced-patterns.md",[873],{"type":50,"value":874},"advanced-patterns.md",{"type":45,"tag":82,"props":876,"children":877},{},[878,883,884,889,890,895,896,901,902,907,908,913,914,919,920,925,926,931,932,937,938,943,944],{"type":45,"tag":86,"props":879,"children":880},{},[881],{"type":50,"value":882},"troubleshooting",{"type":50,"value":520},{"type":45,"tag":86,"props":885,"children":886},{},[887],{"type":50,"value":888},"stuck execution",{"type":50,"value":520},{"type":45,"tag":86,"props":891,"children":892},{},[893],{"type":50,"value":894},"failed execution",{"type":50,"value":520},{"type":45,"tag":86,"props":897,"children":898},{},[899],{"type":50,"value":900},"debug execution ID",{"type":50,"value":520},{"type":45,"tag":86,"props":903,"children":904},{},[905],{"type":50,"value":906},"execution history",{"type":50,"value":520},{"type":45,"tag":86,"props":909,"children":910},{},[911],{"type":50,"value":912},"execution error",{"type":50,"value":520},{"type":45,"tag":86,"props":915,"children":916},{},[917],{"type":50,"value":918},"why did my execution fail",{"type":50,"value":520},{"type":45,"tag":86,"props":921,"children":922},{},[923],{"type":50,"value":924},"execution timed out",{"type":50,"value":520},{"type":45,"tag":86,"props":927,"children":928},{},[929],{"type":50,"value":930},"callback not received",{"type":50,"value":520},{"type":45,"tag":86,"props":933,"children":934},{},[935],{"type":50,"value":936},"diagnose execution",{"type":50,"value":539},{"type":45,"tag":86,"props":939,"children":940},{},[941],{"type":50,"value":942},"root cause execution",{"type":50,"value":546},{"type":45,"tag":548,"props":945,"children":947},{"href":946},"references\u002Ftroubleshooting-executions.md",[948],{"type":50,"value":949},"troubleshooting-executions.md",{"type":45,"tag":59,"props":951,"children":953},{"id":952},"quick-reference",[954],{"type":50,"value":955},"Quick Reference",{"type":45,"tag":66,"props":957,"children":959},{"id":958},"basic-handler-pattern",[960],{"type":50,"value":961},"Basic Handler Pattern",{"type":45,"tag":53,"props":963,"children":964},{},[965],{"type":45,"tag":86,"props":966,"children":967},{},[968],{"type":50,"value":969},"TypeScript:",{"type":45,"tag":94,"props":971,"children":975},{"className":972,"code":973,"language":974,"meta":99,"style":99},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { withDurableExecution, DurableContext } from '@aws\u002Fdurable-execution-sdk-js';\n\nexport const handler = withDurableExecution(async (event, context: DurableContext) => {\n  const result = await context.step('process', async () => processData(event));\n  return result;\n});\n","typescript",[976],{"type":45,"tag":102,"props":977,"children":978},{"__ignoreMap":99},[979,1040,1049,1132,1228,1245],{"type":45,"tag":106,"props":980,"children":981},{"class":108,"line":109},[982,988,994,1000,1005,1010,1015,1020,1025,1030,1035],{"type":45,"tag":106,"props":983,"children":985},{"style":984},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[986],{"type":50,"value":987},"import",{"type":45,"tag":106,"props":989,"children":991},{"style":990},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[992],{"type":50,"value":993}," {",{"type":45,"tag":106,"props":995,"children":997},{"style":996},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[998],{"type":50,"value":999}," withDurableExecution",{"type":45,"tag":106,"props":1001,"children":1002},{"style":990},[1003],{"type":50,"value":1004},",",{"type":45,"tag":106,"props":1006,"children":1007},{"style":996},[1008],{"type":50,"value":1009}," DurableContext",{"type":45,"tag":106,"props":1011,"children":1012},{"style":990},[1013],{"type":50,"value":1014}," }",{"type":45,"tag":106,"props":1016,"children":1017},{"style":984},[1018],{"type":50,"value":1019}," from",{"type":45,"tag":106,"props":1021,"children":1022},{"style":990},[1023],{"type":50,"value":1024}," '",{"type":45,"tag":106,"props":1026,"children":1027},{"style":118},[1028],{"type":50,"value":1029},"@aws\u002Fdurable-execution-sdk-js",{"type":45,"tag":106,"props":1031,"children":1032},{"style":990},[1033],{"type":50,"value":1034},"'",{"type":45,"tag":106,"props":1036,"children":1037},{"style":990},[1038],{"type":50,"value":1039},";\n",{"type":45,"tag":106,"props":1041,"children":1042},{"class":108,"line":124},[1043],{"type":45,"tag":106,"props":1044,"children":1046},{"emptyLinePlaceholder":1045},true,[1047],{"type":50,"value":1048},"\n",{"type":45,"tag":106,"props":1050,"children":1052},{"class":108,"line":1051},3,[1053,1058,1064,1069,1074,1079,1084,1089,1094,1100,1104,1109,1114,1118,1122,1127],{"type":45,"tag":106,"props":1054,"children":1055},{"style":984},[1056],{"type":50,"value":1057},"export",{"type":45,"tag":106,"props":1059,"children":1061},{"style":1060},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1062],{"type":50,"value":1063}," const",{"type":45,"tag":106,"props":1065,"children":1066},{"style":996},[1067],{"type":50,"value":1068}," handler ",{"type":45,"tag":106,"props":1070,"children":1071},{"style":990},[1072],{"type":50,"value":1073},"=",{"type":45,"tag":106,"props":1075,"children":1077},{"style":1076},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[1078],{"type":50,"value":999},{"type":45,"tag":106,"props":1080,"children":1081},{"style":996},[1082],{"type":50,"value":1083},"(",{"type":45,"tag":106,"props":1085,"children":1086},{"style":1060},[1087],{"type":50,"value":1088},"async",{"type":45,"tag":106,"props":1090,"children":1091},{"style":990},[1092],{"type":50,"value":1093}," (",{"type":45,"tag":106,"props":1095,"children":1097},{"style":1096},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[1098],{"type":50,"value":1099},"event",{"type":45,"tag":106,"props":1101,"children":1102},{"style":990},[1103],{"type":50,"value":1004},{"type":45,"tag":106,"props":1105,"children":1106},{"style":1096},[1107],{"type":50,"value":1108}," context",{"type":45,"tag":106,"props":1110,"children":1111},{"style":990},[1112],{"type":50,"value":1113},":",{"type":45,"tag":106,"props":1115,"children":1116},{"style":113},[1117],{"type":50,"value":1009},{"type":45,"tag":106,"props":1119,"children":1120},{"style":990},[1121],{"type":50,"value":166},{"type":45,"tag":106,"props":1123,"children":1124},{"style":1060},[1125],{"type":50,"value":1126}," =>",{"type":45,"tag":106,"props":1128,"children":1129},{"style":990},[1130],{"type":50,"value":1131}," {\n",{"type":45,"tag":106,"props":1133,"children":1135},{"class":108,"line":1134},4,[1136,1141,1146,1151,1156,1160,1165,1170,1175,1179,1184,1188,1192,1197,1202,1206,1211,1215,1219,1224],{"type":45,"tag":106,"props":1137,"children":1138},{"style":1060},[1139],{"type":50,"value":1140},"  const",{"type":45,"tag":106,"props":1142,"children":1143},{"style":996},[1144],{"type":50,"value":1145}," result",{"type":45,"tag":106,"props":1147,"children":1148},{"style":990},[1149],{"type":50,"value":1150}," =",{"type":45,"tag":106,"props":1152,"children":1153},{"style":984},[1154],{"type":50,"value":1155}," await",{"type":45,"tag":106,"props":1157,"children":1158},{"style":996},[1159],{"type":50,"value":1108},{"type":45,"tag":106,"props":1161,"children":1162},{"style":990},[1163],{"type":50,"value":1164},".",{"type":45,"tag":106,"props":1166,"children":1167},{"style":1076},[1168],{"type":50,"value":1169},"step",{"type":45,"tag":106,"props":1171,"children":1173},{"style":1172},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[1174],{"type":50,"value":1083},{"type":45,"tag":106,"props":1176,"children":1177},{"style":990},[1178],{"type":50,"value":1034},{"type":45,"tag":106,"props":1180,"children":1181},{"style":118},[1182],{"type":50,"value":1183},"process",{"type":45,"tag":106,"props":1185,"children":1186},{"style":990},[1187],{"type":50,"value":1034},{"type":45,"tag":106,"props":1189,"children":1190},{"style":990},[1191],{"type":50,"value":1004},{"type":45,"tag":106,"props":1193,"children":1194},{"style":1060},[1195],{"type":50,"value":1196}," async",{"type":45,"tag":106,"props":1198,"children":1199},{"style":990},[1200],{"type":50,"value":1201}," ()",{"type":45,"tag":106,"props":1203,"children":1204},{"style":1060},[1205],{"type":50,"value":1126},{"type":45,"tag":106,"props":1207,"children":1208},{"style":1076},[1209],{"type":50,"value":1210}," processData",{"type":45,"tag":106,"props":1212,"children":1213},{"style":1172},[1214],{"type":50,"value":1083},{"type":45,"tag":106,"props":1216,"children":1217},{"style":996},[1218],{"type":50,"value":1099},{"type":45,"tag":106,"props":1220,"children":1221},{"style":1172},[1222],{"type":50,"value":1223},"))",{"type":45,"tag":106,"props":1225,"children":1226},{"style":990},[1227],{"type":50,"value":1039},{"type":45,"tag":106,"props":1229,"children":1231},{"class":108,"line":1230},5,[1232,1237,1241],{"type":45,"tag":106,"props":1233,"children":1234},{"style":984},[1235],{"type":50,"value":1236},"  return",{"type":45,"tag":106,"props":1238,"children":1239},{"style":996},[1240],{"type":50,"value":1145},{"type":45,"tag":106,"props":1242,"children":1243},{"style":990},[1244],{"type":50,"value":1039},{"type":45,"tag":106,"props":1246,"children":1248},{"class":108,"line":1247},6,[1249,1254,1258],{"type":45,"tag":106,"props":1250,"children":1251},{"style":990},[1252],{"type":50,"value":1253},"}",{"type":45,"tag":106,"props":1255,"children":1256},{"style":996},[1257],{"type":50,"value":166},{"type":45,"tag":106,"props":1259,"children":1260},{"style":990},[1261],{"type":50,"value":1039},{"type":45,"tag":53,"props":1263,"children":1264},{},[1265],{"type":45,"tag":86,"props":1266,"children":1267},{},[1268],{"type":50,"value":1269},"Python:",{"type":45,"tag":94,"props":1271,"children":1275},{"className":1272,"code":1273,"language":1274,"meta":99,"style":99},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","from aws_durable_execution_sdk_python import durable_execution, DurableContext\n\n@durable_execution\ndef handler(event: dict, context: DurableContext) -> dict:\n    result = context.step(lambda _: process_data(event), name='process')\n    return result\n","python",[1276],{"type":45,"tag":102,"props":1277,"children":1278},{"__ignoreMap":99},[1279,1287,1294,1302,1310,1318],{"type":45,"tag":106,"props":1280,"children":1281},{"class":108,"line":109},[1282],{"type":45,"tag":106,"props":1283,"children":1284},{},[1285],{"type":50,"value":1286},"from aws_durable_execution_sdk_python import durable_execution, DurableContext\n",{"type":45,"tag":106,"props":1288,"children":1289},{"class":108,"line":124},[1290],{"type":45,"tag":106,"props":1291,"children":1292},{"emptyLinePlaceholder":1045},[1293],{"type":50,"value":1048},{"type":45,"tag":106,"props":1295,"children":1296},{"class":108,"line":1051},[1297],{"type":45,"tag":106,"props":1298,"children":1299},{},[1300],{"type":50,"value":1301},"@durable_execution\n",{"type":45,"tag":106,"props":1303,"children":1304},{"class":108,"line":1134},[1305],{"type":45,"tag":106,"props":1306,"children":1307},{},[1308],{"type":50,"value":1309},"def handler(event: dict, context: DurableContext) -> dict:\n",{"type":45,"tag":106,"props":1311,"children":1312},{"class":108,"line":1230},[1313],{"type":45,"tag":106,"props":1314,"children":1315},{},[1316],{"type":50,"value":1317},"    result = context.step(lambda _: process_data(event), name='process')\n",{"type":45,"tag":106,"props":1319,"children":1320},{"class":108,"line":1247},[1321],{"type":45,"tag":106,"props":1322,"children":1323},{},[1324],{"type":50,"value":1325},"    return result\n",{"type":45,"tag":66,"props":1327,"children":1329},{"id":1328},"critical-rules",[1330],{"type":50,"value":1331},"Critical Rules",{"type":45,"tag":78,"props":1333,"children":1334},{},[1335,1345,1363,1373],{"type":45,"tag":82,"props":1336,"children":1337},{},[1338,1343],{"type":45,"tag":86,"props":1339,"children":1340},{},[1341],{"type":50,"value":1342},"All non-deterministic code MUST be in steps",{"type":50,"value":1344}," (Date.now, Math.random, API calls)",{"type":45,"tag":82,"props":1346,"children":1347},{},[1348,1353,1355,1361],{"type":45,"tag":86,"props":1349,"children":1350},{},[1351],{"type":50,"value":1352},"Cannot nest durable operations",{"type":50,"value":1354}," - use ",{"type":45,"tag":102,"props":1356,"children":1358},{"className":1357},[],[1359],{"type":50,"value":1360},"runInChildContext",{"type":50,"value":1362}," to group operations",{"type":45,"tag":82,"props":1364,"children":1365},{},[1366,1371],{"type":45,"tag":86,"props":1367,"children":1368},{},[1369],{"type":50,"value":1370},"Closure mutations are lost on replay",{"type":50,"value":1372}," - return values from steps",{"type":45,"tag":82,"props":1374,"children":1375},{},[1376,1381,1382,1388],{"type":45,"tag":86,"props":1377,"children":1378},{},[1379],{"type":50,"value":1380},"Side effects outside steps repeat",{"type":50,"value":1354},{"type":45,"tag":102,"props":1383,"children":1385},{"className":1384},[],[1386],{"type":50,"value":1387},"context.logger",{"type":50,"value":1389}," (replay-aware)",{"type":45,"tag":66,"props":1391,"children":1393},{"id":1392},"python-api-differences",[1394],{"type":50,"value":1395},"Python API Differences",{"type":45,"tag":53,"props":1397,"children":1398},{},[1399],{"type":50,"value":1400},"The Python SDK differs from TypeScript in several key areas:",{"type":45,"tag":151,"props":1402,"children":1403},{},[1404,1438,1454,1487],{"type":45,"tag":82,"props":1405,"children":1406},{},[1407,1412,1414,1420,1422,1428,1430,1436],{"type":45,"tag":86,"props":1408,"children":1409},{},[1410],{"type":50,"value":1411},"Steps",{"type":50,"value":1413},": Use ",{"type":45,"tag":102,"props":1415,"children":1417},{"className":1416},[],[1418],{"type":50,"value":1419},"@durable_step",{"type":50,"value":1421}," decorator + ",{"type":45,"tag":102,"props":1423,"children":1425},{"className":1424},[],[1426],{"type":50,"value":1427},"context.step(my_step(args))",{"type":50,"value":1429},", or inline ",{"type":45,"tag":102,"props":1431,"children":1433},{"className":1432},[],[1434],{"type":50,"value":1435},"context.step(lambda _: ..., name='...')",{"type":50,"value":1437},". Prefer the decorator for automatic step naming.",{"type":45,"tag":82,"props":1439,"children":1440},{},[1441,1446,1448],{"type":45,"tag":86,"props":1442,"children":1443},{},[1444],{"type":50,"value":1445},"Wait",{"type":50,"value":1447},": ",{"type":45,"tag":102,"props":1449,"children":1451},{"className":1450},[],[1452],{"type":50,"value":1453},"context.wait(duration=Duration.from_seconds(n), name='...')",{"type":45,"tag":82,"props":1455,"children":1456},{},[1457,1462,1463,1469,1471,1477,1479,1485],{"type":45,"tag":86,"props":1458,"children":1459},{},[1460],{"type":50,"value":1461},"Exceptions",{"type":50,"value":1447},{"type":45,"tag":102,"props":1464,"children":1466},{"className":1465},[],[1467],{"type":50,"value":1468},"ExecutionError",{"type":50,"value":1470}," (permanent), ",{"type":45,"tag":102,"props":1472,"children":1474},{"className":1473},[],[1475],{"type":50,"value":1476},"InvocationError",{"type":50,"value":1478}," (transient), ",{"type":45,"tag":102,"props":1480,"children":1482},{"className":1481},[],[1483],{"type":50,"value":1484},"CallbackError",{"type":50,"value":1486}," (callback failures)",{"type":45,"tag":82,"props":1488,"children":1489},{},[1490,1494,1495,1501,1503],{"type":45,"tag":86,"props":1491,"children":1492},{},[1493],{"type":50,"value":753},{"type":50,"value":1413},{"type":45,"tag":102,"props":1496,"children":1498},{"className":1497},[],[1499],{"type":50,"value":1500},"DurableFunctionTestRunner",{"type":50,"value":1502}," class directly - instantiate with handler, use context manager, call ",{"type":45,"tag":102,"props":1504,"children":1506},{"className":1505},[],[1507],{"type":50,"value":1508},"run(input=...)",{"type":45,"tag":66,"props":1510,"children":1512},{"id":1511},"invocation-requirements",[1513],{"type":50,"value":1514},"Invocation Requirements",{"type":45,"tag":53,"props":1516,"children":1517},{},[1518,1520,1525,1527,1533],{"type":50,"value":1519},"Durable functions ",{"type":45,"tag":86,"props":1521,"children":1522},{},[1523],{"type":50,"value":1524},"require qualified ARNs",{"type":50,"value":1526}," (version, alias, or ",{"type":45,"tag":102,"props":1528,"children":1530},{"className":1529},[],[1531],{"type":50,"value":1532},"$LATEST",{"type":50,"value":1534},"):",{"type":45,"tag":94,"props":1536,"children":1538},{"className":96,"code":1537,"language":98,"meta":99,"style":99},"# Valid\naws lambda invoke --function-name my-function:1 output.json\naws lambda invoke --function-name my-function:prod output.json\n\n# Invalid - will fail\naws lambda invoke --function-name my-function output.json\n",[1539],{"type":45,"tag":102,"props":1540,"children":1541},{"__ignoreMap":99},[1542,1551,1583,1611,1618,1626],{"type":45,"tag":106,"props":1543,"children":1544},{"class":108,"line":109},[1545],{"type":45,"tag":106,"props":1546,"children":1548},{"style":1547},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[1549],{"type":50,"value":1550},"# Valid\n",{"type":45,"tag":106,"props":1552,"children":1553},{"class":108,"line":124},[1554,1558,1563,1568,1573,1578],{"type":45,"tag":106,"props":1555,"children":1556},{"style":113},[1557],{"type":50,"value":22},{"type":45,"tag":106,"props":1559,"children":1560},{"style":118},[1561],{"type":50,"value":1562}," lambda",{"type":45,"tag":106,"props":1564,"children":1565},{"style":118},[1566],{"type":50,"value":1567}," invoke",{"type":45,"tag":106,"props":1569,"children":1570},{"style":118},[1571],{"type":50,"value":1572}," --function-name",{"type":45,"tag":106,"props":1574,"children":1575},{"style":118},[1576],{"type":50,"value":1577}," my-function:1",{"type":45,"tag":106,"props":1579,"children":1580},{"style":118},[1581],{"type":50,"value":1582}," output.json\n",{"type":45,"tag":106,"props":1584,"children":1585},{"class":108,"line":1051},[1586,1590,1594,1598,1602,1607],{"type":45,"tag":106,"props":1587,"children":1588},{"style":113},[1589],{"type":50,"value":22},{"type":45,"tag":106,"props":1591,"children":1592},{"style":118},[1593],{"type":50,"value":1562},{"type":45,"tag":106,"props":1595,"children":1596},{"style":118},[1597],{"type":50,"value":1567},{"type":45,"tag":106,"props":1599,"children":1600},{"style":118},[1601],{"type":50,"value":1572},{"type":45,"tag":106,"props":1603,"children":1604},{"style":118},[1605],{"type":50,"value":1606}," my-function:prod",{"type":45,"tag":106,"props":1608,"children":1609},{"style":118},[1610],{"type":50,"value":1582},{"type":45,"tag":106,"props":1612,"children":1613},{"class":108,"line":1134},[1614],{"type":45,"tag":106,"props":1615,"children":1616},{"emptyLinePlaceholder":1045},[1617],{"type":50,"value":1048},{"type":45,"tag":106,"props":1619,"children":1620},{"class":108,"line":1230},[1621],{"type":45,"tag":106,"props":1622,"children":1623},{"style":1547},[1624],{"type":50,"value":1625},"# Invalid - will fail\n",{"type":45,"tag":106,"props":1627,"children":1628},{"class":108,"line":1247},[1629,1633,1637,1641,1645,1650],{"type":45,"tag":106,"props":1630,"children":1631},{"style":113},[1632],{"type":50,"value":22},{"type":45,"tag":106,"props":1634,"children":1635},{"style":118},[1636],{"type":50,"value":1562},{"type":45,"tag":106,"props":1638,"children":1639},{"style":118},[1640],{"type":50,"value":1567},{"type":45,"tag":106,"props":1642,"children":1643},{"style":118},[1644],{"type":50,"value":1572},{"type":45,"tag":106,"props":1646,"children":1647},{"style":118},[1648],{"type":50,"value":1649}," my-function",{"type":45,"tag":106,"props":1651,"children":1652},{"style":118},[1653],{"type":50,"value":1582},{"type":45,"tag":59,"props":1655,"children":1657},{"id":1656},"iam-permissions",[1658],{"type":50,"value":1659},"IAM Permissions",{"type":45,"tag":53,"props":1661,"children":1662},{},[1663,1665,1671],{"type":50,"value":1664},"Your Lambda execution role MUST have the ",{"type":45,"tag":102,"props":1666,"children":1668},{"className":1667},[],[1669],{"type":50,"value":1670},"AWSLambdaBasicDurableExecutionRolePolicy",{"type":50,"value":1672}," managed policy attached. This includes:",{"type":45,"tag":151,"props":1674,"children":1675},{},[1676,1687,1698],{"type":45,"tag":82,"props":1677,"children":1678},{},[1679,1685],{"type":45,"tag":102,"props":1680,"children":1682},{"className":1681},[],[1683],{"type":50,"value":1684},"lambda:CheckpointDurableExecution",{"type":50,"value":1686}," - Persist execution state",{"type":45,"tag":82,"props":1688,"children":1689},{},[1690,1696],{"type":45,"tag":102,"props":1691,"children":1693},{"className":1692},[],[1694],{"type":50,"value":1695},"lambda:GetDurableExecutionState",{"type":50,"value":1697}," - Retrieve execution state",{"type":45,"tag":82,"props":1699,"children":1700},{},[1701],{"type":50,"value":1702},"CloudWatch Logs permissions",{"type":45,"tag":53,"props":1704,"children":1705},{},[1706],{"type":45,"tag":86,"props":1707,"children":1708},{},[1709],{"type":50,"value":1710},"Additional permissions needed for:",{"type":45,"tag":151,"props":1712,"children":1713},{},[1714,1731],{"type":45,"tag":82,"props":1715,"children":1716},{},[1717,1722,1723,1729],{"type":45,"tag":86,"props":1718,"children":1719},{},[1720],{"type":50,"value":1721},"Durable invokes",{"type":50,"value":1447},{"type":45,"tag":102,"props":1724,"children":1726},{"className":1725},[],[1727],{"type":50,"value":1728},"lambda:InvokeFunction",{"type":50,"value":1730}," on target function ARNs",{"type":45,"tag":82,"props":1732,"children":1733},{},[1734,1739,1741,1747,1749],{"type":45,"tag":86,"props":1735,"children":1736},{},[1737],{"type":50,"value":1738},"External callbacks",{"type":50,"value":1740},": Systems need ",{"type":45,"tag":102,"props":1742,"children":1744},{"className":1743},[],[1745],{"type":50,"value":1746},"lambda:SendDurableExecutionCallbackSuccess",{"type":50,"value":1748}," and ",{"type":45,"tag":102,"props":1750,"children":1752},{"className":1751},[],[1753],{"type":50,"value":1754},"lambda:SendDurableExecutionCallbackFailure",{"type":45,"tag":59,"props":1756,"children":1758},{"id":1757},"validation-guidelines",[1759],{"type":50,"value":1760},"Validation Guidelines",{"type":45,"tag":53,"props":1762,"children":1763},{},[1764],{"type":50,"value":1765},"When writing or reviewing durable function code, ALWAYS check for these replay model violations:",{"type":45,"tag":78,"props":1767,"children":1768},{},[1769,1793,1833,1843],{"type":45,"tag":82,"props":1770,"children":1771},{},[1772,1777,1778,1784,1785,1791],{"type":45,"tag":86,"props":1773,"children":1774},{},[1775],{"type":50,"value":1776},"Non-deterministic code outside steps",{"type":50,"value":1447},{"type":45,"tag":102,"props":1779,"children":1781},{"className":1780},[],[1782],{"type":50,"value":1783},"Date.now()",{"type":50,"value":520},{"type":45,"tag":102,"props":1786,"children":1788},{"className":1787},[],[1789],{"type":50,"value":1790},"Math.random()",{"type":50,"value":1792},", UUID generation, API calls, database queries must all be inside steps",{"type":45,"tag":82,"props":1794,"children":1795},{},[1796,1801,1803,1809,1810,1816,1817,1823,1825,1831],{"type":45,"tag":86,"props":1797,"children":1798},{},[1799],{"type":50,"value":1800},"Nested durable operations in step functions",{"type":50,"value":1802},": Cannot call ",{"type":45,"tag":102,"props":1804,"children":1806},{"className":1805},[],[1807],{"type":50,"value":1808},"context.step()",{"type":50,"value":520},{"type":45,"tag":102,"props":1811,"children":1813},{"className":1812},[],[1814],{"type":50,"value":1815},"context.wait()",{"type":50,"value":539},{"type":45,"tag":102,"props":1818,"children":1820},{"className":1819},[],[1821],{"type":50,"value":1822},"context.invoke()",{"type":50,"value":1824}," inside a step function — use ",{"type":45,"tag":102,"props":1826,"children":1828},{"className":1827},[],[1829],{"type":50,"value":1830},"context.runInChildContext()",{"type":50,"value":1832}," instead",{"type":45,"tag":82,"props":1834,"children":1835},{},[1836,1841],{"type":45,"tag":86,"props":1837,"children":1838},{},[1839],{"type":50,"value":1840},"Closure mutations that won't persist",{"type":50,"value":1842},": Variables mutated inside steps are NOT preserved across replays — return values from steps instead",{"type":45,"tag":82,"props":1844,"children":1845},{},[1846,1851,1852,1857],{"type":45,"tag":86,"props":1847,"children":1848},{},[1849],{"type":50,"value":1850},"Side effects outside steps that repeat on replay",{"type":50,"value":1413},{"type":45,"tag":102,"props":1853,"children":1855},{"className":1854},[],[1856],{"type":50,"value":1387},{"type":50,"value":1858}," for logging (it is replay-aware and deduplicates automatically)",{"type":45,"tag":53,"props":1860,"children":1861},{},[1862],{"type":50,"value":1863},"When implementing or modifying tests for durable functions, ALWAYS verify:",{"type":45,"tag":78,"props":1865,"children":1866},{},[1867,1872,1877,1882],{"type":45,"tag":82,"props":1868,"children":1869},{},[1870],{"type":50,"value":1871},"All operations have descriptive names",{"type":45,"tag":82,"props":1873,"children":1874},{},[1875],{"type":50,"value":1876},"Tests get operations by NAME, never by index",{"type":45,"tag":82,"props":1878,"children":1879},{},[1880],{"type":50,"value":1881},"Replay behavior is tested with multiple invocations",{"type":45,"tag":82,"props":1883,"children":1884},{},[1885,1887,1893],{"type":50,"value":1886},"Use ",{"type":45,"tag":102,"props":1888,"children":1890},{"className":1889},[],[1891],{"type":50,"value":1892},"LocalDurableTestRunner",{"type":50,"value":1894}," for local testing",{"type":45,"tag":66,"props":1896,"children":1898},{"id":1897},"mcp-server-configuration",[1899],{"type":50,"value":1900},"MCP Server Configuration",{"type":45,"tag":53,"props":1902,"children":1903},{},[1904,1909,1911,1917,1919,1925],{"type":45,"tag":86,"props":1905,"children":1906},{},[1907],{"type":50,"value":1908},"Write access is enabled by default.",{"type":50,"value":1910}," The plugin ships with ",{"type":45,"tag":102,"props":1912,"children":1914},{"className":1913},[],[1915],{"type":50,"value":1916},"--allow-write",{"type":50,"value":1918}," in ",{"type":45,"tag":102,"props":1920,"children":1922},{"className":1921},[],[1923],{"type":50,"value":1924},".mcp.json",{"type":50,"value":1926},", so the MCP server can create projects, generate IaC, and deploy on behalf of the user.",{"type":45,"tag":53,"props":1928,"children":1929},{},[1930,1932,1937,1939,1945,1947,1952],{"type":50,"value":1931},"Access to sensitive data (like Lambda and API Gateway logs) is ",{"type":45,"tag":86,"props":1933,"children":1934},{},[1935],{"type":50,"value":1936},"not",{"type":50,"value":1938}," enabled by default. To grant it, add ",{"type":45,"tag":102,"props":1940,"children":1942},{"className":1941},[],[1943],{"type":50,"value":1944},"--allow-sensitive-data-access",{"type":50,"value":1946}," to ",{"type":45,"tag":102,"props":1948,"children":1950},{"className":1949},[],[1951],{"type":50,"value":1924},{"type":50,"value":1164},{"type":45,"tag":59,"props":1954,"children":1956},{"id":1955},"resources",[1957],{"type":50,"value":1958},"Resources",{"type":45,"tag":151,"props":1960,"children":1961},{},[1962,1973,1983,1993],{"type":45,"tag":82,"props":1963,"children":1964},{},[1965],{"type":45,"tag":548,"props":1966,"children":1970},{"href":1967,"rel":1968},"https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-functions.html",[1969],"nofollow",[1971],{"type":50,"value":1972},"AWS Lambda durable functions Documentation",{"type":45,"tag":82,"props":1974,"children":1975},{},[1976],{"type":45,"tag":548,"props":1977,"children":1980},{"href":1978,"rel":1979},"https:\u002F\u002Fgithub.com\u002Faws\u002Faws-durable-execution-sdk-js",[1969],[1981],{"type":50,"value":1982},"JavaScript SDK Repository",{"type":45,"tag":82,"props":1984,"children":1985},{},[1986],{"type":45,"tag":548,"props":1987,"children":1990},{"href":1988,"rel":1989},"https:\u002F\u002Fgithub.com\u002Faws\u002Faws-durable-execution-sdk-python",[1969],[1991],{"type":50,"value":1992},"Python SDK Repository",{"type":45,"tag":82,"props":1994,"children":1995},{},[1996],{"type":45,"tag":548,"props":1997,"children":2000},{"href":1998,"rel":1999},"https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-managed-policy\u002Flatest\u002Freference\u002FAWSLambdaBasicDurableExecutionRolePolicy.html",[1969],[2001],{"type":50,"value":2002},"IAM Policy Reference",{"type":45,"tag":2004,"props":2005,"children":2006},"style",{},[2007],{"type":50,"value":2008},"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":2010,"total":2186},[2011,2030,2049,2059,2072,2085,2095,2105,2126,2141,2156,2171],{"slug":2012,"name":2012,"fn":2013,"description":2014,"org":2015,"tags":2016,"stars":2027,"repoUrl":2028,"updatedAt":2029},"agentcore-investigation","investigate Bedrock AgentCore runtime sessions","Investigate Bedrock AgentCore runtime sessions via CloudWatch Logs Insights — resolve session\u002Ftrace IDs, query OTEL spans, filter noise, build timelines. Use when debugging AgentCore agent sessions, tracing tool calls, or analyzing latency.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2017,2018,2021,2024],{"name":21,"slug":22,"type":16},{"name":2019,"slug":2020,"type":16},"Debugging","debugging",{"name":2022,"slug":2023,"type":16},"Logs","logs",{"name":2025,"slug":2026,"type":16},"Observability","observability",9427,"https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fmcp","2026-07-12T08:37:22.601527",{"slug":2031,"name":2032,"fn":2033,"description":2034,"org":2035,"tags":2036,"stars":2027,"repoUrl":2028,"updatedAt":2048},"amazon-aurora-dsql","amazon aurora dsql","build applications with Aurora DSQL","Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, load data, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL and PostgreSQL-to-DSQL schema conversion, FK replacement code generation, OCC retry patterns, ORM migration (Django\u002FHibernate\u002FRails), DDL operations, query plan explainability, SQL compatibility validation, and bulk data loading. Triggers on phrases like: DSQL, Aurora DSQL, create DSQL table, DSQL schema, migrate to DSQL, distributed SQL database, serverless PostgreSQL-compatible database, DSQL query plan, DSQL EXPLAIN ANALYZE, why is my DSQL query slow, DSQL foreign key, DSQL OCC retry, DSQL multi-region, load into DSQL, load CSV into DSQL, bulk load DSQL, aurora-dsql-loader.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2037,2040,2041,2044,2045],{"name":2038,"slug":2039,"type":16},"Aurora","aurora",{"name":21,"slug":22,"type":16},{"name":2042,"slug":2043,"type":16},"Database","database",{"name":18,"slug":19,"type":16},{"name":2046,"slug":2047,"type":16},"SQL","sql","2026-07-12T08:36:45.053393",{"slug":2050,"name":2051,"fn":2033,"description":2034,"org":2052,"tags":2053,"stars":2027,"repoUrl":2028,"updatedAt":2058},"aurora-dsql","aurora dsql",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2054,2055,2056,2057],{"name":21,"slug":22,"type":16},{"name":2042,"slug":2043,"type":16},{"name":18,"slug":19,"type":16},{"name":2046,"slug":2047,"type":16},"2026-07-12T08:36:42.694299",{"slug":2060,"name":2061,"fn":2033,"description":2034,"org":2062,"tags":2063,"stars":2027,"repoUrl":2028,"updatedAt":2071},"aws-dsql","aws dsql",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2064,2065,2066,2069,2070],{"name":21,"slug":22,"type":16},{"name":2042,"slug":2043,"type":16},{"name":2067,"slug":2068,"type":16},"Migration","migration",{"name":18,"slug":19,"type":16},{"name":2046,"slug":2047,"type":16},"2026-07-12T08:36:38.584057",{"slug":2073,"name":2074,"fn":2033,"description":2034,"org":2075,"tags":2076,"stars":2027,"repoUrl":2028,"updatedAt":2084},"distributed-postgres","distributed postgres",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2077,2078,2079,2082,2083],{"name":21,"slug":22,"type":16},{"name":2042,"slug":2043,"type":16},{"name":2080,"slug":2081,"type":16},"PostgreSQL","postgresql",{"name":18,"slug":19,"type":16},{"name":2046,"slug":2047,"type":16},"2026-07-12T08:36:46.530743",{"slug":2086,"name":2087,"fn":2033,"description":2034,"org":2088,"tags":2089,"stars":2027,"repoUrl":2028,"updatedAt":2094},"distributed-sql","distributed sql",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2090,2091,2092,2093],{"name":21,"slug":22,"type":16},{"name":2042,"slug":2043,"type":16},{"name":18,"slug":19,"type":16},{"name":2046,"slug":2047,"type":16},"2026-07-12T08:36:48.104182",{"slug":2096,"name":2096,"fn":2033,"description":2034,"org":2097,"tags":2098,"stars":2027,"repoUrl":2028,"updatedAt":2104},"dsql",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2099,2100,2101,2102,2103],{"name":21,"slug":22,"type":16},{"name":2042,"slug":2043,"type":16},{"name":2067,"slug":2068,"type":16},{"name":18,"slug":19,"type":16},{"name":2046,"slug":2047,"type":16},"2026-07-12T08:36:36.374512",{"slug":2106,"name":2106,"fn":2107,"description":2108,"org":2109,"tags":2110,"stars":2123,"repoUrl":2124,"updatedAt":2125},"cost-efficiency-analyzer","analyze cost efficiency and expenses","Analyzes cost structure, cost efficiency, and expense management from P&L data. Use when the user asks about costs, expenses, COGS, operating expenses, cost ratios, cost control, spending efficiency, margin compression from cost side, or wants to understand where money is going. Also use for \"are we spending too much\", \"cost breakdown\", \"expense analysis\", or \"how efficient are our operations\". NOT for revenue or top-line analysis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2111,2114,2117,2120],{"name":2112,"slug":2113,"type":16},"Accounting","accounting",{"name":2115,"slug":2116,"type":16},"Analytics","analytics",{"name":2118,"slug":2119,"type":16},"Cost Optimization","cost-optimization",{"name":2121,"slug":2122,"type":16},"Finance","finance",3176,"https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fagentcore-samples","2026-07-12T08:40:03.29555",{"slug":2127,"name":2127,"fn":2128,"description":2129,"org":2130,"tags":2131,"stars":2123,"repoUrl":2124,"updatedAt":2140},"executive-financial-briefing","generate executive financial briefings","Generates a concise executive-level financial briefing or summary suitable for a CEO, CFO, or board presentation. Use when the user asks for a summary, briefing, executive summary, board update, financial overview, financial health check, or \"how is the business doing\". Covers the full P&L picture in one page. Also use for \"give me the highlights\", \"what do I need to know\", or \"quick financial update\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2132,2133,2134,2137],{"name":21,"slug":22,"type":16},{"name":2121,"slug":2122,"type":16},{"name":2135,"slug":2136,"type":16},"Management","management",{"name":2138,"slug":2139,"type":16},"Reporting","reporting","2026-07-12T08:40:02.066471",{"slug":2142,"name":2142,"fn":2143,"description":2144,"org":2145,"tags":2146,"stars":2123,"repoUrl":2124,"updatedAt":2155},"multi-quarter-trend-analysis","analyze multi-quarter financial trends","Analyzes financial trends across multiple quarters by comparing P&L metrics over time. Use when the user wants to see trends, patterns, trajectories, or directional movement across 3 or more quarters. Also use for \"how are we trending\", \"show me the trend\", \"track performance over time\", \"quarter over quarter comparison across all quarters\", or any multi-period longitudinal analysis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2147,2148,2149,2152],{"name":2115,"slug":2116,"type":16},{"name":2121,"slug":2122,"type":16},{"name":2150,"slug":2151,"type":16},"Financial Statements","financial-statements",{"name":2153,"slug":2154,"type":16},"Variance Analysis","variance-analysis","2026-07-12T08:40:00.79141",{"slug":2157,"name":2157,"fn":2158,"description":2159,"org":2160,"tags":2161,"stars":2123,"repoUrl":2124,"updatedAt":2170},"pdf","process and manipulate PDF documents","Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text\u002Ftables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting\u002Fdecrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2162,2165,2168],{"name":2163,"slug":2164,"type":16},"Automation","automation",{"name":2166,"slug":2167,"type":16},"Documents","documents",{"name":2169,"slug":2157,"type":16},"PDF","2026-07-12T08:41:44.135656",{"slug":2172,"name":2172,"fn":2173,"description":2174,"org":2175,"tags":2176,"stars":2123,"repoUrl":2124,"updatedAt":2185},"quarterly-kpi-calculator","calculate quarterly financial KPIs","Calculates quarterly financial KPIs from P&L data. P&L figures can be provided directly by the user or fetched from the financial data MCP server. Use when the user wants KPI calculations such as Gross Margin %, EBITDA Margin %, Operating Expense Ratio, or Revenue Growth % QoQ. Also use for quarterly performance review, P&L analysis, or interpreting financial ratios against benchmarks.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2177,2178,2181,2182],{"name":2112,"slug":2113,"type":16},{"name":2179,"slug":2180,"type":16},"Data Analysis","data-analysis",{"name":2121,"slug":2122,"type":16},{"name":2183,"slug":2184,"type":16},"KPI","kpi","2026-07-12T08:39:59.54971",150,{"items":2188,"total":2280},[2189,2206,2222,2234,2249,2260,2266],{"slug":2190,"name":2190,"fn":2191,"description":2192,"org":2193,"tags":2194,"stars":23,"repoUrl":24,"updatedAt":2205},"amazon-location-service","integrate Amazon Location Service maps","Integrates Amazon Location Service APIs for AWS applications. Use this skill when users want to add maps (interactive MapLibre or static images); geocode addresses to coordinates or reverse geocode coordinates to addresses; calculate routes, travel times, or service areas; find places and businesses through text search, nearby search, or autocomplete suggestions; retrieve detailed place information including hours, contacts, and addresses; monitor geographical boundaries with geofences; or track device locations. Covers authentication, SDK integration, and all Amazon Location Service capabilities.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2195,2198,2199,2202],{"name":2196,"slug":2197,"type":16},"API Development","api-development",{"name":21,"slug":22,"type":16},{"name":2200,"slug":2201,"type":16},"Maps","maps",{"name":2203,"slug":2204,"type":16},"Navigation","navigation","2026-07-12T08:39:49.88311",{"slug":2207,"name":2207,"fn":2208,"description":2209,"org":2210,"tags":2211,"stars":23,"repoUrl":24,"updatedAt":2221},"amplify-workflow","build and deploy apps with AWS Amplify","Build and deploy full-stack web and mobile apps with AWS Amplify Gen2 (TypeScript code-first). Covers auth (Cognito), data (AppSync\u002FDynamoDB including schema modeling, enum types, relationships, authorization rules), storage (S3), functions, APIs, and AI (Amplify AI Kit with Bedrock). Supports React, Next.js, Vue, Angular, React Native, Flutter, Swift, and Android. Always use this skill for Amplify Gen2 topics — even for questions you think you know — it contains validated, version-specific patterns that prevent common mistakes. TRIGGER when: user mentions Amplify Gen2; project has amplify\u002F directory or amplify_outputs; code imports @aws-amplify packages; user asks about defineBackend, defineAuth, defineData, defineStorage, or npx ampx. SKIP: Amplify Gen1 (amplify CLI v6), standalone SAM\u002FCDK without Amplify (use aws-serverless), direct Bedrock without Amplify AI Kit (use bedrock).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2212,2215,2216,2217,2219],{"name":2213,"slug":2214,"type":16},"Auth","auth",{"name":21,"slug":22,"type":16},{"name":2042,"slug":2043,"type":16},{"name":792,"slug":2218,"type":16},"deployment",{"name":2220,"slug":974,"type":16},"TypeScript","2026-07-12T08:39:43.500162",{"slug":2223,"name":2223,"fn":2224,"description":2225,"org":2226,"tags":2227,"stars":23,"repoUrl":24,"updatedAt":2233},"api-gateway","build and manage Amazon API Gateway APIs","Build, manage, and operate APIs with Amazon API Gateway (REST, HTTP, and WebSocket). Triggers on phrases like: API Gateway, REST API, HTTP API, WebSocket API, custom domain, Lambda authorizer, usage plan, throttling, CORS, VPC link, private API. Also covers troubleshooting API Gateway errors (4xx, 5xx, timeout, CORS failures) and IaC templates containing API Gateway resources. For general REST API design unrelated to AWS, do not trigger.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2228,2229,2230],{"name":2196,"slug":2197,"type":16},{"name":21,"slug":22,"type":16},{"name":2231,"slug":2232,"type":16},"REST API","rest-api","2026-07-12T08:39:00.149339",{"slug":2235,"name":2235,"fn":2236,"description":2237,"org":2238,"tags":2239,"stars":23,"repoUrl":24,"updatedAt":2248},"aws-architecture-diagram","generate AWS architecture diagrams","Generate validated AWS architecture diagrams as draw.io XML using official AWS4 icon libraries. Use this skill whenever the user wants to create, generate, or design AWS architecture diagrams, cloud infrastructure diagrams, or system design visuals. Also triggers for requests to visualize existing infrastructure from CloudFormation, CDK, or Terraform code. Supports two modes: analyze an existing codebase to auto-generate diagrams, or brainstorm interactively from scratch. Exports .drawio files with optional PNG\u002FSVG\u002FPDF export via draw.io desktop CLI.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2240,2241,2242,2245],{"name":14,"slug":15,"type":16},{"name":21,"slug":22,"type":16},{"name":2243,"slug":2244,"type":16},"Design","design",{"name":2246,"slug":2247,"type":16},"Diagrams","diagrams","2026-07-12T08:37:11.012278",{"slug":2250,"name":2250,"fn":2251,"description":2252,"org":2253,"tags":2254,"stars":23,"repoUrl":24,"updatedAt":2259},"aws-lambda","build and deploy AWS Lambda functions","Design, build, deploy, test, and debug serverless applications with AWS Lambda. Triggers on phrases like: Lambda function, event source, serverless application, API Gateway, EventBridge, Step Functions, serverless API, event-driven architecture, Lambda trigger. For deploying non-serverless apps to AWS, use deploy-on-aws plugin instead.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2255,2256,2257,2258],{"name":2196,"slug":2197,"type":16},{"name":21,"slug":22,"type":16},{"name":792,"slug":2218,"type":16},{"name":18,"slug":19,"type":16},"2026-07-12T08:38:58.598492",{"slug":4,"name":4,"fn":5,"description":6,"org":2261,"tags":2262,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2263,2264,2265],{"name":14,"slug":15,"type":16},{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"slug":2267,"name":2267,"fn":2268,"description":2269,"org":2270,"tags":2271,"stars":23,"repoUrl":24,"updatedAt":2279},"aws-lambda-managed-instances","configure AWS Lambda Managed Instances","Evaluate, configure, and migrate workloads to AWS Lambda Managed Instances (LMI). Triggers on: Lambda Managed Instances, LMI, capacity provider, multi-concurrency Lambda, dedicated instance Lambda, EC2-backed Lambda, cold start elimination, Graviton Lambda, instance type for Lambda, scheduled scaling for LMI, Lambda cost optimization with Reserved Instances or Savings Plans. Also trigger when users describe high-volume predictable workloads seeking cost savings, want to scale LMI capacity on a schedule, or compare Lambda vs EC2 for steady-state traffic. For standard Lambda without LMI, use the aws-lambda skill instead.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2272,2273,2274,2276],{"name":21,"slug":22,"type":16},{"name":792,"slug":2218,"type":16},{"name":2275,"slug":828,"type":16},"Infrastructure",{"name":2277,"slug":2278,"type":16},"Performance","performance","2026-07-12T08:39:07.007071",33]