Class: AWSCDK::BedrockAgentCore::RequestHeaderConfiguration
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::RequestHeaderConfiguration
- Defined in:
- bedrock_agent_core/request_header_configuration.rb
Overview
Configuration for HTTP request headers that will be passed through to the runtime.
Instance Attribute Summary collapse
-
#allowlisted_headers ⇒ Array<String>?
readonly
A list of HTTP request headers that are allowed to be passed through to the runtime.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allowlisted_headers: nil) ⇒ RequestHeaderConfiguration
constructor
A new instance of RequestHeaderConfiguration.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allowlisted_headers: nil) ⇒ RequestHeaderConfiguration
Returns a new instance of RequestHeaderConfiguration.
8 9 10 11 |
# File 'bedrock_agent_core/request_header_configuration.rb', line 8 def initialize(allowlisted_headers: nil) @allowlisted_headers = allowlisted_headers Jsii::Type.check_type(@allowlisted_headers, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowlistedHeaders") unless @allowlisted_headers.nil? end |
Instance Attribute Details
#allowlisted_headers ⇒ Array<String>? (readonly)
Note:
Default: - No request headers allowed
A list of HTTP request headers that are allowed to be passed through to the runtime.
17 18 19 |
# File 'bedrock_agent_core/request_header_configuration.rb', line 17 def allowlisted_headers @allowlisted_headers end |
Class Method Details
.jsii_properties ⇒ Object
19 20 21 22 23 |
# File 'bedrock_agent_core/request_header_configuration.rb', line 19 def self.jsii_properties { :allowlisted_headers => "allowlistedHeaders", } end |
Instance Method Details
#to_jsii ⇒ Object
25 26 27 28 29 30 31 |
# File 'bedrock_agent_core/request_header_configuration.rb', line 25 def to_jsii result = {} result.merge!({ "allowlistedHeaders" => @allowlisted_headers, }) result.compact end |