ToolSchemaProperty Struct
The tool schema for the gateway target.
| Source | |
|---|---|
| Type last changed |
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 toolSchemaProperty: bedrockagentcore.CfnGatewayTarget.ToolSchemaProperty = {
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
tool_schema_property = 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_;
ToolSchemaProperty toolSchemaProperty = 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();
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 toolSchemaProperty = 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
toolSchemaProperty := &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
inlinePayloadoptionalIResolvable | IResolvable | CfnGatewayTarget.inline_payloadoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ToolDefinitionProperty]]]inlinePayloadoptionalIResolvableInlinePayloadoptionalIResolvableInlinePayloadoptionalinterface{} #The inline payload for the gateway target.
s3optionalIResolvable | CfnGatewayTarget.s3optionaltyping.Union[IResolvable, S3ConfigurationProperty]s3optionalIResolvableS3optionalIResolvableS3optionalinterface{} #The S3 tool schema for the gateway target.