Class: AWSCDK::BedrockAgentCore::CfnRuntime::CustomClaimValidationTypeProperty

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

Overview

Required custom claim.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authorizing_claim_match_value:, inbound_token_claim_name:, inbound_token_claim_value_type:) ⇒ CustomClaimValidationTypeProperty

Returns a new instance of CustomClaimValidationTypeProperty.

Parameters:



1009
1010
1011
1012
1013
1014
1015
1016
# File 'bedrock_agent_core/cfn_runtime.rb', line 1009

def initialize(authorizing_claim_match_value:, inbound_token_claim_name:, inbound_token_claim_value_type:)
  @authorizing_claim_match_value = authorizing_claim_match_value.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnRuntime::AuthorizingClaimMatchValueTypeProperty.new(**authorizing_claim_match_value.transform_keys(&:to_sym)) : authorizing_claim_match_value
  Jsii::Type.check_type(@authorizing_claim_match_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblJ1bnRpbWUuQXV0aG9yaXppbmdDbGFpbU1hdGNoVmFsdWVUeXBlUHJvcGVydHkifV19fQ==")), "authorizingClaimMatchValue")
  @inbound_token_claim_name = inbound_token_claim_name
  Jsii::Type.check_type(@inbound_token_claim_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inboundTokenClaimName")
  @inbound_token_claim_value_type = inbound_token_claim_value_type
  Jsii::Type.check_type(@inbound_token_claim_value_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inboundTokenClaimValueType")
end

Instance Attribute Details

#authorizing_claim_match_valueAWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnRuntime::AuthorizingClaimMatchValueTypeProperty (readonly)

The value or values in the custom claim to match and relationship of match.



1022
1023
1024
# File 'bedrock_agent_core/cfn_runtime.rb', line 1022

def authorizing_claim_match_value
  @authorizing_claim_match_value
end

#inbound_token_claim_nameString (readonly)

The name of the custom claim to validate.



1027
1028
1029
# File 'bedrock_agent_core/cfn_runtime.rb', line 1027

def inbound_token_claim_name
  @inbound_token_claim_name
end

#inbound_token_claim_value_typeString (readonly)

Token claim data type.



1032
1033
1034
# File 'bedrock_agent_core/cfn_runtime.rb', line 1032

def inbound_token_claim_value_type
  @inbound_token_claim_value_type
end

Class Method Details

.jsii_propertiesObject



1034
1035
1036
1037
1038
1039
1040
# File 'bedrock_agent_core/cfn_runtime.rb', line 1034

def self.jsii_properties
  {
    :authorizing_claim_match_value => "authorizingClaimMatchValue",
    :inbound_token_claim_name => "inboundTokenClaimName",
    :inbound_token_claim_value_type => "inboundTokenClaimValueType",
  }
end

Instance Method Details

#to_jsiiObject



1042
1043
1044
1045
1046
1047
1048
1049
1050
# File 'bedrock_agent_core/cfn_runtime.rb', line 1042

def to_jsii
  result = {}
  result.merge!({
    "authorizingClaimMatchValue" => @authorizing_claim_match_value,
    "inboundTokenClaimName" => @inbound_token_claim_name,
    "inboundTokenClaimValueType" => @inbound_token_claim_value_type,
  })
  result.compact
end