Opinionated L2 constructs for Amazon Bedrock AgentCore.
MdaaAgentcoreGateway)MdaaAgentcoreGateway wraps the L1 CfnGateway and enforces MDAA's gateway-resource compliance invariants.
It creates no dependencies of its own — the execution role, KMS CMK, and interceptor Lambda
functions are resolved by the caller (the bedrock-agentcore-gateway-l3-construct orchestration
construct) and supplied here as ARNs / resolved configurations.
kmsKeyArn is required; the gateway is never left
on an AWS-managed keyCUSTOM_JWT or AWS_IAM — NONE (unauthenticated) and
AUTHENTICATE_ONLY (no per-caller authorization) are rejectedMdaaAgentcoreGatewayTarget)MdaaAgentcoreGatewayTarget wraps the L1 CfnGatewayTarget and enforces MDAA's target-resource
compliance invariants. It creates no dependencies of its own — the gateway is supplied by
identifier, and the lambda:InvokeFunction grant on the gateway execution role plus the explicit
CloudFormation dependency on the gateway are owned by the caller (the
bedrock-agentcore-gateway-l3-construct orchestration construct, which registers targets alongside
the gateway).
The targetConfiguration declares one tool source. The type surface covers all AWS target types
(lambda, openApiSchema, smithyModel, mcpServer, apiGateway) so the configuration is stable
as support is added; validation currently builds only lambda and rejects the others as not yet
supported. A Lambda toolSchema is one of inlinePayload or s3.
GATEWAY_IAM_ROLE — an unsupported type
is rejected