Skip to main content

knowledge_bases

Creates, updates, deletes or gets a knowledge_base resource or lists knowledge_bases in a region

Overview

Nameknowledge_bases
TypeResource
DescriptionDefinition of AWS::Wisdom::KnowledgeBase Resource Type
Idaws.wisdom.knowledge_bases

Fields

NameDatatypeDescription
descriptionstring
knowledge_base_arnstring
knowledge_base_idstring
knowledge_base_typestring
namestring
rendering_configurationobject
server_side_encryption_configurationobject
source_configurationobject
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTKnowledgeBaseType, Name, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all knowledge_bases in a region.

SELECT
region,
description,
knowledge_base_arn,
knowledge_base_id,
knowledge_base_type,
name,
rendering_configuration,
server_side_encryption_configuration,
source_configuration,
tags
FROM aws.wisdom.knowledge_bases
WHERE region = 'us-east-1';

Gets all properties from an individual knowledge_base.

SELECT
region,
description,
knowledge_base_arn,
knowledge_base_id,
knowledge_base_type,
name,
rendering_configuration,
server_side_encryption_configuration,
source_configuration,
tags
FROM aws.wisdom.knowledge_bases
WHERE region = 'us-east-1' AND data__Identifier = '<KnowledgeBaseId>';

INSERT example

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

/*+ create */
INSERT INTO aws.wisdom.knowledge_bases (
KnowledgeBaseType,
Name,
region
)
SELECT
'{{ KnowledgeBaseType }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.wisdom.knowledge_bases
WHERE data__Identifier = '<KnowledgeBaseId>'
AND region = 'us-east-1';

Permissions

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

Create

appflow:CreateFlow,
appflow:DeleteFlow,
appflow:StartFlow,
appflow:TagResource,
appflow:UseConnectorProfile,
app-integrations:CreateDataIntegrationAssociation,
app-integrations:GetDataIntegration,
kms:DescribeKey,
kms:CreateGrant,
kms:ListGrants,
wisdom:CreateKnowledgeBase,
wisdom:TagResource

Update

wisdom:GetKnowledgeBase

Delete

appflow:DeleteFlow,
appflow:StopFlow,
app-integrations:DeleteDataIntegrationAssociation,
wisdom:DeleteKnowledgeBase

List

wisdom:ListKnowledgeBases

Read

wisdom:GetKnowledgeBase