Skip to main content

faqs

Creates, updates, deletes or gets a faq resource or lists faqs in a region

Overview

Namefaqs
TypeResource
DescriptionA Kendra FAQ resource
Idaws.kendra.faqs

Fields

NameDatatypeDescription
idstringUnique ID of index
index_idstringIndex ID
namestringFAQ name
descriptionstringFAQ description
file_formatstringFAQ file format
s3_pathobjectFAQ S3 path
role_arnstringFAQ role ARN
tagsarrayTags for labeling the FAQ
arnstring
language_codestringThe code for a language.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTIndexId, Name, S3Path, RoleArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all faqs in a region.

SELECT
region,
id,
index_id,
name,
description,
file_format,
s3_path,
role_arn,
tags,
arn,
language_code
FROM aws.kendra.faqs
WHERE region = 'us-east-1';

Gets all properties from an individual faq.

SELECT
region,
id,
index_id,
name,
description,
file_format,
s3_path,
role_arn,
tags,
arn,
language_code
FROM aws.kendra.faqs
WHERE region = 'us-east-1' AND data__Identifier = '<Id>|<IndexId>';

INSERT example

Use the following StackQL query and manifest file to create a new faq resource, using stack-deploy.

/*+ create */
INSERT INTO aws.kendra.faqs (
IndexId,
Name,
S3Path,
RoleArn,
region
)
SELECT
'{{ IndexId }}',
'{{ Name }}',
'{{ S3Path }}',
'{{ RoleArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.kendra.faqs
WHERE data__Identifier = '<Id|IndexId>'
AND region = 'us-east-1';

Permissions

To operate on the faqs resource, the following permissions are required:

Create

kendra:CreateFaq,
kendra:DescribeFaq,
iam:PassRole,
kendra:ListTagsForResource,
kendra:TagResource

Update

kendra:ListTagsForResource,
kendra:UntagResource,
kendra:TagResource

Read

kendra:DescribeFaq,
kendra:ListTagsForResource

Delete

kendra:DeleteFaq,
kendra:DescribeFaq

List

kendra:ListFaqs