%% Autogenerated serverless-aws-lambda
graph TD
classDef standard fill:#1e293b,stroke:#38bdf8,stroke-width:1px,color:#e5e7eb;
classDef c-actor fill:#1e293b,stroke:#e5e7eb,stroke-width:1px,stroke-dasharray: 5 5,color:#e5e7eb;
classDef c-compute fill:#422006,stroke:#fb923c,stroke-width:1px,color:#fed7aa;
classDef c-database fill:#064e3b,stroke:#34d399,stroke-width:1px,color:#d1fae5;
classDef c-network fill:#2e1065,stroke:#a855f7,stroke-width:1px,color:#f3e8ff;
classDef c-storage fill:#450a0a,stroke:#f87171,stroke-width:1px,color:#fee2e2;
classDef c-security fill:#450a0a,stroke:#f87171,stroke-width:1px,color:#fee2e2;
classDef c-gateway fill:#2e1065,stroke:#a855f7,stroke-width:1px,color:#f3e8ff;
classDef c-container fill:#422006,stroke:#facc15,stroke-width:1px,color:#fef9c3;
subgraph api_layer ["API Layer"]
direction TB
api_gateway(("<img src="/icons/inframap/aws/Networking_and_Content_Delivery/Amazon-API-Gateway.png" width="32" height="32" /><br/><b>API Gateway</b><br/><i>gateway</i><br/><span style='font-size:0.8em'>REST/HTTP API</span>"))
class api_gateway c-network
lambda_functions("<img src="/icons/inframap/aws/Compute/AWS-Lambda.png" width="32" height="32" /><br/><b>Lambda Functions</b><br/><i>function</i><br/><span style='font-size:0.8em'>Node.js / Python handlers</span>")
class lambda_functions standard
end
subgraph data_layer ["Data Layer"]
direction TB
dynamodb[("<img src="/icons/inframap/aws/Database/Amazon-DynamoDB.png" width="32" height="32" /><br/><b>DynamoDB</b><br/><i>database</i><br/><span style='font-size:0.8em'>NoSQL database</span>")]
class dynamodb c-database
s3[("<img src="/icons/inframap/aws/Database/Amazon-DynamoDB.png" width="32" height="32" /><br/><b>S3 Buckets</b><br/><i>database</i><br/><span style='font-size:0.8em'>Object storage</span>")]
class s3 c-database
end
subgraph ops_layer ["Operations"]
direction TB
cloudwatch("<img src="/icons/inframap/compute.png" width="32" height="32" /><br/><b>CloudWatch</b><br/><i>service</i><br/><span style='font-size:0.8em'>Logs & metrics</span>")
class cloudwatch c-compute
cognito("<img src="/icons/inframap/compute.png" width="32" height="32" /><br/><b>Cognito</b><br/><i>service</i><br/><span style='font-size:0.8em'>User authentication</span>")
class cognito c-compute
end
%% Orphans
clients(("<img src="/icons/inframap/user.png" width="32" height="32" /><br/><b>API Clients</b><br/><i>actor</i><br/><span style='font-size:0.8em'>Mobile/Web apps</span>"))
class clients c-actor
%% Edges
clients -.-> api_gateway
api_gateway -.-> lambda_functions
lambda_functions -.-> dynamodb
lambda_functions -.-> s3
cloudwatch -.-> lambda_functions
cognito -.-> api_gateway