Class: AWSCDK::BedrockAgentCore::CfnGateway::CustomClaimValidationTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnGateway::CustomClaimValidationTypeProperty
- Defined in:
- bedrock_agent_core/cfn_gateway.rb
Overview
Required custom claim.
Instance Attribute Summary collapse
-
#authorizing_claim_match_value ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnGateway::AuthorizingClaimMatchValueTypeProperty
readonly
The value or values in the custom claim to match and relationship of match.
-
#inbound_token_claim_name ⇒ String
readonly
The name of the custom claim to validate.
-
#inbound_token_claim_value_type ⇒ String
readonly
Token claim data type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(authorizing_claim_match_value:, inbound_token_claim_name:, inbound_token_claim_value_type:) ⇒ CustomClaimValidationTypeProperty
constructor
A new instance of CustomClaimValidationTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(authorizing_claim_match_value:, inbound_token_claim_name:, inbound_token_claim_value_type:) ⇒ CustomClaimValidationTypeProperty
Returns a new instance of CustomClaimValidationTypeProperty.
829 830 831 832 833 834 835 836 |
# File 'bedrock_agent_core/cfn_gateway.rb', line 829 def initialize(authorizing_claim_match_value:, inbound_token_claim_name:, inbound_token_claim_value_type:) @authorizing_claim_match_value = .is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGateway::AuthorizingClaimMatchValueTypeProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@authorizing_claim_match_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXkuQXV0aG9yaXppbmdDbGFpbU1hdGNoVmFsdWVUeXBlUHJvcGVydHkifV19fQ==")), "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_value ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnGateway::AuthorizingClaimMatchValueTypeProperty (readonly)
The value or values in the custom claim to match and relationship of match.
842 843 844 |
# File 'bedrock_agent_core/cfn_gateway.rb', line 842 def @authorizing_claim_match_value end |
#inbound_token_claim_name ⇒ String (readonly)
The name of the custom claim to validate.
847 848 849 |
# File 'bedrock_agent_core/cfn_gateway.rb', line 847 def inbound_token_claim_name @inbound_token_claim_name end |
#inbound_token_claim_value_type ⇒ String (readonly)
Token claim data type.
852 853 854 |
# File 'bedrock_agent_core/cfn_gateway.rb', line 852 def inbound_token_claim_value_type @inbound_token_claim_value_type end |
Class Method Details
.jsii_properties ⇒ Object
854 855 856 857 858 859 860 |
# File 'bedrock_agent_core/cfn_gateway.rb', line 854 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_jsii ⇒ Object
862 863 864 865 866 867 868 869 870 |
# File 'bedrock_agent_core/cfn_gateway.rb', line 862 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 |