kendra.Client.
create_faq
(**kwargs)¶Creates an new set of frequently asked question (FAQ) questions and answers.
Adding FAQs to an index is an asynchronous operation.
For an example of adding an FAQ to an index using Python and Java SDKs, see Using your FAQ file.
See also: AWS API Documentation
Request Syntax
response = client.create_faq(
IndexId='string',
Name='string',
Description='string',
S3Path={
'Bucket': 'string',
'Key': 'string'
},
RoleArn='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
],
FileFormat='CSV'|'CSV_WITH_HEADER'|'JSON',
ClientToken='string',
LanguageCode='string'
)
[REQUIRED]
The identifier of the index for the FAQ.
[REQUIRED]
A name for the FAQ.
[REQUIRED]
The path to the FAQ file in S3.
The name of the S3 bucket that contains the file.
The name of the file.
[REQUIRED]
The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the FAQs. For more information, see IAM Roles for Amazon Kendra.
A list of key-value pairs that identify the FAQ. You can use the tags to identify and organize your resources and to control access to resources.
A list of key/value pairs that identify an index, FAQ, or data source. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
The key for the tag. Keys are not case sensitive and must be unique for the index, FAQ, or data source.
The value associated with the tag. The value may be an empty string but it can't be null.
The format of the FAQ 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.
For more information, see Adding questions and answers.
A token that you provide to identify the request to create a FAQ. Multiple calls to the CreateFaqRequest
API with the same client token will create only one FAQ.
This field is autopopulated if not provided.
dict
Response Syntax
{
'Id': 'string'
}
Response Structure
(dict) --
Id (string) --
The identifier of the FAQ.
Exceptions
kendra.Client.exceptions.ValidationException
kendra.Client.exceptions.ConflictException
kendra.Client.exceptions.ResourceNotFoundException
kendra.Client.exceptions.ThrottlingException
kendra.Client.exceptions.ServiceQuotaExceededException
kendra.Client.exceptions.AccessDeniedException
kendra.Client.exceptions.InternalServerException