Class: AWSCDK::BedrockAgentCore::CfnGatewayTarget::MetadataConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnGatewayTarget::MetadataConfigurationProperty
- Defined in:
- bedrock_agent_core/cfn_gateway_target.rb
Overview
Instance Attribute Summary collapse
- #allowed_query_parameters ⇒ Array<String>? readonly
- #allowed_request_headers ⇒ Array<String>? readonly
- #allowed_response_headers ⇒ Array<String>? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allowed_query_parameters: nil, allowed_request_headers: nil, allowed_response_headers: nil) ⇒ MetadataConfigurationProperty
constructor
A new instance of MetadataConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allowed_query_parameters: nil, allowed_request_headers: nil, allowed_response_headers: nil) ⇒ MetadataConfigurationProperty
Returns a new instance of MetadataConfigurationProperty.
1633 1634 1635 1636 1637 1638 1639 1640 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1633 def initialize(allowed_query_parameters: nil, allowed_request_headers: nil, allowed_response_headers: nil) @allowed_query_parameters = allowed_query_parameters Jsii::Type.check_type(@allowed_query_parameters, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedQueryParameters") unless @allowed_query_parameters.nil? @allowed_request_headers = allowed_request_headers Jsii::Type.check_type(@allowed_request_headers, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedRequestHeaders") unless @allowed_request_headers.nil? @allowed_response_headers = allowed_response_headers Jsii::Type.check_type(@allowed_response_headers, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedResponseHeaders") unless @allowed_response_headers.nil? end |
Instance Attribute Details
#allowed_query_parameters ⇒ Array<String>? (readonly)
1644 1645 1646 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1644 def allowed_query_parameters @allowed_query_parameters end |
#allowed_request_headers ⇒ Array<String>? (readonly)
1647 1648 1649 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1647 def allowed_request_headers @allowed_request_headers end |
#allowed_response_headers ⇒ Array<String>? (readonly)
1650 1651 1652 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1650 def allowed_response_headers @allowed_response_headers end |
Class Method Details
.jsii_properties ⇒ Object
1652 1653 1654 1655 1656 1657 1658 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1652 def self.jsii_properties { :allowed_query_parameters => "allowedQueryParameters", :allowed_request_headers => "allowedRequestHeaders", :allowed_response_headers => "allowedResponseHeaders", } end |
Instance Method Details
#to_jsii ⇒ Object
1660 1661 1662 1663 1664 1665 1666 1667 1668 |
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1660 def to_jsii result = {} result.merge!({ "allowedQueryParameters" => @allowed_query_parameters, "allowedRequestHeaders" => @allowed_request_headers, "allowedResponseHeaders" => @allowed_response_headers, }) result.compact end |