Class: AWSCDK::BedrockAgentCore::CfnGatewayTarget::ToolSchemaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnGatewayTarget::ToolSchemaProperty
- Defined in:
- bedrock_agent_core/cfn_gateway_target.rb
Overview
The tool schema for the gateway target.
Instance Attribute Summary collapse
-
#inline_payload ⇒ AWSCDK::IResolvable, ...
readonly
The inline payload for the gateway target.
-
#s3 ⇒ AWSCDK::IResolvable, ...
readonly
The S3 tool schema for the gateway target.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(inline_payload: nil, s3: nil) ⇒ ToolSchemaProperty
constructor
A new instance of ToolSchemaProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(inline_payload: nil, s3: nil) ⇒ ToolSchemaProperty
Returns a new instance of ToolSchemaProperty.
2204 2205 2206 2207 2208 2209 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 2204 def initialize(inline_payload: nil, s3: nil) @inline_payload = inline_payload Jsii::Type.check_type(@inline_payload, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5HYXRld2F5VGFyZ2V0LlRvb2xEZWZpbml0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "inlinePayload") unless @inline_payload.nil? @s3 = s3.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::S3ConfigurationProperty.new(**s3.transform_keys(&:to_sym)) : s3 Jsii::Type.check_type(@s3, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuUzNDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "s3") unless @s3.nil? end |
Instance Attribute Details
#inline_payload ⇒ AWSCDK::IResolvable, ... (readonly)
The inline payload for the gateway target.
2215 2216 2217 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 2215 def inline_payload @inline_payload end |
#s3 ⇒ AWSCDK::IResolvable, ... (readonly)
The S3 tool schema for the gateway target.
2220 2221 2222 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 2220 def s3 @s3 end |
Class Method Details
.jsii_properties ⇒ Object
2222 2223 2224 2225 2226 2227 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 2222 def self.jsii_properties { :inline_payload => "inlinePayload", :s3 => "s3", } end |
Instance Method Details
#to_jsii ⇒ Object
2229 2230 2231 2232 2233 2234 2235 2236 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 2229 def to_jsii result = {} result.merge!({ "inlinePayload" => @inline_payload, "s3" => @s3, }) result.compact end |