enum GatewayExceptionLevel
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.GatewayExceptionLevel |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#GatewayExceptionLevel |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.GatewayExceptionLevel |
Python | aws_cdk.aws_bedrock_agentcore_alpha.GatewayExceptionLevel |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha » GatewayExceptionLevel |
Exception levels for gateway.
Example
// Create a KMS key for encryption
const encryptionKey = new kms.Key(this, "GatewayEncryptionKey", {
enableKeyRotation: true,
description: "KMS key for gateway encryption",
});
// Create gateway with KMS encryption
const gateway = new agentcore.Gateway(this, "MyGateway", {
gatewayName: "my-encrypted-gateway",
description: "Gateway with KMS encryption",
protocolConfiguration: new agentcore.McpProtocolConfiguration({
instructions: "Use this gateway to connect to external MCP tools",
searchType: agentcore.McpGatewaySearchType.SEMANTIC,
supportedVersions: [agentcore.MCPProtocolVersion.MCP_2025_03_26],
}),
authorizerConfiguration: agentcore.GatewayAuthorizer.usingCustomJwt({
discoveryUrl: "https://auth.example.com/.well-known/openid-configuration",
allowedAudience: ["my-app"],
allowedClients: ["my-client-id"],
}),
kmsKey: encryptionKey,
exceptionLevel: agentcore.GatewayExceptionLevel.DEBUG,
});
Members
| Name | Description |
|---|---|
| DEBUG | Debug mode for granular exception messages. |
DEBUG
Debug mode for granular exception messages.
Allows the return of specific error messages related to the gateway target configuration to help you with debugging.

.NET
Go
Java
Python
TypeScript (