Class OpenApiTargetConfiguration
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrockagentcore.McpTargetConfiguration
software.amazon.awscdk.services.bedrockagentcore.OpenApiTargetConfiguration
- All Implemented Interfaces:
ITargetConfiguration,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)",
date="2026-05-19T19:44:37.187Z")
@Stability(Stable)
public class OpenApiTargetConfiguration
extends McpTargetConfiguration
Configuration for OpenAPI-based MCP targets.
This configuration exposes an OpenAPI/REST API as MCP tools, allowing the gateway to transform API operations into tool calls.
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.*; ApiSchema apiSchema; OpenApiTargetConfiguration openApiTargetConfiguration = new OpenApiTargetConfiguration(apiSchema, false);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrockagentcore.ITargetConfiguration
ITargetConfiguration.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionOpenApiTargetConfiguration(ApiSchema apiSchema) OpenApiTargetConfiguration(ApiSchema apiSchema, Boolean validateSchema) protectedOpenApiTargetConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedOpenApiTargetConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionBinds this configuration to a construct scope Sets up necessary permissions for the gateway to access the API schema.static OpenApiTargetConfigurationCreate an OpenAPI target configuration.static OpenApiTargetConfigurationCreate an OpenAPI target configuration.The OpenAPI schema that defines the API.The target type.protected ObjectRenders the MCP-specific configuration.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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
OpenApiTargetConfiguration
protected OpenApiTargetConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
OpenApiTargetConfiguration
protected OpenApiTargetConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
OpenApiTargetConfiguration
@Stability(Stable) public OpenApiTargetConfiguration(@NotNull ApiSchema apiSchema, @Nullable Boolean validateSchema) - Parameters:
apiSchema- This parameter is required.validateSchema-
-
OpenApiTargetConfiguration
- Parameters:
apiSchema- This parameter is required.
-
-
Method Details
-
create
@Stability(Stable) @NotNull public static OpenApiTargetConfiguration create(@NotNull ApiSchema apiSchema, @Nullable Boolean validateSchema) Create an OpenAPI target configuration.- Parameters:
apiSchema- The OpenAPI schema. This parameter is required.validateSchema- Whether to validate the OpenAPI schema (only applies to inline schemas).- Returns:
- A new OpenApiTargetConfiguration instance
-
create
@Stability(Stable) @NotNull public static OpenApiTargetConfiguration create(@NotNull ApiSchema apiSchema) Create an OpenAPI target configuration.- Parameters:
apiSchema- The OpenAPI schema. This parameter is required.- Returns:
- A new OpenApiTargetConfiguration instance
-
bind
@Stability(Stable) @NotNull public TargetConfigurationConfig bind(@NotNull software.constructs.Construct scope, @NotNull IGateway gateway) Binds this configuration to a construct scope Sets up necessary permissions for the gateway to access the API schema.- Specified by:
bindin interfaceITargetConfiguration- Specified by:
bindin classMcpTargetConfiguration- Parameters:
scope- The construct scope. This parameter is required.gateway- The gateway that will use this target. This parameter is required.
-
renderMcpConfiguration
Renders the MCP-specific configuration.- Specified by:
renderMcpConfigurationin classMcpTargetConfiguration
-
getApiSchema
The OpenAPI schema that defines the API. -
getTargetType
The target type.- Specified by:
getTargetTypein interfaceITargetConfiguration- Specified by:
getTargetTypein classMcpTargetConfiguration
-