Skip to content
v2.274.0

ToolDefinitionProperty Struct ​

The tool definition for the gateway.

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 toolDefinitionProperty: bedrockagentcore.CfnGatewayTarget.ToolDefinitionProperty = {
  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'],
  },
};

Properties ​

descriptionstringdescriptionstrdescriptionStringDescriptionstringDescription*stringrequired#
inputSchemaIResolvable | CfnGatewayTarget.SchemaDefinitionPropertyinput_schematyping.Union[IResolvable, SchemaDefinitionProperty]inputSchemaIResolvableInputSchemaIResolvableInputSchemainterface{}required#
The input schema for the gateway target.
namestringnamestrnameStringNamestringName*stringrequired#
The tool name.
outputSchemaoptionalIResolvable | CfnGatewayTarget.SchemaDefinitionPropertyoutput_schemaoptionaltyping.Union[IResolvable, SchemaDefinitionProperty]outputSchemaoptionalIResolvableOutputSchemaoptionalIResolvableOutputSchemaoptionalinterface{}#
The tool definition output schema for the gateway target.