Class: AWSCDK::Kendra::CfnIndex::UserTokenConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Kendra::CfnIndex::UserTokenConfigurationProperty
- Defined in:
- kendra/cfn_index.rb
Overview
Provides the configuration information for a token.
If you're using an Amazon Kendra Gen AI Enterprise Edition index and you try to use
UserTokenConfigurationsto configure user context policy, Amazon Kendra returns aValidationExceptionerror.
Instance Attribute Summary collapse
-
#json_token_type_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Information about the JSON token type configuration.
-
#jwt_token_type_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Information about the JWT token type configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(json_token_type_configuration: nil, jwt_token_type_configuration: nil) ⇒ UserTokenConfigurationProperty
constructor
A new instance of UserTokenConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(json_token_type_configuration: nil, jwt_token_type_configuration: nil) ⇒ UserTokenConfigurationProperty
Returns a new instance of UserTokenConfigurationProperty.
1130 1131 1132 1133 1134 1135 |
# File 'kendra/cfn_index.rb', line 1130 def initialize(json_token_type_configuration: nil, jwt_token_type_configuration: nil) @json_token_type_configuration = json_token_type_configuration.is_a?(Hash) ? ::AWSCDK::Kendra::CfnIndex::JsonTokenTypeConfigurationProperty.new(**json_token_type_configuration.transform_keys(&:to_sym)) : json_token_type_configuration Jsii::Type.check_type(@json_token_type_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19rZW5kcmEuQ2ZuSW5kZXguSnNvblRva2VuVHlwZUNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "jsonTokenTypeConfiguration") unless @json_token_type_configuration.nil? @jwt_token_type_configuration = jwt_token_type_configuration.is_a?(Hash) ? ::AWSCDK::Kendra::CfnIndex::JwtTokenTypeConfigurationProperty.new(**jwt_token_type_configuration.transform_keys(&:to_sym)) : jwt_token_type_configuration Jsii::Type.check_type(@jwt_token_type_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19rZW5kcmEuQ2ZuSW5kZXguSnd0VG9rZW5UeXBlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "jwtTokenTypeConfiguration") unless @jwt_token_type_configuration.nil? end |
Instance Attribute Details
#json_token_type_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Information about the JSON token type configuration.
1141 1142 1143 |
# File 'kendra/cfn_index.rb', line 1141 def json_token_type_configuration @json_token_type_configuration end |
#jwt_token_type_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Information about the JWT token type configuration.
1146 1147 1148 |
# File 'kendra/cfn_index.rb', line 1146 def jwt_token_type_configuration @jwt_token_type_configuration end |
Class Method Details
.jsii_properties ⇒ Object
1148 1149 1150 1151 1152 1153 |
# File 'kendra/cfn_index.rb', line 1148 def self.jsii_properties { :json_token_type_configuration => "jsonTokenTypeConfiguration", :jwt_token_type_configuration => "jwtTokenTypeConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
1155 1156 1157 1158 1159 1160 1161 1162 |
# File 'kendra/cfn_index.rb', line 1155 def to_jsii result = {} result.merge!({ "jsonTokenTypeConfiguration" => @json_token_type_configuration, "jwtTokenTypeConfiguration" => @jwt_token_type_configuration, }) result.compact end |