TargetConfiguration
The configuration for a gateway target. This structure defines how the gateway connects to and interacts with the target endpoint.
Inheritors
Types
The HTTP target configuration. Use this to route gateway requests to an HTTP-based endpoint such as an AgentCore Runtime.
The Model Context Protocol (MCP) configuration for the target. This configuration defines how the gateway uses MCP to communicate with the target.
Functions
Casts this TargetConfiguration as a Http and retrieves its aws.sdk.kotlin.services.bedrockagentcorecontrol.model.HttpTargetConfiguration value. Throws an exception if the TargetConfiguration is not a Http.
Casts this TargetConfiguration as a Http and retrieves its aws.sdk.kotlin.services.bedrockagentcorecontrol.model.HttpTargetConfiguration value. Returns null if the TargetConfiguration is not a Http.
Casts this TargetConfiguration as a Mcp and retrieves its aws.sdk.kotlin.services.bedrockagentcorecontrol.model.McpTargetConfiguration value. Throws an exception if the TargetConfiguration is not a Mcp.
Casts this TargetConfiguration as a Mcp and retrieves its aws.sdk.kotlin.services.bedrockagentcorecontrol.model.McpTargetConfiguration value. Returns null if the TargetConfiguration is not a Mcp.