GatewayExceptionLevel
- class aws_cdk.aws_bedrock_agentcore_alpha.GatewayExceptionLevel(*values)
Bases:
Enum(experimental) Exception levels for gateway.
- Stability:
experimental
- ExampleMetadata:
fixture=default infused
Example:
# Create a KMS key for encryption encryption_key = kms.Key(self, "GatewayEncryptionKey", enable_key_rotation=True, description="KMS key for gateway encryption" ) # Create gateway with KMS encryption gateway = agentcore.Gateway(self, "MyGateway", gateway_name="my-encrypted-gateway", description="Gateway with KMS encryption", protocol_configuration=agentcore.McpProtocolConfiguration( instructions="Use this gateway to connect to external MCP tools", search_type=agentcore.McpGatewaySearchType.SEMANTIC, supported_versions=[agentcore.MCPProtocolVersion.MCP_2025_03_26] ), authorizer_configuration=agentcore.GatewayAuthorizer.using_custom_jwt( discovery_url="https://auth.example.com/.well-known/openid-configuration", allowed_audience=["my-app"], allowed_clients=["my-client-id"] ), kms_key=encryption_key, exception_level=agentcore.GatewayExceptionLevel.DEBUG )
Attributes
- DEBUG
(experimental) Debug mode for granular exception messages.
Allows the return of specific error messages related to the gateway target configuration to help you with debugging.
- Stability:
experimental