Interface TargetConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TargetConfiguration.Builder,,TargetConfiguration> SdkBuilder<TargetConfiguration.Builder,,TargetConfiguration> SdkPojo
- Enclosing class:
TargetConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault TargetConfiguration.BuilderThe HTTP target configuration.http(HttpTargetConfiguration http) The HTTP target configuration.default TargetConfiguration.Builderinference(Consumer<InferenceTargetConfiguration.Builder> inference) The inference configuration for the target.inference(InferenceTargetConfiguration inference) The inference configuration for the target.default TargetConfiguration.BuilderThe Model Context Protocol (MCP) configuration for the target.The Model Context Protocol (MCP) configuration for the target.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
mcp
The Model Context Protocol (MCP) configuration for the target. This configuration defines how the gateway uses MCP to communicate with the target.
- Parameters:
mcp- The Model Context Protocol (MCP) configuration for the target. This configuration defines how the gateway uses MCP to communicate with the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mcp
The Model Context Protocol (MCP) configuration for the target. This configuration defines how the gateway uses MCP to communicate with the target.
This is a convenience method that creates an instance of theMcpTargetConfiguration.Builderavoiding the need to create one manually viaMcpTargetConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomcp(McpTargetConfiguration).- Parameters:
mcp- a consumer that will call methods onMcpTargetConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
http
The HTTP target configuration. Use this to route gateway requests to an HTTP-based endpoint such as an AgentCore Runtime.
- Parameters:
http- The HTTP target configuration. Use this to route gateway requests to an HTTP-based endpoint such as an AgentCore Runtime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
http
The HTTP target configuration. Use this to route gateway requests to an HTTP-based endpoint such as an AgentCore Runtime.
This is a convenience method that creates an instance of theHttpTargetConfiguration.Builderavoiding the need to create one manually viaHttpTargetConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohttp(HttpTargetConfiguration).- Parameters:
http- a consumer that will call methods onHttpTargetConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inference
The inference configuration for the target. This configuration routes requests to a large language model (LLM) provider.
- Parameters:
inference- The inference configuration for the target. This configuration routes requests to a large language model (LLM) provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inference
default TargetConfiguration.Builder inference(Consumer<InferenceTargetConfiguration.Builder> inference) The inference configuration for the target. This configuration routes requests to a large language model (LLM) provider.
This is a convenience method that creates an instance of theInferenceTargetConfiguration.Builderavoiding the need to create one manually viaInferenceTargetConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinference(InferenceTargetConfiguration).- Parameters:
inference- a consumer that will call methods onInferenceTargetConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-