Skip to content
v2.275.0

TargetConfigurationProperty Struct ​

The 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 parameterValues: any;
declare const schemaDefinitionProperty_: bedrockagentcore.CfnGatewayTarget.SchemaDefinitionProperty;
const targetConfigurationProperty: bedrockagentcore.CfnGatewayTarget.TargetConfigurationProperty = {
  http: {
    agentcoreRuntime: {
      arn: 'arn',

      // the properties below are optional
      qualifier: 'qualifier',
      schema: {
        source: {
          inlinePayload: 'inlinePayload',
          s3: {
            bucketOwnerAccountId: 'bucketOwnerAccountId',
            uri: 'uri',
          },
        },
      },
    },
    connector: {
      source: {
        connectorId: 'connectorId',
      },

      // the properties below are optional
      parameters: {
        parametersKey: 'parameters',
      },
    },
    passthrough: {
      endpoint: 'endpoint',
      protocolType: 'protocolType',

      // the properties below are optional
      schema: {
        source: {
          inlinePayload: 'inlinePayload',
          s3: {
            bucketOwnerAccountId: 'bucketOwnerAccountId',
            uri: 'uri',
          },
        },
      },
      stickinessConfiguration: {
        identifier: 'identifier',

        // the properties below are optional
        timeout: 123,
      },
    },
  },
  inference: {
    connector: {
      source: {
        connectorId: 'connectorId',
      },
    },
    provider: {
      endpoint: 'endpoint',

      // the properties below are optional
      modelMapping: {
        providerPrefix: {
          separator: 'separator',
          strip: false,
        },
      },
      operations: [{
        path: 'path',

        // the properties below are optional
        models: [{
          model: 'model',
        }],
        providerPath: 'providerPath',
      }],
    },
  },
  mcp: {
    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',
      },
    },
  },
};

Properties ​

httpoptionalIResolvable | CfnGatewayTarget.HttpTargetConfigurationPropertyhttpoptionaltyping.Union[IResolvable, HttpTargetConfigurationProperty]httpoptionalIResolvableHttpoptionalIResolvableHttpoptionalinterface{}#
inferenceoptionalIResolvable | CfnGatewayTarget.InferenceTargetConfigurationPropertyinferenceoptionaltyping.Union[IResolvable, InferenceTargetConfigurationProperty]inferenceoptionalIResolvableInferenceoptionalIResolvableInferenceoptionalinterface{}#
mcpoptionalIResolvable | CfnGatewayTarget.McpTargetConfigurationPropertymcpoptionaltyping.Union[IResolvable, McpTargetConfigurationProperty]mcpoptionalIResolvableMcpoptionalIResolvableMcpoptionalinterface{}#
The target configuration definition for MCP.