<mxfile host="app.diagrams.net" type="device">
  <diagram name="AWS Serverless GenAI" id="aws-genai">
    <mxGraphModel dx="900" dy="600" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1000" pageHeight="520" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="title" value="OfferReady — Serverless GenAI on AWS" style="text;html=1;fontSize=16;fontStyle=1;align=left;" vertex="1" parent="1">
          <mxGeometry x="30" y="20" width="500" height="30" as="geometry" />
        </mxCell>
        <mxCell id="user" value="Client" style="ellipse;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;" vertex="1" parent="1">
          <mxGeometry x="40" y="180" width="90" height="60" as="geometry" />
        </mxCell>
        <mxCell id="idp" value="Okta / Entra ID&#10;(OIDC)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">
          <mxGeometry x="40" y="60" width="120" height="60" as="geometry" />
        </mxCell>
        <mxCell id="apigw" value="API Gateway&#10;auth · throttle · CORS" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
          <mxGeometry x="200" y="180" width="150" height="60" as="geometry" />
        </mxCell>
        <mxCell id="lambda" value="Lambda&#10;app code" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontStyle=1;" vertex="1" parent="1">
          <mxGeometry x="410" y="180" width="120" height="60" as="geometry" />
        </mxCell>
        <mxCell id="bedrock" value="Bedrock&#10;model inference&#10;(+ Guardrails)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">
          <mxGeometry x="600" y="90" width="140" height="70" as="geometry" />
        </mxCell>
        <mxCell id="s3" value="S3&#10;documents" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
          <mxGeometry x="620" y="200" width="80" height="80" as="geometry" />
        </mxCell>
        <mxCell id="ddb" value="DynamoDB&#10;conversation state" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
          <mxGeometry x="620" y="320" width="80" height="80" as="geometry" />
        </mxCell>
        <mxCell id="iam" value="IAM roles — least privilege (governs every component)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;dashed=1;fontStyle=2;" vertex="1" parent="1">
          <mxGeometry x="200" y="420" width="540" height="40" as="geometry" />
        </mxCell>
        <mxCell id="l1" value="JWT" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block;dashed=1;" edge="1" parent="1" source="idp" target="apigw"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="l2" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block;" edge="1" parent="1" source="user" target="apigw"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="l3" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block;" edge="1" parent="1" source="apigw" target="lambda"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="l4" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block;" edge="1" parent="1" source="lambda" target="bedrock"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="l5" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block;" edge="1" parent="1" source="lambda" target="s3"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="l6" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block;" edge="1" parent="1" source="lambda" target="ddb"><mxGeometry relative="1" as="geometry" /></mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
