Files
Neha RungtaandNeha Rungta 462bad3da3 feat(examples): add synthetic security workflow benchmarks (#2618)
* feat(examples): add synthetic security workflow benchmark

* feat(examples): add deployed VPC reachability benchmark

---------

Co-authored-by: Neha Rungta <rungta@amazon.com>
2026-11-12 21:49:33 -08:00

22 lines
487 B
Python

"""Synthetic internal balance service."""
import os
BALANCES = {
"acme": 500,
"beacon": 800,
"cedar": 1200,
}
def balance_for_account(authorized_tenant_id):
return {
"tenant_id": authorized_tenant_id,
"balance_cents": BALANCES[authorized_tenant_id],
}
def handler(_event, _context):
"""IAM-only Lambda entry point; tenant comes from deployment configuration."""
return balance_for_account(os.environ.get("AUTHORIZED_TENANT_ID", "acme"))