Class: AWSCDK::BedrockAgentCore::CfnGatewayTarget::TargetConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnGatewayTarget::TargetConfigurationProperty
- Defined in:
- bedrock_agent_core/cfn_gateway_target.rb
Overview
The target configuration.
Instance Attribute Summary collapse
- #http ⇒ AWSCDK::IResolvable, ... readonly
-
#mcp ⇒ AWSCDK::IResolvable, ...
readonly
The target configuration definition for MCP.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(http: nil, mcp: nil) ⇒ TargetConfigurationProperty
constructor
A new instance of TargetConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(http: nil, mcp: nil) ⇒ TargetConfigurationProperty
Returns a new instance of TargetConfigurationProperty.
2102 2103 2104 2105 2106 2107 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 2102 def initialize(http: nil, mcp: nil) @http = http.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::HttpTargetConfigurationProperty.new(**http.transform_keys(&:to_sym)) : http Jsii::Type.check_type(@http, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuSHR0cFRhcmdldENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "http") unless @http.nil? @mcp = mcp.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::McpTargetConfigurationProperty.new(**mcp.transform_keys(&:to_sym)) : mcp Jsii::Type.check_type(@mcp, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuTWNwVGFyZ2V0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "mcp") unless @mcp.nil? end |
Instance Attribute Details
#http ⇒ AWSCDK::IResolvable, ... (readonly)
2111 2112 2113 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 2111 def http @http end |
#mcp ⇒ AWSCDK::IResolvable, ... (readonly)
The target configuration definition for MCP.
2116 2117 2118 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 2116 def mcp @mcp end |
Class Method Details
.jsii_properties ⇒ Object
2118 2119 2120 2121 2122 2123 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 2118 def self.jsii_properties { :http => "http", :mcp => "mcp", } end |
Instance Method Details
#to_jsii ⇒ Object
2125 2126 2127 2128 2129 2130 2131 2132 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 2125 def to_jsii result = {} result.merge!({ "http" => @http, "mcp" => @mcp, }) result.compact end |