Interface ApiGatewayToolOverride
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApiGatewayToolOverride.Jsii$Proxy
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-19T08:18:44.216Z")
@Stability(Stable)
public interface ApiGatewayToolOverride
extends software.amazon.jsii.JsiiSerializable
Configuration for overriding API Gateway tool metadata.
Tool overrides allow you to customize the tool name or description for specific operations after filtering. Each override must specify an explicit path and a single HTTP method. The override must match an operation that exists in your API and must correspond to one of the operations resolved by your filters.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrockagentcore.*;
ApiGatewayHttpMethod apiGatewayHttpMethod;
ApiGatewayToolOverride apiGatewayToolOverride = ApiGatewayToolOverride.builder()
.method(apiGatewayHttpMethod)
.name("name")
.path("path")
// the properties below are optional
.description("description")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forApiGatewayToolOverridestatic final classAn implementation forApiGatewayToolOverride -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringOptional custom description for the tool.The HTTP method for this override Must be a single method (no wildcards).getName()The custom tool name If not provided, the operationId from the OpenAPI definition will be used.getPath()The explicit resource path (no wildcards) Must match an operation that exists in your API.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMethod
The HTTP method for this override Must be a single method (no wildcards). -
getName
The custom tool name If not provided, the operationId from the OpenAPI definition will be used. -
getPath
The explicit resource path (no wildcards) Must match an operation that exists in your API. -
getDescription
Optional custom description for the tool.Default: - No custom description
-
builder
- Returns:
- a
ApiGatewayToolOverride.BuilderofApiGatewayToolOverride
-