Class: AWSCDK::BedrockAgentCore::CfnGatewayTarget::PassthroughTargetConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnGatewayTarget::PassthroughTargetConfigurationProperty
- Defined in:
- bedrock_agent_core/cfn_gateway_target.rb
Overview
Instance Attribute Summary collapse
- #endpoint ⇒ String readonly
- #protocol_type ⇒ String readonly
- #schema ⇒ AWSCDK::IResolvable, ... readonly
- #stickiness_configuration ⇒ AWSCDK::IResolvable, ... readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(endpoint:, protocol_type:, schema: nil, stickiness_configuration: nil) ⇒ PassthroughTargetConfigurationProperty
constructor
A new instance of PassthroughTargetConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(endpoint:, protocol_type:, schema: nil, stickiness_configuration: nil) ⇒ PassthroughTargetConfigurationProperty
Returns a new instance of PassthroughTargetConfigurationProperty.
1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1787 def initialize(endpoint:, protocol_type:, schema: nil, stickiness_configuration: nil) @endpoint = endpoint Jsii::Type.check_type(@endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpoint") @protocol_type = protocol_type Jsii::Type.check_type(@protocol_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protocolType") @schema = schema.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::HttpAPISchemaConfigurationProperty.new(**schema.transform_keys(&:to_sym)) : schema Jsii::Type.check_type(@schema, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuSHR0cEFwaVNjaGVtYUNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "schema") unless @schema.nil? @stickiness_configuration = stickiness_configuration.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::StickinessConfigurationProperty.new(**stickiness_configuration.transform_keys(&:to_sym)) : stickiness_configuration Jsii::Type.check_type(@stickiness_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuU3RpY2tpbmVzc0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "stickinessConfiguration") unless @stickiness_configuration.nil? end |
Instance Attribute Details
#endpoint ⇒ String (readonly)
1800 1801 1802 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1800 def endpoint @endpoint end |
#protocol_type ⇒ String (readonly)
1803 1804 1805 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1803 def protocol_type @protocol_type end |
#schema ⇒ AWSCDK::IResolvable, ... (readonly)
1806 1807 1808 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1806 def schema @schema end |
#stickiness_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
1809 1810 1811 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1809 def stickiness_configuration @stickiness_configuration end |
Class Method Details
.jsii_properties ⇒ Object
1811 1812 1813 1814 1815 1816 1817 1818 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1811 def self.jsii_properties { :endpoint => "endpoint", :protocol_type => "protocolType", :schema => "schema", :stickiness_configuration => "stickinessConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1820 def to_jsii result = {} result.merge!({ "endpoint" => @endpoint, "protocolType" => @protocol_type, "schema" => @schema, "stickinessConfiguration" => @stickiness_configuration, }) result.compact end |