Interface GatewayProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GatewayProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-19T08:18:44.411Z")
@Stability(Stable)
public interface GatewayProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a Gateway.
Example:
Gateway gateway = Gateway.Builder.create(this, "MyGateway")
.gatewayName("my-gateway")
.build();
Function lambdaFunction = Function.Builder.create(this, "MyFunction")
.runtime(Runtime.NODEJS_22_X)
.handler("index.handler")
.code(Code.fromInline("\n exports.handler = async (event) => {\n return {\n statusCode: 200,\n body: JSON.stringify({ message: 'Hello from Lambda!' })\n };\n };\n "))
.build();
// Create a gateway target with Lambda and tool schema
GatewayTarget target = GatewayTarget.forLambda(this, "MyLambdaTarget", GatewayTargetLambdaProps.builder()
.gatewayTargetName("my-lambda-target")
.description("Target for Lambda function integration")
.gateway(gateway)
.lambdaFunction(lambdaFunction)
.toolSchema(ToolSchema.fromLocalAsset(path.join(__dirname, "schemas", "my-tool-schema.json")))
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forGatewayPropsstatic final classAn implementation forGatewayProps -
Method Summary
Modifier and TypeMethodDescriptionstatic GatewayProps.Builderbuilder()default IGatewayAuthorizerConfigThe authorizer configuration for the gateway.default StringOptional description for the gateway Valid characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and spaces The description can have up to 200 characters.default GatewayExceptionLevelThe verbosity of exception messages Use DEBUG mode to see granular exception messages from a Gateway.default StringThe name of the gateway Valid characters are a-z, A-Z, 0-9, _ (underscore) and - (hyphen) The name must be unique within your account.default List<IInterceptor> Interceptor configurations for the gateway.default IKeyThe AWS KMS key used to encrypt data associated with the gateway.default IGatewayProtocolConfigThe protocol configuration for the gateway.default IRolegetRole()The IAM role that provides permissions for the gateway to access AWS services.getTags()Tags for the gateway A list of key:value pairs of tags to apply to this Gateway resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthorizerConfiguration
The authorizer configuration for the gateway.Default: - A default authorizer will be created using Cognito
-
getDescription
Optional description for the gateway Valid characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and spaces The description can have up to 200 characters.Default: - No description
-
getExceptionLevel
The verbosity of exception messages Use DEBUG mode to see granular exception messages from a Gateway.Default: - Exception messages are sanitized for presentation to end users
-
getGatewayName
The name of the gateway Valid characters are a-z, A-Z, 0-9, _ (underscore) and - (hyphen) The name must be unique within your account.Default: - auto generate
-
getInterceptorConfigurations
Interceptor configurations for the gateway.Interceptors allow you to run custom code during each gateway invocation:
- REQUEST interceptors execute before the gateway calls the target
- RESPONSE interceptors execute after the target responds
A gateway can have at most one REQUEST interceptor and one RESPONSE interceptor.
Default: - No interceptors
- See Also:
-
getKmsKey
The AWS KMS key used to encrypt data associated with the gateway.Default: - No encryption
-
getProtocolConfiguration
The protocol configuration for the gateway.Default: - A default protocol configuration will be created using MCP with following params supportedVersions: [MCPProtocolVersion.MCP_2025_03_26], searchType: McpGatewaySearchType.SEMANTIC, instructions: "Default gateway to connect to external MCP tools",
-
getRole
The IAM role that provides permissions for the gateway to access AWS services.Default: - A new role will be created
-
getTags
Tags for the gateway A list of key:value pairs of tags to apply to this Gateway resource.Default: - No tags
-
builder
- Returns:
- a
GatewayProps.BuilderofGatewayProps
-