interface UserTokenConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Kendra.Mixins.CfnIndexPropsMixin.UserTokenConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awskendra/mixins#CfnIndexPropsMixin_UserTokenConfigurationProperty |
Java | software.amazon.awscdk.mixins.preview.services.kendra.mixins.CfnIndexPropsMixin.UserTokenConfigurationProperty |
Python | aws_cdk.mixins_preview.aws_kendra.mixins.CfnIndexPropsMixin.UserTokenConfigurationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_kendra » mixins » 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 { mixins as kendra_mixins } from '@aws-cdk/mixins-preview/aws-kendra';
const userTokenConfigurationProperty: kendra_mixins.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