Skip to content
v2.278.0

McpLambdaTargetConfigurationProperty Struct ​

The Lambda target configuration.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';

declare const schemaDefinitionProperty_: bedrockagentcore.CfnGatewayTarget.SchemaDefinitionProperty;
const mcpLambdaTargetConfigurationProperty: bedrockagentcore.CfnGatewayTarget.McpLambdaTargetConfigurationProperty = {
  lambdaArn: 'lambdaArn',
  toolSchema: {
    inlinePayload: [{
      description: 'description',
      inputSchema: {
        type: 'type',

        // the properties below are optional
        description: 'description',
        items: schemaDefinitionProperty_,
        properties: {
          propertiesKey: schemaDefinitionProperty_,
        },
        required: ['required'],
      },
      name: 'name',

      // the properties below are optional
      outputSchema: {
        type: 'type',

        // the properties below are optional
        description: 'description',
        items: schemaDefinitionProperty_,
        properties: {
          propertiesKey: schemaDefinitionProperty_,
        },
        required: ['required'],
      },
    }],
    s3: {
      bucketOwnerAccountId: 'bucketOwnerAccountId',
      uri: 'uri',
    },
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

# schema_definition_property_: bedrockagentcore.CfnGatewayTarget.SchemaDefinitionProperty

mcp_lambda_target_configuration_property = bedrockagentcore.CfnGatewayTarget.McpLambdaTargetConfigurationProperty(
    lambda_arn="lambdaArn",
    tool_schema=bedrockagentcore.CfnGatewayTarget.ToolSchemaProperty(
        inline_payload=[bedrockagentcore.CfnGatewayTarget.ToolDefinitionProperty(
            description="description",
            input_schema=bedrockagentcore.CfnGatewayTarget.SchemaDefinitionProperty(
                type="type",

                # the properties below are optional
                description="description",
                items=schema_definition_property_,
                properties={
                    "properties_key": schema_definition_property_
                },
                required=["required"]
            ),
            name="name",

            # the properties below are optional
            output_schema=bedrockagentcore.CfnGatewayTarget.SchemaDefinitionProperty(
                type="type",

                # the properties below are optional
                description="description",
                items=schema_definition_property_,
                properties={
                    "properties_key": schema_definition_property_
                },
                required=["required"]
            )
        )],
        s3=bedrockagentcore.CfnGatewayTarget.S3ConfigurationProperty(
            bucket_owner_account_id="bucketOwnerAccountId",
            uri="uri"
        )
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrockagentcore.*;

SchemaDefinitionProperty schemaDefinitionProperty_;

McpLambdaTargetConfigurationProperty mcpLambdaTargetConfigurationProperty = McpLambdaTargetConfigurationProperty.builder()
        .lambdaArn("lambdaArn")
        .toolSchema(ToolSchemaProperty.builder()
                .inlinePayload(List.of(ToolDefinitionProperty.builder()
                        .description("description")
                        .inputSchema(SchemaDefinitionProperty.builder()
                                .type("type")

                                // the properties below are optional
                                .description("description")
                                .items(schemaDefinitionProperty_)
                                .properties(Map.of(
                                        "propertiesKey", schemaDefinitionProperty_))
                                .required(List.of("required"))
                                .build())
                        .name("name")

                        // the properties below are optional
                        .outputSchema(SchemaDefinitionProperty.builder()
                                .type("type")

                                // the properties below are optional
                                .description("description")
                                .items(schemaDefinitionProperty_)
                                .properties(Map.of(
                                        "propertiesKey", schemaDefinitionProperty_))
                                .required(List.of("required"))
                                .build())
                        .build()))
                .s3(S3ConfigurationProperty.builder()
                        .bucketOwnerAccountId("bucketOwnerAccountId")
                        .uri("uri")
                        .build())
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;

SchemaDefinitionProperty schemaDefinitionProperty_;

var mcpLambdaTargetConfigurationProperty = new McpLambdaTargetConfigurationProperty {
    LambdaArn = "lambdaArn",
    ToolSchema = new ToolSchemaProperty {
        InlinePayload = new [] { new ToolDefinitionProperty {
            Description = "description",
            InputSchema = new SchemaDefinitionProperty {
                Type = "type",

                // the properties below are optional
                Description = "description",
                Items = schemaDefinitionProperty_,
                Properties = new Dictionary<string, object> {
                    { "propertiesKey", schemaDefinitionProperty_ }
                },
                Required = new [] { "required" }
            },
            Name = "name",

            // the properties below are optional
            OutputSchema = new SchemaDefinitionProperty {
                Type = "type",

                // the properties below are optional
                Description = "description",
                Items = schemaDefinitionProperty_,
                Properties = new Dictionary<string, object> {
                    { "propertiesKey", schemaDefinitionProperty_ }
                },
                Required = new [] { "required" }
            }
        } },
        S3 = new S3ConfigurationProperty {
            BucketOwnerAccountId = "bucketOwnerAccountId",
            Uri = "uri"
        }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var schemaDefinitionProperty_ SchemaDefinitionProperty

mcpLambdaTargetConfigurationProperty := &McpLambdaTargetConfigurationProperty{
	LambdaArn: jsii.String("lambdaArn"),
	ToolSchema: &ToolSchemaProperty{
		InlinePayload: []interface{}{
			&ToolDefinitionProperty{
				Description: jsii.String("description"),
				InputSchema: &SchemaDefinitionProperty{
					Type: jsii.String("type"),

					// the properties below are optional
					Description: jsii.String("description"),
					Items: schemaDefinitionProperty_,
					Properties: map[string]interface{}{
						"propertiesKey": schemaDefinitionProperty_,
					},
					Required: []*string{
						jsii.String("required"),
					},
				},
				Name: jsii.String("name"),

				// the properties below are optional
				OutputSchema: &SchemaDefinitionProperty{
					Type: jsii.String("type"),

					// the properties below are optional
					Description: jsii.String("description"),
					Items: schemaDefinitionProperty_,
					Properties: map[string]interface{}{
						"propertiesKey": schemaDefinitionProperty_,
					},
					Required: []*string{
						jsii.String("required"),
					},
				},
			},
		},
		S3: &S3ConfigurationProperty{
			BucketOwnerAccountId: jsii.String("bucketOwnerAccountId"),
			Uri: jsii.String("uri"),
		},
	},
}

Properties ​

lambdaArnstringlambda_arnstrlambdaArnStringLambdaArnstringLambdaArn*string required #
The ARN of the Lambda target configuration.
toolSchemaIResolvable | CfnGatewayTarget.ToolSchemaPropertytool_schematyping.Union[IResolvable, ToolSchemaProperty]toolSchemaIResolvableToolSchemaIResolvableToolSchemainterface{} required #
The tool schema configuration for the gateway target MCP configuration for Lambda.