Class GatewayTargetLambdaProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.GatewayTargetLambdaProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GatewayTargetLambdaProps>
- Enclosing interface:
GatewayTargetLambdaProps
@Stability(Stable)
public static final class GatewayTargetLambdaProps.Builder
extends Object
implements software.amazon.jsii.Builder<GatewayTargetLambdaProps>
A builder for
GatewayTargetLambdaProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.credentialProviderConfigurations(List<? extends ICredentialProviderConfig> credentialProviderConfigurations) Sets the value ofGatewayTargetLambdaProps.getCredentialProviderConfigurations()description(String description) Sets the value ofGatewayTargetCommonProps.getDescription()Sets the value ofGatewayTargetLambdaProps.getGateway()gatewayTargetName(String gatewayTargetName) Sets the value ofGatewayTargetCommonProps.getGatewayTargetName()lambdaFunction(IFunction lambdaFunction) Sets the value ofGatewayTargetLambdaProps.getLambdaFunction()toolSchema(ToolSchema toolSchema) Sets the value ofGatewayTargetLambdaProps.getToolSchema()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
gateway
Sets the value ofGatewayTargetLambdaProps.getGateway()- Parameters:
gateway- The gateway this target belongs to. This parameter is required.- Returns:
this
-
lambdaFunction
Sets the value ofGatewayTargetLambdaProps.getLambdaFunction()- Parameters:
lambdaFunction- The Lambda function to associate with this target. This parameter is required.- Returns:
this
-
toolSchema
Sets the value ofGatewayTargetLambdaProps.getToolSchema()- Parameters:
toolSchema- The tool schema defining the available tools. This parameter is required.- Returns:
this
-
credentialProviderConfigurations
@Stability(Stable) public GatewayTargetLambdaProps.Builder credentialProviderConfigurations(List<? extends ICredentialProviderConfig> credentialProviderConfigurations) Sets the value ofGatewayTargetLambdaProps.getCredentialProviderConfigurations()- Parameters:
credentialProviderConfigurations- Credential providers for authentication Lambda targets only support IAM role authentication.- 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 GatewayTargetLambdaProps.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<GatewayTargetLambdaProps>- Returns:
- a new instance of
GatewayTargetLambdaProps - Throws:
NullPointerException- if any required attribute was not provided
-