Class GatewayTargetMcpServerProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.GatewayTargetMcpServerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GatewayTargetMcpServerProps>
- Enclosing interface:
GatewayTargetMcpServerProps
@Stability(Stable)
public static final class GatewayTargetMcpServerProps.Builder
extends Object
implements software.amazon.jsii.Builder<GatewayTargetMcpServerProps>
A builder for
GatewayTargetMcpServerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.credentialProviderConfigurations(List<? extends ICredentialProviderConfig> credentialProviderConfigurations) Sets the value ofGatewayTargetMcpServerProps.getCredentialProviderConfigurations()description(String description) Sets the value ofGatewayTargetCommonProps.getDescription()Sets the value ofGatewayTargetMcpServerProps.getEndpoint()Sets the value ofGatewayTargetMcpServerProps.getGateway()gatewayTargetName(String gatewayTargetName) Sets the value ofGatewayTargetCommonProps.getGatewayTargetName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
credentialProviderConfigurations
@Stability(Stable) public GatewayTargetMcpServerProps.Builder credentialProviderConfigurations(List<? extends ICredentialProviderConfig> credentialProviderConfigurations) Sets the value ofGatewayTargetMcpServerProps.getCredentialProviderConfigurations()- Parameters:
credentialProviderConfigurations- Credential providers for authentication. This parameter is required.- Returns:
this
-
endpoint
Sets the value ofGatewayTargetMcpServerProps.getEndpoint()- Parameters:
endpoint- The HTTPS endpoint URL of the MCP server. This parameter is required. The endpoint must:- Use HTTPS protocol
- Be properly URL-encoded
- Point to an MCP server that implements tool capabilities
- Returns:
this
-
gateway
Sets the value ofGatewayTargetMcpServerProps.getGateway()- Parameters:
gateway- The gateway this target belongs to. This parameter is required.- Returns:
this
-
description
Sets the value ofGatewayTargetCommonProps.getDescription()- Parameters:
description- Optional description for the gateway target The description can have up to 200 characters.- Returns:
this
-
gatewayTargetName
@Stability(Stable) public GatewayTargetMcpServerProps.Builder gatewayTargetName(String gatewayTargetName) Sets the value ofGatewayTargetCommonProps.getGatewayTargetName()- Parameters:
gatewayTargetName- The name of the gateway target The name must be unique within the gateway Pattern: ^([0-9a-zA-Z][-]?){1,100}$.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GatewayTargetMcpServerProps>- Returns:
- a new instance of
GatewayTargetMcpServerProps - Throws:
NullPointerException- if any required attribute was not provided
-