Class GatewayExceptionLevel
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrockagentcore.GatewayExceptionLevel
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-19T08:18:44.410Z")
@Stability(Stable)
public class GatewayExceptionLevel
extends software.amazon.jsii.JsiiObject
Exception levels for gateway.
Example:
// Create a KMS key for encryption
Key encryptionKey = Key.Builder.create(this, "GatewayEncryptionKey")
.enableKeyRotation(true)
.description("KMS key for gateway encryption")
.build();
// Create gateway with KMS encryption
Gateway gateway = Gateway.Builder.create(this, "MyGateway")
.gatewayName("my-encrypted-gateway")
.description("Gateway with KMS encryption")
.protocolConfiguration(McpProtocolConfiguration.Builder.create()
.instructions("Use this gateway to connect to external MCP tools")
.searchType(McpGatewaySearchType.SEMANTIC)
.supportedVersions(List.of(MCPProtocolVersion.MCP_2025_03_26))
.build())
.authorizerConfiguration(GatewayAuthorizer.usingCustomJwt(CustomJwtConfiguration.builder()
.discoveryUrl("https://auth.example.com/.well-known/openid-configuration")
.allowedAudience(List.of("my-app"))
.allowedClients(List.of("my-client-id"))
.allowedScopes(List.of("read", "write"))
.build()))
.kmsKey(encryptionKey)
.exceptionLevel(GatewayExceptionLevel.DEBUG)
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GatewayExceptionLevelDebug mode for granular exception messages. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGatewayExceptionLevel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedGatewayExceptionLevel(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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.
-
-
Constructor Details
-
GatewayExceptionLevel
protected GatewayExceptionLevel(software.amazon.jsii.JsiiObjectRef objRef) -
GatewayExceptionLevel
protected GatewayExceptionLevel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details