[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-aws-aws-lambda-durable-functions":3,"mdc-lp93ah-key":35,"related-repo-aws-aws-lambda-durable-functions":1701,"related-org-aws-aws-lambda-durable-functions":1806},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":24,"repoUrl":25,"updatedAt":26,"license":27,"forks":28,"topics":29,"repo":30,"sourceUrl":33,"mdContent":34},"aws-lambda-durable-functions","build resilient applications with AWS Lambda","Builds 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, durable execution, workflow orchestration, state machines, retry\u002Fcheckpoint patterns, long-running stateful Lambda functions, saga pattern, human-in-the-loop callbacks, reliable serverless applications, context.step, context.wait, context.invoke, context.runInChildContext, withDurableExecution, DurableContext, UnrecoverableInvocationError, durable-execution-sdk, qualified ARN invocation, and durable handler replay.",{"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,22],{"name":13,"slug":14,"type":15},"Backend","backend","tag",{"name":17,"slug":18,"type":15},"Orchestration","orchestration",{"name":20,"slug":21,"type":15},"Serverless","serverless",{"name":23,"slug":8,"type":15},"AWS",1822,"https:\u002F\u002Fgithub.com\u002Faws\u002Fagent-toolkit-for-aws","2026-07-22T05:35:56.423408",null,157,[],{"repoUrl":25,"stars":24,"forks":28,"topics":31,"description":32},[],"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-lambda-durable-functions","---\nname: aws-lambda-durable-functions\ndescription: Builds 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, durable execution, workflow orchestration, state machines, retry\u002Fcheckpoint patterns, long-running stateful Lambda functions, saga pattern, human-in-the-loop callbacks, reliable serverless applications, context.step, context.wait, context.invoke, context.runInChildContext, withDurableExecution, DurableContext, UnrecoverableInvocationError, durable-execution-sdk, qualified ARN invocation, and durable handler replay.\nversion: 1\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**Works best with** the [AWS MCP server](https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-mcp\u002F) but is not required. All AWS interactions in this skill use standard AWS CLI commands that work in any environment with configured AWS credentials.\n\n## Critical Rules\n\nRead these before writing any code. Each one is a constraint that will silently break a function if violated.\n\n1. **Durable execution must be enabled at function creation time — it cannot be retrofitted.** A new Lambda function must be created with durable execution turned on. Migrate the logic into the new function; do not attempt to install the SDK and wrap the handler of the existing function and expect it to work.\n2. **Durable functions must be invoked with a qualified ARN** — a specific version, an alias, or the literal `$LATEST` suffix. An unqualified function name will fail. See the *Invocation Requirements* section below for examples.\n3. **Durable operations cannot be nested.** You cannot call `context.step()`, `context.wait()`, or `context.invoke()` from inside another step's callback. Use `context.runInChildContext()` to group operations instead.\n4. **All non-deterministic code must run inside steps.** `Date.now()`, `Math.random()`, UUID generation, API calls, and database queries outside a step will produce different values on replay and corrupt execution state.\n5. **Closure mutations are lost on replay** - return values from steps\n6. **Side effects outside steps repeat** - use `context.logger` (replay-aware)\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### 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:live 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## Security Considerations\n\n- **Checkpoint data encryption**: Execution state is persisted automatically. Enable KMS encryption on associated CloudWatch Log Groups to protect checkpointed data at rest.\n- **Sensitive data in step results**: Step return values are checkpointed and persisted. Do not return secrets, raw credentials, or PII from steps — store sensitive data in Secrets Manager or SSM Parameter Store and return references instead.\n- **Input validation**: Validate and sanitize event payloads at the handler entry point before passing data to steps.\n- **Credential management**: Retrieve secrets from AWS Secrets Manager or SSM Parameter Store within steps.\n- **Callback payload validation**: Data received via `waitForCallback` originates from external systems — validate and sanitize before processing.\n- **Logging**: Avoid `DEBUG` log level in non-development environments as it may expose step results and execution state. Enable CloudWatch Logs encryption with KMS.\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":36,"body":38},{"name":4,"description":6,"version":37},1,{"type":39,"children":40},"root",[41,49,55,77,84,89,226,232,237,677,683,690,698,998,1006,1062,1068,1073,1181,1186,1205,1326,1332,1345,1375,1383,1427,1433,1438,1525,1530,1561,1567,1646,1652,1695],{"type":42,"tag":43,"props":44,"children":45},"element","h1",{"id":4},[46],{"type":47,"value":48},"text","AWS Lambda durable functions",{"type":42,"tag":50,"props":51,"children":52},"p",{},[53],{"type":47,"value":54},"Build resilient multi-step applications and AI workflows that can execute for up to 1 year while maintaining reliable progress despite interruptions.",{"type":42,"tag":50,"props":56,"children":57},{},[58,64,66,75],{"type":42,"tag":59,"props":60,"children":61},"strong",{},[62],{"type":47,"value":63},"Works best with",{"type":47,"value":65}," the ",{"type":42,"tag":67,"props":68,"children":72},"a",{"href":69,"rel":70},"https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-mcp\u002F",[71],"nofollow",[73],{"type":47,"value":74},"AWS MCP server",{"type":47,"value":76}," but is not required. All AWS interactions in this skill use standard AWS CLI commands that work in any environment with configured AWS credentials.",{"type":42,"tag":78,"props":79,"children":81},"h2",{"id":80},"critical-rules",[82],{"type":47,"value":83},"Critical Rules",{"type":42,"tag":50,"props":85,"children":86},{},[87],{"type":47,"value":88},"Read these before writing any code. Each one is a constraint that will silently break a function if violated.",{"type":42,"tag":90,"props":91,"children":92},"ol",{},[93,104,131,173,198,208],{"type":42,"tag":94,"props":95,"children":96},"li",{},[97,102],{"type":42,"tag":59,"props":98,"children":99},{},[100],{"type":47,"value":101},"Durable execution must be enabled at function creation time — it cannot be retrofitted.",{"type":47,"value":103}," A new Lambda function must be created with durable execution turned on. Migrate the logic into the new function; do not attempt to install the SDK and wrap the handler of the existing function and expect it to work.",{"type":42,"tag":94,"props":105,"children":106},{},[107,112,114,121,123,129],{"type":42,"tag":59,"props":108,"children":109},{},[110],{"type":47,"value":111},"Durable functions must be invoked with a qualified ARN",{"type":47,"value":113}," — a specific version, an alias, or the literal ",{"type":42,"tag":115,"props":116,"children":118},"code",{"className":117},[],[119],{"type":47,"value":120},"$LATEST",{"type":47,"value":122}," suffix. An unqualified function name will fail. See the ",{"type":42,"tag":124,"props":125,"children":126},"em",{},[127],{"type":47,"value":128},"Invocation Requirements",{"type":47,"value":130}," section below for examples.",{"type":42,"tag":94,"props":132,"children":133},{},[134,139,141,147,149,155,157,163,165,171],{"type":42,"tag":59,"props":135,"children":136},{},[137],{"type":47,"value":138},"Durable operations cannot be nested.",{"type":47,"value":140}," You cannot call ",{"type":42,"tag":115,"props":142,"children":144},{"className":143},[],[145],{"type":47,"value":146},"context.step()",{"type":47,"value":148},", ",{"type":42,"tag":115,"props":150,"children":152},{"className":151},[],[153],{"type":47,"value":154},"context.wait()",{"type":47,"value":156},", or ",{"type":42,"tag":115,"props":158,"children":160},{"className":159},[],[161],{"type":47,"value":162},"context.invoke()",{"type":47,"value":164}," from inside another step's callback. Use ",{"type":42,"tag":115,"props":166,"children":168},{"className":167},[],[169],{"type":47,"value":170},"context.runInChildContext()",{"type":47,"value":172}," to group operations instead.",{"type":42,"tag":94,"props":174,"children":175},{},[176,181,183,189,190,196],{"type":42,"tag":59,"props":177,"children":178},{},[179],{"type":47,"value":180},"All non-deterministic code must run inside steps.",{"type":47,"value":182}," ",{"type":42,"tag":115,"props":184,"children":186},{"className":185},[],[187],{"type":47,"value":188},"Date.now()",{"type":47,"value":148},{"type":42,"tag":115,"props":191,"children":193},{"className":192},[],[194],{"type":47,"value":195},"Math.random()",{"type":47,"value":197},", UUID generation, API calls, and database queries outside a step will produce different values on replay and corrupt execution state.",{"type":42,"tag":94,"props":199,"children":200},{},[201,206],{"type":42,"tag":59,"props":202,"children":203},{},[204],{"type":47,"value":205},"Closure mutations are lost on replay",{"type":47,"value":207}," - return values from steps",{"type":42,"tag":94,"props":209,"children":210},{},[211,216,218,224],{"type":42,"tag":59,"props":212,"children":213},{},[214],{"type":47,"value":215},"Side effects outside steps repeat",{"type":47,"value":217}," - use ",{"type":42,"tag":115,"props":219,"children":221},{"className":220},[],[222],{"type":47,"value":223},"context.logger",{"type":47,"value":225}," (replay-aware)",{"type":42,"tag":78,"props":227,"children":229},{"id":228},"when-to-load-reference-files",[230],{"type":47,"value":231},"When to Load Reference Files",{"type":42,"tag":50,"props":233,"children":234},{},[235],{"type":47,"value":236},"Load the appropriate reference file based on what the user is working on:",{"type":42,"tag":238,"props":239,"children":240},"ul",{},[241,281,308,335,374,407,440,473,512,563,602],{"type":42,"tag":94,"props":242,"children":243},{},[244,249,250,255,256,261,262,267,268,273,275],{"type":42,"tag":59,"props":245,"children":246},{},[247],{"type":47,"value":248},"Getting started",{"type":47,"value":148},{"type":42,"tag":59,"props":251,"children":252},{},[253],{"type":47,"value":254},"basic setup",{"type":47,"value":148},{"type":42,"tag":59,"props":257,"children":258},{},[259],{"type":47,"value":260},"example",{"type":47,"value":148},{"type":42,"tag":59,"props":263,"children":264},{},[265],{"type":47,"value":266},"ESLint",{"type":47,"value":156},{"type":42,"tag":59,"props":269,"children":270},{},[271],{"type":47,"value":272},"Jest setup",{"type":47,"value":274}," -> see ",{"type":42,"tag":67,"props":276,"children":278},{"href":277},"references\u002Fgetting-started.md",[279],{"type":47,"value":280},"getting-started.md",{"type":42,"tag":94,"props":282,"children":283},{},[284,289,290,295,296,301,302],{"type":42,"tag":59,"props":285,"children":286},{},[287],{"type":47,"value":288},"Understanding replay model",{"type":47,"value":148},{"type":42,"tag":59,"props":291,"children":292},{},[293],{"type":47,"value":294},"determinism",{"type":47,"value":156},{"type":42,"tag":59,"props":297,"children":298},{},[299],{"type":47,"value":300},"non-deterministic errors",{"type":47,"value":274},{"type":42,"tag":67,"props":303,"children":305},{"href":304},"references\u002Freplay-model-rules.md",[306],{"type":47,"value":307},"replay-model-rules.md",{"type":42,"tag":94,"props":309,"children":310},{},[311,316,317,322,323,328,329],{"type":42,"tag":59,"props":312,"children":313},{},[314],{"type":47,"value":315},"Creating steps",{"type":47,"value":148},{"type":42,"tag":59,"props":318,"children":319},{},[320],{"type":47,"value":321},"atomic operations",{"type":47,"value":156},{"type":42,"tag":59,"props":324,"children":325},{},[326],{"type":47,"value":327},"retry logic",{"type":47,"value":274},{"type":42,"tag":67,"props":330,"children":332},{"href":331},"references\u002Fstep-operations.md",[333],{"type":47,"value":334},"step-operations.md",{"type":42,"tag":94,"props":336,"children":337},{},[338,343,344,349,350,355,356,361,362,367,368],{"type":42,"tag":59,"props":339,"children":340},{},[341],{"type":47,"value":342},"Waiting",{"type":47,"value":148},{"type":42,"tag":59,"props":345,"children":346},{},[347],{"type":47,"value":348},"delays",{"type":47,"value":148},{"type":42,"tag":59,"props":351,"children":352},{},[353],{"type":47,"value":354},"callbacks",{"type":47,"value":148},{"type":42,"tag":59,"props":357,"children":358},{},[359],{"type":47,"value":360},"external systems",{"type":47,"value":156},{"type":42,"tag":59,"props":363,"children":364},{},[365],{"type":47,"value":366},"polling",{"type":47,"value":274},{"type":42,"tag":67,"props":369,"children":371},{"href":370},"references\u002Fwait-operations.md",[372],{"type":47,"value":373},"wait-operations.md",{"type":42,"tag":94,"props":375,"children":376},{},[377,382,383,388,389,394,395,400,401],{"type":42,"tag":59,"props":378,"children":379},{},[380],{"type":47,"value":381},"Parallel execution",{"type":47,"value":148},{"type":42,"tag":59,"props":384,"children":385},{},[386],{"type":47,"value":387},"map operations",{"type":47,"value":148},{"type":42,"tag":59,"props":390,"children":391},{},[392],{"type":47,"value":393},"batch processing",{"type":47,"value":156},{"type":42,"tag":59,"props":396,"children":397},{},[398],{"type":47,"value":399},"concurrency",{"type":47,"value":274},{"type":42,"tag":67,"props":402,"children":404},{"href":403},"references\u002Fconcurrent-operations.md",[405],{"type":47,"value":406},"concurrent-operations.md",{"type":42,"tag":94,"props":408,"children":409},{},[410,415,416,421,422,427,428,433,434],{"type":42,"tag":59,"props":411,"children":412},{},[413],{"type":47,"value":414},"Error handling",{"type":47,"value":148},{"type":42,"tag":59,"props":417,"children":418},{},[419],{"type":47,"value":420},"retry strategies",{"type":47,"value":148},{"type":42,"tag":59,"props":423,"children":424},{},[425],{"type":47,"value":426},"saga pattern",{"type":47,"value":156},{"type":42,"tag":59,"props":429,"children":430},{},[431],{"type":47,"value":432},"compensating transactions",{"type":47,"value":274},{"type":42,"tag":67,"props":435,"children":437},{"href":436},"references\u002Ferror-handling.md",[438],{"type":47,"value":439},"error-handling.md",{"type":42,"tag":94,"props":441,"children":442},{},[443,448,449,454,455,460,461,466,467],{"type":42,"tag":59,"props":444,"children":445},{},[446],{"type":47,"value":447},"Advanced error handling",{"type":47,"value":148},{"type":42,"tag":59,"props":450,"children":451},{},[452],{"type":47,"value":453},"timeout handling",{"type":47,"value":148},{"type":42,"tag":59,"props":456,"children":457},{},[458],{"type":47,"value":459},"circuit breakers",{"type":47,"value":156},{"type":42,"tag":59,"props":462,"children":463},{},[464],{"type":47,"value":465},"conditional retries",{"type":47,"value":274},{"type":42,"tag":67,"props":468,"children":470},{"href":469},"references\u002Fadvanced-error-handling.md",[471],{"type":47,"value":472},"advanced-error-handling.md",{"type":42,"tag":94,"props":474,"children":475},{},[476,481,482,487,488,493,494,499,500,505,506],{"type":42,"tag":59,"props":477,"children":478},{},[479],{"type":47,"value":480},"Testing",{"type":47,"value":148},{"type":42,"tag":59,"props":483,"children":484},{},[485],{"type":47,"value":486},"local testing",{"type":47,"value":148},{"type":42,"tag":59,"props":489,"children":490},{},[491],{"type":47,"value":492},"cloud testing",{"type":47,"value":148},{"type":42,"tag":59,"props":495,"children":496},{},[497],{"type":47,"value":498},"test runner",{"type":47,"value":156},{"type":42,"tag":59,"props":501,"children":502},{},[503],{"type":47,"value":504},"flaky tests",{"type":47,"value":274},{"type":42,"tag":67,"props":507,"children":509},{"href":508},"references\u002Ftesting-patterns.md",[510],{"type":47,"value":511},"testing-patterns.md",{"type":42,"tag":94,"props":513,"children":514},{},[515,520,521,526,527,532,533,538,539,544,545,550,551,556,557],{"type":42,"tag":59,"props":516,"children":517},{},[518],{"type":47,"value":519},"Deployment",{"type":47,"value":148},{"type":42,"tag":59,"props":522,"children":523},{},[524],{"type":47,"value":525},"CloudFormation",{"type":47,"value":148},{"type":42,"tag":59,"props":528,"children":529},{},[530],{"type":47,"value":531},"CDK",{"type":47,"value":148},{"type":42,"tag":59,"props":534,"children":535},{},[536],{"type":47,"value":537},"SAM",{"type":47,"value":148},{"type":42,"tag":59,"props":540,"children":541},{},[542],{"type":47,"value":543},"log groups",{"type":47,"value":148},{"type":42,"tag":59,"props":546,"children":547},{},[548],{"type":47,"value":549},"deploy",{"type":47,"value":156},{"type":42,"tag":59,"props":552,"children":553},{},[554],{"type":47,"value":555},"infrastructure",{"type":47,"value":274},{"type":42,"tag":67,"props":558,"children":560},{"href":559},"references\u002Fdeployment-iac.md",[561],{"type":47,"value":562},"deployment-iac.md",{"type":42,"tag":94,"props":564,"children":565},{},[566,571,572,577,578,583,584,589,590,595,596],{"type":42,"tag":59,"props":567,"children":568},{},[569],{"type":47,"value":570},"Advanced patterns",{"type":47,"value":148},{"type":42,"tag":59,"props":573,"children":574},{},[575],{"type":47,"value":576},"GenAI agents",{"type":47,"value":148},{"type":42,"tag":59,"props":579,"children":580},{},[581],{"type":47,"value":582},"completion policies",{"type":47,"value":148},{"type":42,"tag":59,"props":585,"children":586},{},[587],{"type":47,"value":588},"step semantics",{"type":47,"value":156},{"type":42,"tag":59,"props":591,"children":592},{},[593],{"type":47,"value":594},"custom serialization",{"type":47,"value":274},{"type":42,"tag":67,"props":597,"children":599},{"href":598},"references\u002Fadvanced-patterns.md",[600],{"type":47,"value":601},"advanced-patterns.md",{"type":42,"tag":94,"props":603,"children":604},{},[605,610,611,616,617,622,623,628,629,634,635,640,641,646,647,652,653,658,659,664,665,670,671],{"type":42,"tag":59,"props":606,"children":607},{},[608],{"type":47,"value":609},"troubleshooting",{"type":47,"value":148},{"type":42,"tag":59,"props":612,"children":613},{},[614],{"type":47,"value":615},"stuck execution",{"type":47,"value":148},{"type":42,"tag":59,"props":618,"children":619},{},[620],{"type":47,"value":621},"failed execution",{"type":47,"value":148},{"type":42,"tag":59,"props":624,"children":625},{},[626],{"type":47,"value":627},"debug execution ID",{"type":47,"value":148},{"type":42,"tag":59,"props":630,"children":631},{},[632],{"type":47,"value":633},"execution history",{"type":47,"value":148},{"type":42,"tag":59,"props":636,"children":637},{},[638],{"type":47,"value":639},"execution error",{"type":47,"value":148},{"type":42,"tag":59,"props":642,"children":643},{},[644],{"type":47,"value":645},"why did my execution fail",{"type":47,"value":148},{"type":42,"tag":59,"props":648,"children":649},{},[650],{"type":47,"value":651},"execution timed out",{"type":47,"value":148},{"type":42,"tag":59,"props":654,"children":655},{},[656],{"type":47,"value":657},"callback not received",{"type":47,"value":148},{"type":42,"tag":59,"props":660,"children":661},{},[662],{"type":47,"value":663},"diagnose execution",{"type":47,"value":156},{"type":42,"tag":59,"props":666,"children":667},{},[668],{"type":47,"value":669},"root cause execution",{"type":47,"value":274},{"type":42,"tag":67,"props":672,"children":674},{"href":673},"references\u002Ftroubleshooting-executions.md",[675],{"type":47,"value":676},"troubleshooting-executions.md",{"type":42,"tag":78,"props":678,"children":680},{"id":679},"quick-reference",[681],{"type":47,"value":682},"Quick Reference",{"type":42,"tag":684,"props":685,"children":687},"h3",{"id":686},"basic-handler-pattern",[688],{"type":47,"value":689},"Basic Handler Pattern",{"type":42,"tag":50,"props":691,"children":692},{},[693],{"type":42,"tag":59,"props":694,"children":695},{},[696],{"type":47,"value":697},"TypeScript:",{"type":42,"tag":699,"props":700,"children":705},"pre",{"className":701,"code":702,"language":703,"meta":704,"style":704},"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","",[706],{"type":42,"tag":115,"props":707,"children":708},{"__ignoreMap":704},[709,773,783,868,964,981],{"type":42,"tag":710,"props":711,"children":713},"span",{"class":712,"line":37},"line",[714,720,726,732,737,742,747,752,757,763,768],{"type":42,"tag":710,"props":715,"children":717},{"style":716},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[718],{"type":47,"value":719},"import",{"type":42,"tag":710,"props":721,"children":723},{"style":722},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[724],{"type":47,"value":725}," {",{"type":42,"tag":710,"props":727,"children":729},{"style":728},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[730],{"type":47,"value":731}," withDurableExecution",{"type":42,"tag":710,"props":733,"children":734},{"style":722},[735],{"type":47,"value":736},",",{"type":42,"tag":710,"props":738,"children":739},{"style":728},[740],{"type":47,"value":741}," DurableContext",{"type":42,"tag":710,"props":743,"children":744},{"style":722},[745],{"type":47,"value":746}," }",{"type":42,"tag":710,"props":748,"children":749},{"style":716},[750],{"type":47,"value":751}," from",{"type":42,"tag":710,"props":753,"children":754},{"style":722},[755],{"type":47,"value":756}," '",{"type":42,"tag":710,"props":758,"children":760},{"style":759},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[761],{"type":47,"value":762},"@aws\u002Fdurable-execution-sdk-js",{"type":42,"tag":710,"props":764,"children":765},{"style":722},[766],{"type":47,"value":767},"'",{"type":42,"tag":710,"props":769,"children":770},{"style":722},[771],{"type":47,"value":772},";\n",{"type":42,"tag":710,"props":774,"children":776},{"class":712,"line":775},2,[777],{"type":42,"tag":710,"props":778,"children":780},{"emptyLinePlaceholder":779},true,[781],{"type":47,"value":782},"\n",{"type":42,"tag":710,"props":784,"children":786},{"class":712,"line":785},3,[787,792,798,803,808,813,818,823,828,834,838,843,848,853,858,863],{"type":42,"tag":710,"props":788,"children":789},{"style":716},[790],{"type":47,"value":791},"export",{"type":42,"tag":710,"props":793,"children":795},{"style":794},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[796],{"type":47,"value":797}," const",{"type":42,"tag":710,"props":799,"children":800},{"style":728},[801],{"type":47,"value":802}," handler ",{"type":42,"tag":710,"props":804,"children":805},{"style":722},[806],{"type":47,"value":807},"=",{"type":42,"tag":710,"props":809,"children":811},{"style":810},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[812],{"type":47,"value":731},{"type":42,"tag":710,"props":814,"children":815},{"style":728},[816],{"type":47,"value":817},"(",{"type":42,"tag":710,"props":819,"children":820},{"style":794},[821],{"type":47,"value":822},"async",{"type":42,"tag":710,"props":824,"children":825},{"style":722},[826],{"type":47,"value":827}," (",{"type":42,"tag":710,"props":829,"children":831},{"style":830},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[832],{"type":47,"value":833},"event",{"type":42,"tag":710,"props":835,"children":836},{"style":722},[837],{"type":47,"value":736},{"type":42,"tag":710,"props":839,"children":840},{"style":830},[841],{"type":47,"value":842}," context",{"type":42,"tag":710,"props":844,"children":845},{"style":722},[846],{"type":47,"value":847},":",{"type":42,"tag":710,"props":849,"children":851},{"style":850},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[852],{"type":47,"value":741},{"type":42,"tag":710,"props":854,"children":855},{"style":722},[856],{"type":47,"value":857},")",{"type":42,"tag":710,"props":859,"children":860},{"style":794},[861],{"type":47,"value":862}," =>",{"type":42,"tag":710,"props":864,"children":865},{"style":722},[866],{"type":47,"value":867}," {\n",{"type":42,"tag":710,"props":869,"children":871},{"class":712,"line":870},4,[872,877,882,887,892,896,901,906,911,915,920,924,928,933,938,942,947,951,955,960],{"type":42,"tag":710,"props":873,"children":874},{"style":794},[875],{"type":47,"value":876},"  const",{"type":42,"tag":710,"props":878,"children":879},{"style":728},[880],{"type":47,"value":881}," result",{"type":42,"tag":710,"props":883,"children":884},{"style":722},[885],{"type":47,"value":886}," =",{"type":42,"tag":710,"props":888,"children":889},{"style":716},[890],{"type":47,"value":891}," await",{"type":42,"tag":710,"props":893,"children":894},{"style":728},[895],{"type":47,"value":842},{"type":42,"tag":710,"props":897,"children":898},{"style":722},[899],{"type":47,"value":900},".",{"type":42,"tag":710,"props":902,"children":903},{"style":810},[904],{"type":47,"value":905},"step",{"type":42,"tag":710,"props":907,"children":909},{"style":908},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[910],{"type":47,"value":817},{"type":42,"tag":710,"props":912,"children":913},{"style":722},[914],{"type":47,"value":767},{"type":42,"tag":710,"props":916,"children":917},{"style":759},[918],{"type":47,"value":919},"process",{"type":42,"tag":710,"props":921,"children":922},{"style":722},[923],{"type":47,"value":767},{"type":42,"tag":710,"props":925,"children":926},{"style":722},[927],{"type":47,"value":736},{"type":42,"tag":710,"props":929,"children":930},{"style":794},[931],{"type":47,"value":932}," async",{"type":42,"tag":710,"props":934,"children":935},{"style":722},[936],{"type":47,"value":937}," ()",{"type":42,"tag":710,"props":939,"children":940},{"style":794},[941],{"type":47,"value":862},{"type":42,"tag":710,"props":943,"children":944},{"style":810},[945],{"type":47,"value":946}," processData",{"type":42,"tag":710,"props":948,"children":949},{"style":908},[950],{"type":47,"value":817},{"type":42,"tag":710,"props":952,"children":953},{"style":728},[954],{"type":47,"value":833},{"type":42,"tag":710,"props":956,"children":957},{"style":908},[958],{"type":47,"value":959},"))",{"type":42,"tag":710,"props":961,"children":962},{"style":722},[963],{"type":47,"value":772},{"type":42,"tag":710,"props":965,"children":967},{"class":712,"line":966},5,[968,973,977],{"type":42,"tag":710,"props":969,"children":970},{"style":716},[971],{"type":47,"value":972},"  return",{"type":42,"tag":710,"props":974,"children":975},{"style":728},[976],{"type":47,"value":881},{"type":42,"tag":710,"props":978,"children":979},{"style":722},[980],{"type":47,"value":772},{"type":42,"tag":710,"props":982,"children":984},{"class":712,"line":983},6,[985,990,994],{"type":42,"tag":710,"props":986,"children":987},{"style":722},[988],{"type":47,"value":989},"}",{"type":42,"tag":710,"props":991,"children":992},{"style":728},[993],{"type":47,"value":857},{"type":42,"tag":710,"props":995,"children":996},{"style":722},[997],{"type":47,"value":772},{"type":42,"tag":50,"props":999,"children":1000},{},[1001],{"type":42,"tag":59,"props":1002,"children":1003},{},[1004],{"type":47,"value":1005},"Python:",{"type":42,"tag":699,"props":1007,"children":1011},{"className":1008,"code":1009,"language":1010,"meta":704,"style":704},"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",[1012],{"type":42,"tag":115,"props":1013,"children":1014},{"__ignoreMap":704},[1015,1023,1030,1038,1046,1054],{"type":42,"tag":710,"props":1016,"children":1017},{"class":712,"line":37},[1018],{"type":42,"tag":710,"props":1019,"children":1020},{},[1021],{"type":47,"value":1022},"from aws_durable_execution_sdk_python import durable_execution, DurableContext\n",{"type":42,"tag":710,"props":1024,"children":1025},{"class":712,"line":775},[1026],{"type":42,"tag":710,"props":1027,"children":1028},{"emptyLinePlaceholder":779},[1029],{"type":47,"value":782},{"type":42,"tag":710,"props":1031,"children":1032},{"class":712,"line":785},[1033],{"type":42,"tag":710,"props":1034,"children":1035},{},[1036],{"type":47,"value":1037},"@durable_execution\n",{"type":42,"tag":710,"props":1039,"children":1040},{"class":712,"line":870},[1041],{"type":42,"tag":710,"props":1042,"children":1043},{},[1044],{"type":47,"value":1045},"def handler(event: dict, context: DurableContext) -> dict:\n",{"type":42,"tag":710,"props":1047,"children":1048},{"class":712,"line":966},[1049],{"type":42,"tag":710,"props":1050,"children":1051},{},[1052],{"type":47,"value":1053},"    result = context.step(lambda _: process_data(event), name='process')\n",{"type":42,"tag":710,"props":1055,"children":1056},{"class":712,"line":983},[1057],{"type":42,"tag":710,"props":1058,"children":1059},{},[1060],{"type":47,"value":1061},"    return result\n",{"type":42,"tag":684,"props":1063,"children":1065},{"id":1064},"python-api-differences",[1066],{"type":47,"value":1067},"Python API Differences",{"type":42,"tag":50,"props":1069,"children":1070},{},[1071],{"type":47,"value":1072},"The Python SDK differs from TypeScript in several key areas:",{"type":42,"tag":238,"props":1074,"children":1075},{},[1076,1110,1126,1159],{"type":42,"tag":94,"props":1077,"children":1078},{},[1079,1084,1086,1092,1094,1100,1102,1108],{"type":42,"tag":59,"props":1080,"children":1081},{},[1082],{"type":47,"value":1083},"Steps",{"type":47,"value":1085},": Use ",{"type":42,"tag":115,"props":1087,"children":1089},{"className":1088},[],[1090],{"type":47,"value":1091},"@durable_step",{"type":47,"value":1093}," decorator + ",{"type":42,"tag":115,"props":1095,"children":1097},{"className":1096},[],[1098],{"type":47,"value":1099},"context.step(my_step(args))",{"type":47,"value":1101},", or inline ",{"type":42,"tag":115,"props":1103,"children":1105},{"className":1104},[],[1106],{"type":47,"value":1107},"context.step(lambda _: ..., name='...')",{"type":47,"value":1109},". Prefer the decorator for automatic step naming.",{"type":42,"tag":94,"props":1111,"children":1112},{},[1113,1118,1120],{"type":42,"tag":59,"props":1114,"children":1115},{},[1116],{"type":47,"value":1117},"Wait",{"type":47,"value":1119},": ",{"type":42,"tag":115,"props":1121,"children":1123},{"className":1122},[],[1124],{"type":47,"value":1125},"context.wait(duration=Duration.from_seconds(n), name='...')",{"type":42,"tag":94,"props":1127,"children":1128},{},[1129,1134,1135,1141,1143,1149,1151,1157],{"type":42,"tag":59,"props":1130,"children":1131},{},[1132],{"type":47,"value":1133},"Exceptions",{"type":47,"value":1119},{"type":42,"tag":115,"props":1136,"children":1138},{"className":1137},[],[1139],{"type":47,"value":1140},"ExecutionError",{"type":47,"value":1142}," (permanent), ",{"type":42,"tag":115,"props":1144,"children":1146},{"className":1145},[],[1147],{"type":47,"value":1148},"InvocationError",{"type":47,"value":1150}," (transient), ",{"type":42,"tag":115,"props":1152,"children":1154},{"className":1153},[],[1155],{"type":47,"value":1156},"CallbackError",{"type":47,"value":1158}," (callback failures)",{"type":42,"tag":94,"props":1160,"children":1161},{},[1162,1166,1167,1173,1175],{"type":42,"tag":59,"props":1163,"children":1164},{},[1165],{"type":47,"value":480},{"type":47,"value":1085},{"type":42,"tag":115,"props":1168,"children":1170},{"className":1169},[],[1171],{"type":47,"value":1172},"DurableFunctionTestRunner",{"type":47,"value":1174}," class directly - instantiate with handler, use context manager, call ",{"type":42,"tag":115,"props":1176,"children":1178},{"className":1177},[],[1179],{"type":47,"value":1180},"run(input=...)",{"type":42,"tag":684,"props":1182,"children":1184},{"id":1183},"invocation-requirements",[1185],{"type":47,"value":128},{"type":42,"tag":50,"props":1187,"children":1188},{},[1189,1191,1196,1198,1203],{"type":47,"value":1190},"Durable functions ",{"type":42,"tag":59,"props":1192,"children":1193},{},[1194],{"type":47,"value":1195},"require qualified ARNs",{"type":47,"value":1197}," (version, alias, or ",{"type":42,"tag":115,"props":1199,"children":1201},{"className":1200},[],[1202],{"type":47,"value":120},{"type":47,"value":1204},"):",{"type":42,"tag":699,"props":1206,"children":1210},{"className":1207,"code":1208,"language":1209,"meta":704,"style":704},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Valid\naws lambda invoke --function-name my-function:1 output.json\naws lambda invoke --function-name my-function:live output.json\n\n# Invalid - will fail\naws lambda invoke --function-name my-function output.json\n","bash",[1211],{"type":42,"tag":115,"props":1212,"children":1213},{"__ignoreMap":704},[1214,1223,1255,1283,1290,1298],{"type":42,"tag":710,"props":1215,"children":1216},{"class":712,"line":37},[1217],{"type":42,"tag":710,"props":1218,"children":1220},{"style":1219},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[1221],{"type":47,"value":1222},"# Valid\n",{"type":42,"tag":710,"props":1224,"children":1225},{"class":712,"line":775},[1226,1230,1235,1240,1245,1250],{"type":42,"tag":710,"props":1227,"children":1228},{"style":850},[1229],{"type":47,"value":8},{"type":42,"tag":710,"props":1231,"children":1232},{"style":759},[1233],{"type":47,"value":1234}," lambda",{"type":42,"tag":710,"props":1236,"children":1237},{"style":759},[1238],{"type":47,"value":1239}," invoke",{"type":42,"tag":710,"props":1241,"children":1242},{"style":759},[1243],{"type":47,"value":1244}," --function-name",{"type":42,"tag":710,"props":1246,"children":1247},{"style":759},[1248],{"type":47,"value":1249}," my-function:1",{"type":42,"tag":710,"props":1251,"children":1252},{"style":759},[1253],{"type":47,"value":1254}," output.json\n",{"type":42,"tag":710,"props":1256,"children":1257},{"class":712,"line":785},[1258,1262,1266,1270,1274,1279],{"type":42,"tag":710,"props":1259,"children":1260},{"style":850},[1261],{"type":47,"value":8},{"type":42,"tag":710,"props":1263,"children":1264},{"style":759},[1265],{"type":47,"value":1234},{"type":42,"tag":710,"props":1267,"children":1268},{"style":759},[1269],{"type":47,"value":1239},{"type":42,"tag":710,"props":1271,"children":1272},{"style":759},[1273],{"type":47,"value":1244},{"type":42,"tag":710,"props":1275,"children":1276},{"style":759},[1277],{"type":47,"value":1278}," my-function:live",{"type":42,"tag":710,"props":1280,"children":1281},{"style":759},[1282],{"type":47,"value":1254},{"type":42,"tag":710,"props":1284,"children":1285},{"class":712,"line":870},[1286],{"type":42,"tag":710,"props":1287,"children":1288},{"emptyLinePlaceholder":779},[1289],{"type":47,"value":782},{"type":42,"tag":710,"props":1291,"children":1292},{"class":712,"line":966},[1293],{"type":42,"tag":710,"props":1294,"children":1295},{"style":1219},[1296],{"type":47,"value":1297},"# Invalid - will fail\n",{"type":42,"tag":710,"props":1299,"children":1300},{"class":712,"line":983},[1301,1305,1309,1313,1317,1322],{"type":42,"tag":710,"props":1302,"children":1303},{"style":850},[1304],{"type":47,"value":8},{"type":42,"tag":710,"props":1306,"children":1307},{"style":759},[1308],{"type":47,"value":1234},{"type":42,"tag":710,"props":1310,"children":1311},{"style":759},[1312],{"type":47,"value":1239},{"type":42,"tag":710,"props":1314,"children":1315},{"style":759},[1316],{"type":47,"value":1244},{"type":42,"tag":710,"props":1318,"children":1319},{"style":759},[1320],{"type":47,"value":1321}," my-function",{"type":42,"tag":710,"props":1323,"children":1324},{"style":759},[1325],{"type":47,"value":1254},{"type":42,"tag":78,"props":1327,"children":1329},{"id":1328},"iam-permissions",[1330],{"type":47,"value":1331},"IAM Permissions",{"type":42,"tag":50,"props":1333,"children":1334},{},[1335,1337,1343],{"type":47,"value":1336},"Your Lambda execution role MUST have the ",{"type":42,"tag":115,"props":1338,"children":1340},{"className":1339},[],[1341],{"type":47,"value":1342},"AWSLambdaBasicDurableExecutionRolePolicy",{"type":47,"value":1344}," managed policy attached. This includes:",{"type":42,"tag":238,"props":1346,"children":1347},{},[1348,1359,1370],{"type":42,"tag":94,"props":1349,"children":1350},{},[1351,1357],{"type":42,"tag":115,"props":1352,"children":1354},{"className":1353},[],[1355],{"type":47,"value":1356},"lambda:CheckpointDurableExecution",{"type":47,"value":1358}," - Persist execution state",{"type":42,"tag":94,"props":1360,"children":1361},{},[1362,1368],{"type":42,"tag":115,"props":1363,"children":1365},{"className":1364},[],[1366],{"type":47,"value":1367},"lambda:GetDurableExecutionState",{"type":47,"value":1369}," - Retrieve execution state",{"type":42,"tag":94,"props":1371,"children":1372},{},[1373],{"type":47,"value":1374},"CloudWatch Logs permissions",{"type":42,"tag":50,"props":1376,"children":1377},{},[1378],{"type":42,"tag":59,"props":1379,"children":1380},{},[1381],{"type":47,"value":1382},"Additional permissions needed for:",{"type":42,"tag":238,"props":1384,"children":1385},{},[1386,1403],{"type":42,"tag":94,"props":1387,"children":1388},{},[1389,1394,1395,1401],{"type":42,"tag":59,"props":1390,"children":1391},{},[1392],{"type":47,"value":1393},"Durable invokes",{"type":47,"value":1119},{"type":42,"tag":115,"props":1396,"children":1398},{"className":1397},[],[1399],{"type":47,"value":1400},"lambda:InvokeFunction",{"type":47,"value":1402}," on target function ARNs",{"type":42,"tag":94,"props":1404,"children":1405},{},[1406,1411,1413,1419,1421],{"type":42,"tag":59,"props":1407,"children":1408},{},[1409],{"type":47,"value":1410},"External callbacks",{"type":47,"value":1412},": Systems need ",{"type":42,"tag":115,"props":1414,"children":1416},{"className":1415},[],[1417],{"type":47,"value":1418},"lambda:SendDurableExecutionCallbackSuccess",{"type":47,"value":1420}," and ",{"type":42,"tag":115,"props":1422,"children":1424},{"className":1423},[],[1425],{"type":47,"value":1426},"lambda:SendDurableExecutionCallbackFailure",{"type":42,"tag":78,"props":1428,"children":1430},{"id":1429},"validation-guidelines",[1431],{"type":47,"value":1432},"Validation Guidelines",{"type":42,"tag":50,"props":1434,"children":1435},{},[1436],{"type":47,"value":1437},"When writing or reviewing durable function code, ALWAYS check for these replay model violations:",{"type":42,"tag":90,"props":1439,"children":1440},{},[1441,1463,1499,1509],{"type":42,"tag":94,"props":1442,"children":1443},{},[1444,1449,1450,1455,1456,1461],{"type":42,"tag":59,"props":1445,"children":1446},{},[1447],{"type":47,"value":1448},"Non-deterministic code outside steps",{"type":47,"value":1119},{"type":42,"tag":115,"props":1451,"children":1453},{"className":1452},[],[1454],{"type":47,"value":188},{"type":47,"value":148},{"type":42,"tag":115,"props":1457,"children":1459},{"className":1458},[],[1460],{"type":47,"value":195},{"type":47,"value":1462},", UUID generation, API calls, database queries must all be inside steps",{"type":42,"tag":94,"props":1464,"children":1465},{},[1466,1471,1473,1478,1479,1484,1485,1490,1492,1497],{"type":42,"tag":59,"props":1467,"children":1468},{},[1469],{"type":47,"value":1470},"Nested durable operations in step functions",{"type":47,"value":1472},": Cannot call ",{"type":42,"tag":115,"props":1474,"children":1476},{"className":1475},[],[1477],{"type":47,"value":146},{"type":47,"value":148},{"type":42,"tag":115,"props":1480,"children":1482},{"className":1481},[],[1483],{"type":47,"value":154},{"type":47,"value":156},{"type":42,"tag":115,"props":1486,"children":1488},{"className":1487},[],[1489],{"type":47,"value":162},{"type":47,"value":1491}," inside a step function — use ",{"type":42,"tag":115,"props":1493,"children":1495},{"className":1494},[],[1496],{"type":47,"value":170},{"type":47,"value":1498}," instead",{"type":42,"tag":94,"props":1500,"children":1501},{},[1502,1507],{"type":42,"tag":59,"props":1503,"children":1504},{},[1505],{"type":47,"value":1506},"Closure mutations that won't persist",{"type":47,"value":1508},": Variables mutated inside steps are NOT preserved across replays — return values from steps instead",{"type":42,"tag":94,"props":1510,"children":1511},{},[1512,1517,1518,1523],{"type":42,"tag":59,"props":1513,"children":1514},{},[1515],{"type":47,"value":1516},"Side effects outside steps that repeat on replay",{"type":47,"value":1085},{"type":42,"tag":115,"props":1519,"children":1521},{"className":1520},[],[1522],{"type":47,"value":223},{"type":47,"value":1524}," for logging (it is replay-aware and deduplicates automatically)",{"type":42,"tag":50,"props":1526,"children":1527},{},[1528],{"type":47,"value":1529},"When implementing or modifying tests for durable functions, ALWAYS verify:",{"type":42,"tag":90,"props":1531,"children":1532},{},[1533,1538,1543,1548],{"type":42,"tag":94,"props":1534,"children":1535},{},[1536],{"type":47,"value":1537},"All operations have descriptive names",{"type":42,"tag":94,"props":1539,"children":1540},{},[1541],{"type":47,"value":1542},"Tests get operations by NAME, never by index",{"type":42,"tag":94,"props":1544,"children":1545},{},[1546],{"type":47,"value":1547},"Replay behavior is tested with multiple invocations",{"type":42,"tag":94,"props":1549,"children":1550},{},[1551,1553,1559],{"type":47,"value":1552},"Use ",{"type":42,"tag":115,"props":1554,"children":1556},{"className":1555},[],[1557],{"type":47,"value":1558},"LocalDurableTestRunner",{"type":47,"value":1560}," for local testing",{"type":42,"tag":78,"props":1562,"children":1564},{"id":1563},"security-considerations",[1565],{"type":47,"value":1566},"Security Considerations",{"type":42,"tag":238,"props":1568,"children":1569},{},[1570,1580,1590,1600,1610,1628],{"type":42,"tag":94,"props":1571,"children":1572},{},[1573,1578],{"type":42,"tag":59,"props":1574,"children":1575},{},[1576],{"type":47,"value":1577},"Checkpoint data encryption",{"type":47,"value":1579},": Execution state is persisted automatically. Enable KMS encryption on associated CloudWatch Log Groups to protect checkpointed data at rest.",{"type":42,"tag":94,"props":1581,"children":1582},{},[1583,1588],{"type":42,"tag":59,"props":1584,"children":1585},{},[1586],{"type":47,"value":1587},"Sensitive data in step results",{"type":47,"value":1589},": Step return values are checkpointed and persisted. Do not return secrets, raw credentials, or PII from steps — store sensitive data in Secrets Manager or SSM Parameter Store and return references instead.",{"type":42,"tag":94,"props":1591,"children":1592},{},[1593,1598],{"type":42,"tag":59,"props":1594,"children":1595},{},[1596],{"type":47,"value":1597},"Input validation",{"type":47,"value":1599},": Validate and sanitize event payloads at the handler entry point before passing data to steps.",{"type":42,"tag":94,"props":1601,"children":1602},{},[1603,1608],{"type":42,"tag":59,"props":1604,"children":1605},{},[1606],{"type":47,"value":1607},"Credential management",{"type":47,"value":1609},": Retrieve secrets from AWS Secrets Manager or SSM Parameter Store within steps.",{"type":42,"tag":94,"props":1611,"children":1612},{},[1613,1618,1620,1626],{"type":42,"tag":59,"props":1614,"children":1615},{},[1616],{"type":47,"value":1617},"Callback payload validation",{"type":47,"value":1619},": Data received via ",{"type":42,"tag":115,"props":1621,"children":1623},{"className":1622},[],[1624],{"type":47,"value":1625},"waitForCallback",{"type":47,"value":1627}," originates from external systems — validate and sanitize before processing.",{"type":42,"tag":94,"props":1629,"children":1630},{},[1631,1636,1638,1644],{"type":42,"tag":59,"props":1632,"children":1633},{},[1634],{"type":47,"value":1635},"Logging",{"type":47,"value":1637},": Avoid ",{"type":42,"tag":115,"props":1639,"children":1641},{"className":1640},[],[1642],{"type":47,"value":1643},"DEBUG",{"type":47,"value":1645}," log level in non-development environments as it may expose step results and execution state. Enable CloudWatch Logs encryption with KMS.",{"type":42,"tag":78,"props":1647,"children":1649},{"id":1648},"resources",[1650],{"type":47,"value":1651},"Resources",{"type":42,"tag":238,"props":1653,"children":1654},{},[1655,1665,1675,1685],{"type":42,"tag":94,"props":1656,"children":1657},{},[1658],{"type":42,"tag":67,"props":1659,"children":1662},{"href":1660,"rel":1661},"https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-functions.html",[71],[1663],{"type":47,"value":1664},"AWS Lambda durable functions Documentation",{"type":42,"tag":94,"props":1666,"children":1667},{},[1668],{"type":42,"tag":67,"props":1669,"children":1672},{"href":1670,"rel":1671},"https:\u002F\u002Fgithub.com\u002Faws\u002Faws-durable-execution-sdk-js",[71],[1673],{"type":47,"value":1674},"JavaScript SDK Repository",{"type":42,"tag":94,"props":1676,"children":1677},{},[1678],{"type":42,"tag":67,"props":1679,"children":1682},{"href":1680,"rel":1681},"https:\u002F\u002Fgithub.com\u002Faws\u002Faws-durable-execution-sdk-python",[71],[1683],{"type":47,"value":1684},"Python SDK Repository",{"type":42,"tag":94,"props":1686,"children":1687},{},[1688],{"type":42,"tag":67,"props":1689,"children":1692},{"href":1690,"rel":1691},"https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-managed-policy\u002Flatest\u002Freference\u002FAWSLambdaBasicDurableExecutionRolePolicy.html",[71],[1693],{"type":47,"value":1694},"IAM Policy Reference",{"type":42,"tag":1696,"props":1697,"children":1698},"style",{},[1699],{"type":47,"value":1700},"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":1702,"total":1805},[1703,1720,1735,1750,1764,1774,1789],{"slug":1704,"name":1704,"fn":1705,"description":1706,"org":1707,"tags":1708,"stars":24,"repoUrl":25,"updatedAt":1719},"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},[1709,1712,1715,1716],{"name":1710,"slug":1711,"type":15},"Agents","agents",{"name":1713,"slug":1714,"type":15},"Automation","automation",{"name":23,"slug":8,"type":15},{"name":1717,"slug":1718,"type":15},"Engineering","engineering","2026-07-12T08:42:53.812877",{"slug":1721,"name":1721,"fn":1722,"description":1723,"org":1724,"tags":1725,"stars":24,"repoUrl":25,"updatedAt":1734},"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},[1726,1727,1730,1733],{"name":1710,"slug":1711,"type":15},{"name":1728,"slug":1729,"type":15},"API Development","api-development",{"name":1731,"slug":1732,"type":15},"Authentication","authentication",{"name":23,"slug":8,"type":15},"2026-07-16T06:00:38.866147",{"slug":1736,"name":1736,"fn":1737,"description":1738,"org":1739,"tags":1740,"stars":24,"repoUrl":25,"updatedAt":1749},"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},[1741,1742,1743,1746],{"name":1710,"slug":1711,"type":15},{"name":23,"slug":8,"type":15},{"name":1744,"slug":1745,"type":15},"Debugging","debugging",{"name":1747,"slug":1748,"type":15},"Observability","observability","2026-07-16T06:00:44.679093",{"slug":1751,"name":1751,"fn":1752,"description":1753,"org":1754,"tags":1755,"stars":24,"repoUrl":25,"updatedAt":1763},"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},[1756,1757,1758,1761],{"name":1710,"slug":1711,"type":15},{"name":23,"slug":8,"type":15},{"name":1759,"slug":1760,"type":15},"CI\u002FCD","ci-cd",{"name":519,"slug":1762,"type":15},"deployment","2026-07-12T08:42:55.059577",{"slug":1765,"name":1765,"fn":1766,"description":1767,"org":1768,"tags":1769,"stars":24,"repoUrl":25,"updatedAt":1773},"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},[1770,1771,1772],{"name":1710,"slug":1711,"type":15},{"name":23,"slug":8,"type":15},{"name":519,"slug":1762,"type":15},"2026-07-12T08:42:51.963247",{"slug":1775,"name":1775,"fn":1776,"description":1777,"org":1778,"tags":1779,"stars":24,"repoUrl":25,"updatedAt":1788},"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},[1780,1781,1782,1785],{"name":1710,"slug":1711,"type":15},{"name":23,"slug":8,"type":15},{"name":1783,"slug":1784,"type":15},"Best Practices","best-practices",{"name":1786,"slug":1787,"type":15},"Security","security","2026-07-16T06:00:42.174705",{"slug":1790,"name":1790,"fn":1791,"description":1792,"org":1793,"tags":1794,"stars":24,"repoUrl":25,"updatedAt":1804},"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},[1795,1796,1797,1800,1801],{"name":1710,"slug":1711,"type":15},{"name":23,"slug":8,"type":15},{"name":1798,"slug":1799,"type":15},"Evals","evals",{"name":1747,"slug":1748,"type":15},{"name":1802,"slug":1803,"type":15},"Performance","performance","2026-07-12T08:42:56.488105",114,{"items":1807,"total":1922},[1808,1815,1822,1829,1836,1842,1849,1857,1872,1885,1897,1912],{"slug":1704,"name":1704,"fn":1705,"description":1706,"org":1809,"tags":1810,"stars":24,"repoUrl":25,"updatedAt":1719},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1811,1812,1813,1814],{"name":1710,"slug":1711,"type":15},{"name":1713,"slug":1714,"type":15},{"name":23,"slug":8,"type":15},{"name":1717,"slug":1718,"type":15},{"slug":1721,"name":1721,"fn":1722,"description":1723,"org":1816,"tags":1817,"stars":24,"repoUrl":25,"updatedAt":1734},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1818,1819,1820,1821],{"name":1710,"slug":1711,"type":15},{"name":1728,"slug":1729,"type":15},{"name":1731,"slug":1732,"type":15},{"name":23,"slug":8,"type":15},{"slug":1736,"name":1736,"fn":1737,"description":1738,"org":1823,"tags":1824,"stars":24,"repoUrl":25,"updatedAt":1749},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1825,1826,1827,1828],{"name":1710,"slug":1711,"type":15},{"name":23,"slug":8,"type":15},{"name":1744,"slug":1745,"type":15},{"name":1747,"slug":1748,"type":15},{"slug":1751,"name":1751,"fn":1752,"description":1753,"org":1830,"tags":1831,"stars":24,"repoUrl":25,"updatedAt":1763},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1832,1833,1834,1835],{"name":1710,"slug":1711,"type":15},{"name":23,"slug":8,"type":15},{"name":1759,"slug":1760,"type":15},{"name":519,"slug":1762,"type":15},{"slug":1765,"name":1765,"fn":1766,"description":1767,"org":1837,"tags":1838,"stars":24,"repoUrl":25,"updatedAt":1773},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1839,1840,1841],{"name":1710,"slug":1711,"type":15},{"name":23,"slug":8,"type":15},{"name":519,"slug":1762,"type":15},{"slug":1775,"name":1775,"fn":1776,"description":1777,"org":1843,"tags":1844,"stars":24,"repoUrl":25,"updatedAt":1788},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1845,1846,1847,1848],{"name":1710,"slug":1711,"type":15},{"name":23,"slug":8,"type":15},{"name":1783,"slug":1784,"type":15},{"name":1786,"slug":1787,"type":15},{"slug":1790,"name":1790,"fn":1791,"description":1792,"org":1850,"tags":1851,"stars":24,"repoUrl":25,"updatedAt":1804},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1852,1853,1854,1855,1856],{"name":1710,"slug":1711,"type":15},{"name":23,"slug":8,"type":15},{"name":1798,"slug":1799,"type":15},{"name":1747,"slug":1748,"type":15},{"name":1802,"slug":1803,"type":15},{"slug":1858,"name":1858,"fn":1859,"description":1860,"org":1861,"tags":1862,"stars":24,"repoUrl":25,"updatedAt":1871},"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},[1863,1864,1867,1870],{"name":23,"slug":8,"type":15},{"name":1865,"slug":1866,"type":15},"Database","database",{"name":1868,"slug":1869,"type":15},"MySQL","mysql",{"name":20,"slug":21,"type":15},"2026-07-12T08:43:13.27939",{"slug":1873,"name":1873,"fn":1874,"description":1875,"org":1876,"tags":1877,"stars":24,"repoUrl":25,"updatedAt":1884},"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},[1878,1879,1880,1883],{"name":23,"slug":8,"type":15},{"name":1865,"slug":1866,"type":15},{"name":1881,"slug":1882,"type":15},"PostgreSQL","postgresql",{"name":20,"slug":21,"type":15},"2026-07-16T06:00:34.789624",{"slug":1886,"name":1886,"fn":1887,"description":1888,"org":1889,"tags":1890,"stars":24,"repoUrl":25,"updatedAt":1896},"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},[1891,1892,1893],{"name":1710,"slug":1711,"type":15},{"name":23,"slug":8,"type":15},{"name":1894,"slug":1895,"type":15},"LLM","llm","2026-07-25T05:30:35.20899",{"slug":1898,"name":1898,"fn":1899,"description":1900,"org":1901,"tags":1902,"stars":24,"repoUrl":25,"updatedAt":1911},"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},[1903,1904,1905,1908],{"name":23,"slug":8,"type":15},{"name":1865,"slug":1866,"type":15},{"name":1906,"slug":1907,"type":15},"MongoDB","mongodb",{"name":1909,"slug":1910,"type":15},"NoSQL","nosql","2026-07-12T08:43:00.455878",{"slug":1913,"name":1913,"fn":1914,"description":1915,"org":1916,"tags":1917,"stars":24,"repoUrl":25,"updatedAt":1921},"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},[1918,1919,1920],{"name":23,"slug":8,"type":15},{"name":1865,"slug":1866,"type":15},{"name":1909,"slug":1910,"type":15},"2026-07-16T06:00:37.690386",115]