interface AddLambdaTargetOptions
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.AddLambdaTargetOptions |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#AddLambdaTargetOptions |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.AddLambdaTargetOptions |
Python | aws_cdk.aws_bedrock_agentcore_alpha.AddLambdaTargetOptions |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป AddLambdaTargetOptions |
Options for adding a Lambda target to a gateway.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
import { aws_lambda as lambda } from 'aws-cdk-lib';
declare const credentialProviderConfig: bedrock_agentcore_alpha.ICredentialProviderConfig;
declare const function_: lambda.Function;
declare const toolSchema: bedrock_agentcore_alpha.ToolSchema;
const addLambdaTargetOptions: bedrock_agentcore_alpha.AddLambdaTargetOptions = {
lambdaFunction: function_,
toolSchema: toolSchema,
// the properties below are optional
credentialProviderConfigurations: [credentialProviderConfig],
description: 'description',
gatewayTargetName: 'gatewayTargetName',
};
Properties
| Name | Type | Description |
|---|---|---|
| lambda | IFunction | The Lambda function to associate with this target. |
| tool | Tool | The tool schema defining the available tools. |
| credential | ICredential[] | Credential providers for authentication. |
| description? | string | Optional description for the gateway target. |
| gateway | string | The name of the gateway target Valid characters are a-z, A-Z, 0-9, _ (underscore) and - (hyphen). |
lambdaFunction
Type:
IFunction
The Lambda function to associate with this target.
toolSchema
Type:
Tool
The tool schema defining the available tools.
credentialProviderConfigurations?
Type:
ICredential[]
(optional, default: [GatewayCredentialProvider.iamRole()])
Credential providers for authentication.
description?
Type:
string
(optional, default: No description)
Optional description for the gateway target.
gatewayTargetName?
Type:
string
(optional, default: auto generate)
The name of the gateway target Valid characters are a-z, A-Z, 0-9, _ (underscore) and - (hyphen).

.NET
Go
Java
Python
TypeScript (