aws-cdk-lib.aws_kendra.CfnFaqProps

interface CfnFaqProps

LanguageType name
.NETAmazon.CDK.AWS.Kendra.CfnFaqProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awskendra#CfnFaqProps
Javasoftware.amazon.awscdk.services.kendra.CfnFaqProps
Pythonaws_cdk.aws_kendra.CfnFaqProps
TypeScript aws-cdk-lib » aws_kendra » CfnFaqProps

Properties for defining a CfnFaq.

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-lib';
const cfnFaqProps: kendra.CfnFaqProps = {
  indexId: 'indexId',
  name: 'name',
  roleArn: 'roleArn',
  s3Path: {
    bucket: 'bucket',
    key: 'key',
  },

  // the properties below are optional
  description: 'description',
  fileFormat: 'fileFormat',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
indexIdstringThe identifier of the index that contains the FAQ.
namestringThe name that you assigned the FAQ when you created or updated the FAQ.
roleArnstringThe Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the FAQ.
s3PathIResolvable | S3PathPropertyThe Amazon Simple Storage Service (Amazon S3) location of the FAQ input data.
description?stringA description for the FAQ.
fileFormat?stringThe format of the input file.
tags?CfnTag[]An array of key-value pairs to apply to this resource.

indexId

Type: string

The identifier of the index that contains the FAQ.


name

Type: string

The name that you assigned the FAQ when you created or updated the FAQ.


roleArn

Type: string

The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the FAQ.


s3Path

Type: IResolvable | S3PathProperty

The Amazon Simple Storage Service (Amazon S3) location of the FAQ input data.


description?

Type: string (optional)

A description for the FAQ.


fileFormat?

Type: string (optional)

The format of the input file.

You can choose between a basic CSV format, a CSV format that includes customs attributes in a header, and a JSON format that includes custom attributes.

The format must match the format of the file stored in the S3 bucket identified in the S3Path parameter.

Valid values are:

  • CSV
  • CSV_WITH_HEADER
  • JSON

tags?

Type: CfnTag[] (optional)

An array of key-value pairs to apply to this resource.

For more information, see Tag .