Class: AWSCDK::BedrockAgentCore::RequestHeaderConfiguration

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(allowlisted_headers: nil) ⇒ RequestHeaderConfiguration

Returns a new instance of RequestHeaderConfiguration.

Parameters:

  • allowlisted_headers (Array<String>, nil) (defaults to: nil)

    A list of HTTP request headers that are allowed to be passed through to the runtime.



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_headersArray<String>? (readonly)

Note:

Default: - No request headers allowed

A list of HTTP request headers that are allowed to be passed through to the runtime.

Returns:

  • (Array<String>, nil)


17
18
19
# File 'bedrock_agent_core/request_header_configuration.rb', line 17

def allowlisted_headers
  @allowlisted_headers
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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