# McpServerTargetConfigurationProperty

- Source: Generated at build time
- Type last changed: v2.260.0 · 16 Jun 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';
const mcpServerTargetConfigurationProperty: bedrockagentcore.CfnGatewayTarget.McpServerTargetConfigurationProperty = {
  endpoint: 'endpoint',

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

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

mcp_server_target_configuration_property = 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
)
```

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

McpServerTargetConfigurationProperty mcpServerTargetConfigurationProperty = 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();
```

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 mcpServerTargetConfigurationProperty = 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
};
```

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"

mcpServerTargetConfigurationProperty := &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),
}
```

## Properties

- `endpoint`: string (required)

- `listingMode`: string

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

- `resourcePriority`: number
