AI Cloud Architect

Securing AI agents with temporal policies in Amazon Bedrock AgentCore

AWSHow-to by Sean Eichenberger, Nicholas Gordon and Philipp TrucksaessAWS Artificial Intelligence Blog

Temporal policies in Amazon Bedrock AgentCore let you define stateful rules that evaluate authorization based on an agent’s session history. Learn how to enforce workflow sequencing, prevent data fabrication, cap financial exposure, and require human approval for high-value actions.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

AgentCore Gateway gets temporal policies that allow or deny agent tool calls based on the session's prior tool-call history, enforced outside the agent's code.

Who it is for

Teams running AI agents on Amazon Bedrock AgentCore that need to enforce call order, spend caps or approvals at the gateway.

Key points

  • Policies deny by default and forbid wins over permit; trajectory history is kept for up to 24 hours per session.
  • Session ID is combined with the end user identity, and changing policies invalidates active sessions.
  • Temporal policies are billed per authorization request; the first 100 per policy engine are included in the existing price.

The same at other vendors

Timeline

Posts about Amazon Bedrock AgentCore Gateway, oldest first.

  1. Generally availableIntroducing Web Search on Amazon Bedrock AgentCore · AWS · Announcement
  2. Generally availableAWS WAF adds support for Amazon Bedrock AgentCore Gateway · AWS · Announcement
  3. How-toImplement on-behalf-of token exchange for multi-tenant agents with Amazon Bedrock AgentCore Gateway · AWS · How-to
  4. Update to an existing featureHow AgentCore Gateway supports the MCP 2026-07-28 spec · AWS · Announcement
  5. This postSecuring AI agents with temporal policies in Amazon Bedrock AgentCoreAlso published by What's New with AWS, AWS Artificial Intelligence Blog
  6. How-toConfigure rate limits for AI traffic on AgentCore gateway · AWS · How-to
  7. How-toGovern AI agent tool access with Amazon Bedrock AgentCore Gateway · AWS · How-to
  8. How-toBuild a multi-account AI agent with AgentCore Gateway and MCP · AWS · How-to
  9. Update to an existing featureAgentCore Gateway supports private TLS certificates for VPC endpoints · AWS · Announcement
Show all 28 posts
  1. New featureAmazon Bedrock AgentCore Gateway supports AWS PrivateLink invocation and invocation logging · AWS · Announcement
  2. How-toSecure ingress connectivity to Amazon Bedrock AgentCore Gateway using interface VPC endpoints · AWS · How-to
  3. Blog postTransform your MCP architecture: Unite MCP servers through AgentCore Gateway · AWS · Blog post
  4. How-toBuild a biomedical research agent with Biomni tools and Amazon Bedrock AgentCore Gateway · AWS · How-to
  5. New featureApply fine-grained access control with Bedrock AgentCore Gateway interceptors · AWS · Announcement
  6. Blog postStreamline AI agent tool interactions: Connect API Gateway to AgentCore Gateway with MCP · AWS · Blog post
  7. How-toConnecting MCP servers to Amazon Bedrock AgentCore Gateway using Authorization Code flow · AWS · How-to
  8. How-toConfiguring Amazon Bedrock AgentCore Gateway for secure access to private resources · AWS · How-to
  9. How-toSecure AI agents with Policy and Lambda interceptors in Amazon Bedrock AgentCore gateway · AWS · How-to
  10. Blog postExtending MCP support for Amazon Bedrock AgentCore Gateway · AWS · Blog post
  11. How-toBuilding a secure auth code flow setup using AgentCore Gateway with MCP clients · AWS · How-to
  12. Generally availableIntroducing Web Search on Amazon Bedrock AgentCore · AWS · Announcement
  13. Generally availableAWS WAF adds support for Amazon Bedrock AgentCore Gateway · AWS · Announcement
  14. How-toImplement on-behalf-of token exchange for multi-tenant agents with Amazon Bedrock AgentCore Gateway · AWS · How-to
  15. Update to an existing featureHow AgentCore Gateway supports the MCP 2026-07-28 spec · AWS · Announcement
  16. This postSecuring AI agents with temporal policies in Amazon Bedrock AgentCoreAlso published by What's New with AWS, AWS Artificial Intelligence Blog
  17. How-toConfigure rate limits for AI traffic on AgentCore gateway · AWS · How-to
  18. How-toGovern AI agent tool access with Amazon Bedrock AgentCore Gateway · AWS · How-to
  19. How-toBuild a multi-account AI agent with AgentCore Gateway and MCP · AWS · How-to
  20. Update to an existing featureAgentCore Gateway supports private TLS certificates for VPC endpoints · AWS · Announcement
  21. Blog postHow Eon built multi-cloud investigation with an MCP Gateway on Amazon Bedrock AgentCore · AWS · Blog post
  22. New featureAgentCore Gateway now supports Bedrock InvokeModel APIs and model fallback · AWS · Announcement
  23. New featureAWS Step Functions workflows now available as AI agent tools · AWS · Announcement
  24. Customer storyHow MoEngage turned over 400 APIs into agent tools with AgentCore Gateway · AWS · Customer story
  25. How-toServiceNow on-behalf-of token exchange with Bedrock AgentCore Gateway · AWS · How-to
  26. How-toGovern AI agent access with Okta Cross App Access and Amazon Bedrock AgentCore – Part 2 · AWS · How-to
  27. How-toConnect Amazon Bedrock AgentCore Gateway to private APIs in a hub-and-spoke network with centralized inspection · AWS · How-to
  28. Blog postProtect agent tool calls with Skyflow and Amazon Bedrock AgentCore Gateway · AWS · Blog post

Go deeper