interface UserTokenConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Kendra.CfnIndexPropsMixin.UserTokenConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awskendra#CfnIndexPropsMixin_UserTokenConfigurationProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.kendra.CfnIndexPropsMixin.UserTokenConfigurationProperty |
Python | aws_cdk.cfn_property_mixins.aws_kendra.CfnIndexPropsMixin.UserTokenConfigurationProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_kendra » CfnIndexPropsMixin » UserTokenConfigurationProperty |
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kendra as kendra } from '@aws-cdk/cfn-property-mixins';
const userTokenConfigurationProperty: kendra.CfnIndexPropsMixin.UserTokenConfigurationProperty = {
jsonTokenTypeConfiguration: {
groupAttributeField: 'groupAttributeField',
userNameAttributeField: 'userNameAttributeField',
},
jwtTokenTypeConfiguration: {
claimRegex: 'claimRegex',
groupAttributeField: 'groupAttributeField',
issuer: 'issuer',
keyLocation: 'keyLocation',
secretManagerArn: 'secretManagerArn',
url: 'url',
userNameAttributeField: 'userNameAttributeField',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| json | IResolvable | Json | Information about the JSON token type configuration. |
| jwt | IResolvable | Jwt | Information about the JWT token type configuration. |
jsonTokenTypeConfiguration?
Type:
IResolvable | Json
(optional)
Information about the JSON token type configuration.
jwtTokenTypeConfiguration?
Type:
IResolvable | Jwt
(optional)
Information about the JWT token type configuration.

.NET
Go
Java
Python
TypeScript