# McpTargetConfigurationProperty

The MCP target configuration for the gateway target.

- Source: Generated at build time
- Type last changed: v2.261.0 · 2 Jul 2026

## Example

TypeScript:

```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 parameterValues: any;
declare const schemaDefinitionProperty_: bedrockagentcore.CfnGatewayTarget.SchemaDefinitionProperty;
const mcpTargetConfigurationProperty: bedrockagentcore.CfnGatewayTarget.McpTargetConfigurationProperty = {
  apiGateway: {
    apiGatewayToolConfiguration: {
      toolFilters: [{
        filterPath: 'filterPath',
        methods: ['methods'],
      }],

      // the properties below are optional
      toolOverrides: [{
        method: 'method',
        name: 'name',
        path: 'path',

        // the properties below are optional
        description: 'description',
      }],
    },
    restApiId: 'restApiId',
    stage: 'stage',
  },
  connector: {
    source: {
      connectorId: 'connectorId',
    },

    // the properties below are optional
    configurations: [{
      name: 'name',

      // the properties below are optional
      description: 'description',
      parameterOverrides: [{
        path: 'path',

        // the properties below are optional
        description: 'description',
        visible: false,
      }],
      parameterValues: parameterValues,
    }],
    enabled: ['enabled'],
  },
  lambda: {
    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',
      },
    },
  },
  mcpServer: {
    endpoint: 'endpoint',

    // the properties below are optional
    listingMode: 'listingMode',
    mcpToolSchema: {
      inlinePayload: 'inlinePayload',
      s3: {
        bucketOwnerAccountId: 'bucketOwnerAccountId',
        uri: 'uri',
      },
    },
    resourcePriority: 123,
  },
  openApiSchema: {
    inlinePayload: 'inlinePayload',
    s3: {
      bucketOwnerAccountId: 'bucketOwnerAccountId',
      uri: 'uri',
    },
  },
  smithyModel: {
    inlinePayload: 'inlinePayload',
    s3: {
      bucketOwnerAccountId: 'bucketOwnerAccountId',
      uri: 'uri',
    },
  },
};
```

Python:

```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

# parameter_values: Any
# schema_definition_property_: bedrockagentcore.CfnGatewayTarget.SchemaDefinitionProperty

mcp_target_configuration_property = bedrockagentcore.CfnGatewayTarget.McpTargetConfigurationProperty(
    api_gateway=bedrockagentcore.CfnGatewayTarget.ApiGatewayTargetConfigurationProperty(
        api_gateway_tool_configuration=bedrockagentcore.CfnGatewayTarget.ApiGatewayToolConfigurationProperty(
            tool_filters=[bedrockagentcore.CfnGatewayTarget.ApiGatewayToolFilterProperty(
                filter_path="filterPath",
                methods=["methods"]
            )],

            # the properties below are optional
            tool_overrides=[bedrockagentcore.CfnGatewayTarget.ApiGatewayToolOverrideProperty(
                method="method",
                name="name",
                path="path",

                # the properties below are optional
                description="description"
            )]
        ),
        rest_api_id="restApiId",
        stage="stage"
    ),
    connector=bedrockagentcore.CfnGatewayTarget.ConnectorTargetConfigurationProperty(
        source=bedrockagentcore.CfnGatewayTarget.ConnectorSourceProperty(
            connector_id="connectorId"
        ),

        # the properties below are optional
        configurations=[bedrockagentcore.CfnGatewayTarget.ConnectorConfigurationProperty(
            name="name",

            # the properties below are optional
            description="description",
            parameter_overrides=[bedrockagentcore.CfnGatewayTarget.ConnectorParameterOverrideProperty(
                path="path",

                # the properties below are optional
                description="description",
                visible=False
            )],
            parameter_values=parameter_values
        )],
        enabled=["enabled"]
    ),
    lambda_=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"
            )
        )
    ),
    mcp_server=bedrockagentcore.CfnGatewayTarget.McpServerTargetConfigurationProperty(
        endpoint="endpoint",

        # the properties below are optional
        listing_mode="listingMode",
        mcp_tool_schema=bedrockagentcore.CfnGatewayTarget.McpToolSchemaConfigurationProperty(
            inline_payload="inlinePayload",
            s3=bedrockagentcore.CfnGatewayTarget.S3ConfigurationProperty(
                bucket_owner_account_id="bucketOwnerAccountId",
                uri="uri"
            )
        ),
        resource_priority=123
    ),
    open_api_schema=bedrockagentcore.CfnGatewayTarget.ApiSchemaConfigurationProperty(
        inline_payload="inlinePayload",
        s3=bedrockagentcore.CfnGatewayTarget.S3ConfigurationProperty(
            bucket_owner_account_id="bucketOwnerAccountId",
            uri="uri"
        )
    ),
    smithy_model=bedrockagentcore.CfnGatewayTarget.ApiSchemaConfigurationProperty(
        inline_payload="inlinePayload",
        s3=bedrockagentcore.CfnGatewayTarget.S3ConfigurationProperty(
            bucket_owner_account_id="bucketOwnerAccountId",
            uri="uri"
        )
    )
)
```

Java:

```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.*;

Object parameterValues;
SchemaDefinitionProperty schemaDefinitionProperty_;

McpTargetConfigurationProperty mcpTargetConfigurationProperty = McpTargetConfigurationProperty.builder()
        .apiGateway(ApiGatewayTargetConfigurationProperty.builder()
                .apiGatewayToolConfiguration(ApiGatewayToolConfigurationProperty.builder()
                        .toolFilters(List.of(ApiGatewayToolFilterProperty.builder()
                                .filterPath("filterPath")
                                .methods(List.of("methods"))
                                .build()))

                        // the properties below are optional
                        .toolOverrides(List.of(ApiGatewayToolOverrideProperty.builder()
                                .method("method")
                                .name("name")
                                .path("path")

                                // the properties below are optional
                                .description("description")
                                .build()))
                        .build())
                .restApiId("restApiId")
                .stage("stage")
                .build())
        .connector(ConnectorTargetConfigurationProperty.builder()
                .source(ConnectorSourceProperty.builder()
                        .connectorId("connectorId")
                        .build())

                // the properties below are optional
                .configurations(List.of(ConnectorConfigurationProperty.builder()
                        .name("name")

                        // the properties below are optional
                        .description("description")
                        .parameterOverrides(List.of(ConnectorParameterOverrideProperty.builder()
                                .path("path")

                                // the properties below are optional
                                .description("description")
                                .visible(false)
                                .build()))
                        .parameterValues(parameterValues)
                        .build()))
                .enabled(List.of("enabled"))
                .build())
        .lambda(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())
        .mcpServer(McpServerTargetConfigurationProperty.builder()
                .endpoint("endpoint")

                // the properties below are optional
                .listingMode("listingMode")
                .mcpToolSchema(McpToolSchemaConfigurationProperty.builder()
                        .inlinePayload("inlinePayload")
                        .s3(S3ConfigurationProperty.builder()
                                .bucketOwnerAccountId("bucketOwnerAccountId")
                                .uri("uri")
                                .build())
                        .build())
                .resourcePriority(123)
                .build())
        .openApiSchema(ApiSchemaConfigurationProperty.builder()
                .inlinePayload("inlinePayload")
                .s3(S3ConfigurationProperty.builder()
                        .bucketOwnerAccountId("bucketOwnerAccountId")
                        .uri("uri")
                        .build())
                .build())
        .smithyModel(ApiSchemaConfigurationProperty.builder()
                .inlinePayload("inlinePayload")
                .s3(S3ConfigurationProperty.builder()
                        .bucketOwnerAccountId("bucketOwnerAccountId")
                        .uri("uri")
                        .build())
                .build())
        .build();
```

C# / .NET:

```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;

var parameterValues;
SchemaDefinitionProperty schemaDefinitionProperty_;

var mcpTargetConfigurationProperty = new McpTargetConfigurationProperty {
    ApiGateway = new ApiGatewayTargetConfigurationProperty {
        ApiGatewayToolConfiguration = new ApiGatewayToolConfigurationProperty {
            ToolFilters = new [] { new ApiGatewayToolFilterProperty {
                FilterPath = "filterPath",
                Methods = new [] { "methods" }
            } },

            // the properties below are optional
            ToolOverrides = new [] { new ApiGatewayToolOverrideProperty {
                Method = "method",
                Name = "name",
                Path = "path",

                // the properties below are optional
                Description = "description"
            } }
        },
        RestApiId = "restApiId",
        Stage = "stage"
    },
    Connector = new ConnectorTargetConfigurationProperty {
        Source = new ConnectorSourceProperty {
            ConnectorId = "connectorId"
        },

        // the properties below are optional
        Configurations = new [] { new ConnectorConfigurationProperty {
            Name = "name",

            // the properties below are optional
            Description = "description",
            ParameterOverrides = new [] { new ConnectorParameterOverrideProperty {
                Path = "path",

                // the properties below are optional
                Description = "description",
                Visible = false
            } },
            ParameterValues = parameterValues
        } },
        Enabled = new [] { "enabled" }
    },
    Lambda = 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"
            }
        }
    },
    McpServer = new McpServerTargetConfigurationProperty {
        Endpoint = "endpoint",

        // the properties below are optional
        ListingMode = "listingMode",
        McpToolSchema = new McpToolSchemaConfigurationProperty {
            InlinePayload = "inlinePayload",
            S3 = new S3ConfigurationProperty {
                BucketOwnerAccountId = "bucketOwnerAccountId",
                Uri = "uri"
            }
        },
        ResourcePriority = 123
    },
    OpenApiSchema = new ApiSchemaConfigurationProperty {
        InlinePayload = "inlinePayload",
        S3 = new S3ConfigurationProperty {
            BucketOwnerAccountId = "bucketOwnerAccountId",
            Uri = "uri"
        }
    },
    SmithyModel = new ApiSchemaConfigurationProperty {
        InlinePayload = "inlinePayload",
        S3 = new S3ConfigurationProperty {
            BucketOwnerAccountId = "bucketOwnerAccountId",
            Uri = "uri"
        }
    }
};
```

Golang:

```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 parameterValues interface{}
var schemaDefinitionProperty_ SchemaDefinitionProperty

mcpTargetConfigurationProperty := &McpTargetConfigurationProperty{
	ApiGateway: &ApiGatewayTargetConfigurationProperty{
		ApiGatewayToolConfiguration: &ApiGatewayToolConfigurationProperty{
			ToolFilters: []interface{}{
				&ApiGatewayToolFilterProperty{
					FilterPath: jsii.String("filterPath"),
					Methods: []*string{
						jsii.String("methods"),
					},
				},
			},

			// the properties below are optional
			ToolOverrides: []interface{}{
				&ApiGatewayToolOverrideProperty{
					Method: jsii.String("method"),
					Name: jsii.String("name"),
					Path: jsii.String("path"),

					// the properties below are optional
					Description: jsii.String("description"),
				},
			},
		},
		RestApiId: jsii.String("restApiId"),
		Stage: jsii.String("stage"),
	},
	Connector: &ConnectorTargetConfigurationProperty{
		Source: &ConnectorSourceProperty{
			ConnectorId: jsii.String("connectorId"),
		},

		// the properties below are optional
		Configurations: []interface{}{
			&ConnectorConfigurationProperty{
				Name: jsii.String("name"),

				// the properties below are optional
				Description: jsii.String("description"),
				ParameterOverrides: []interface{}{
					&ConnectorParameterOverrideProperty{
						Path: jsii.String("path"),

						// the properties below are optional
						Description: jsii.String("description"),
						Visible: jsii.Boolean(false),
					},
				},
				ParameterValues: parameterValues,
			},
		},
		Enabled: []*string{
			jsii.String("enabled"),
		},
	},
	Lambda: &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"),
			},
		},
	},
	McpServer: &McpServerTargetConfigurationProperty{
		Endpoint: jsii.String("endpoint"),

		// the properties below are optional
		ListingMode: jsii.String("listingMode"),
		McpToolSchema: &McpToolSchemaConfigurationProperty{
			InlinePayload: jsii.String("inlinePayload"),
			S3: &S3ConfigurationProperty{
				BucketOwnerAccountId: jsii.String("bucketOwnerAccountId"),
				Uri: jsii.String("uri"),
			},
		},
		ResourcePriority: jsii.Number(123),
	},
	OpenApiSchema: &ApiSchemaConfigurationProperty{
		InlinePayload: jsii.String("inlinePayload"),
		S3: &S3ConfigurationProperty{
			BucketOwnerAccountId: jsii.String("bucketOwnerAccountId"),
			Uri: jsii.String("uri"),
		},
	},
	SmithyModel: &ApiSchemaConfigurationProperty{
		InlinePayload: jsii.String("inlinePayload"),
		S3: &S3ConfigurationProperty{
			BucketOwnerAccountId: jsii.String("bucketOwnerAccountId"),
			Uri: jsii.String("uri"),
		},
	},
}
```

## Properties

- `apiGateway`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGatewayTarget.ApiGatewayTargetConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnGatewayTarget.ApiGatewayTargetConfigurationProperty.html)

- `connector`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGatewayTarget.ConnectorTargetConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnGatewayTarget.ConnectorTargetConfigurationProperty.html)

- `lambda`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGatewayTarget.McpLambdaTargetConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnGatewayTarget.McpLambdaTargetConfigurationProperty.html) — The Lambda MCP configuration for the gateway target.

- `mcpServer`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGatewayTarget.McpServerTargetConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnGatewayTarget.McpServerTargetConfigurationProperty.html)

- `openApiSchema`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGatewayTarget.ApiSchemaConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnGatewayTarget.ApiSchemaConfigurationProperty.html) — The OpenApi schema for the gateway target MCP configuration.

- `smithyModel`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGatewayTarget.ApiSchemaConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnGatewayTarget.ApiSchemaConfigurationProperty.html) — The target configuration for the Smithy model target.
