Class: AWSCDK::BedrockAgentCore::CfnGatewayTarget::HttpTargetConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_gateway_target.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(agentcore_runtime: nil, passthrough: nil) ⇒ HttpTargetConfigurationProperty

Returns a new instance of HttpTargetConfigurationProperty.



1242
1243
1244
1245
1246
1247
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1242

def initialize(agentcore_runtime: nil, passthrough: nil)
  @agentcore_runtime = agentcore_runtime.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::RuntimeTargetConfigurationProperty.new(**agentcore_runtime.transform_keys(&:to_sym)) : agentcore_runtime
  Jsii::Type.check_type(@agentcore_runtime, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuUnVudGltZVRhcmdldENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "agentcoreRuntime") unless @agentcore_runtime.nil?
  @passthrough = passthrough.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::PassthroughTargetConfigurationProperty.new(**passthrough.transform_keys(&:to_sym)) : passthrough
  Jsii::Type.check_type(@passthrough, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuUGFzc3Rocm91Z2hUYXJnZXRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "passthrough") unless @passthrough.nil?
end

Class Method Details

.jsii_propertiesObject



1256
1257
1258
1259
1260
1261
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1256

def self.jsii_properties
  {
    :agentcore_runtime => "agentcoreRuntime",
    :passthrough => "passthrough",
  }
end

Instance Method Details

#to_jsiiObject



1263
1264
1265
1266
1267
1268
1269
1270
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1263

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