Class: AWSCDK::BedrockAgentCore::FromAPIKeyIdentityOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/from_api_key_identity_options.rb

Overview

Optional gateway settings when binding an IApiKeyCredentialProvider to a target.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(credential_location: nil) ⇒ FromAPIKeyIdentityOptions

Returns a new instance of FromAPIKeyIdentityOptions.

Parameters:



8
9
10
11
# File 'bedrock_agent_core/from_api_key_identity_options.rb', line 8

def initialize(credential_location: nil)
  @credential_location = credential_location
  Jsii::Type.check_type(@credential_location, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5BcGlLZXlDcmVkZW50aWFsTG9jYXRpb24ifQ==")), "credentialLocation") unless @credential_location.nil?
end

Instance Attribute Details

#credential_locationAWSCDK::BedrockAgentCore::APIKeyCredentialLocation? (readonly)

Note:

Default: header Authorization with Bearer prefix

Where to place the API key on outbound requests.



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

def credential_location
  @credential_location
end

Class Method Details

.jsii_propertiesObject



19
20
21
22
23
# File 'bedrock_agent_core/from_api_key_identity_options.rb', line 19

def self.jsii_properties
  {
    :credential_location => "credentialLocation",
  }
end

Instance Method Details

#to_jsiiObject



25
26
27
28
29
30
31
# File 'bedrock_agent_core/from_api_key_identity_options.rb', line 25

def to_jsii
  result = {}
  result.merge!({
    "credentialLocation" => @credential_location,
  })
  result.compact
end