Class: AWSCDK::Bedrock::CfnPromptVersion::ToolInputSchemaProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_prompt_version.rb

Overview

The schema for the tool.

The top level schema type must be object . For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json:) ⇒ ToolInputSchemaProperty

Returns a new instance of ToolInputSchemaProperty.

Parameters:

  • json (Object)

    The JSON schema for the tool.



1440
1441
1442
1443
# File 'bedrock/cfn_prompt_version.rb', line 1440

def initialize(json:)
  @json = json
  Jsii::Type.check_type(@json, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "json")
end

Instance Attribute Details

#jsonObject (readonly)

The JSON schema for the tool.

For more information, see JSON Schema Reference .



1451
1452
1453
# File 'bedrock/cfn_prompt_version.rb', line 1451

def json
  @json
end

Class Method Details

.jsii_propertiesObject



1453
1454
1455
1456
1457
# File 'bedrock/cfn_prompt_version.rb', line 1453

def self.jsii_properties
  {
    :json => "json",
  }
end

Instance Method Details

#to_jsiiObject



1459
1460
1461
1462
1463
1464
1465
# File 'bedrock/cfn_prompt_version.rb', line 1459

def to_jsii
  result = {}
  result.merge!({
    "json" => @json,
  })
  result.compact
end