Skip to main content

knowledge_bases

Creates, updates, deletes, gets or lists a knowledge_bases resource.

Overview

Nameknowledge_bases
TypeResource
Idaws.quicksight.knowledge_bases

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
knowledge_baseobjectThe knowledge base.
request_idstringThe Amazon Web Services request ID for this operation.
statusintegerThe HTTP status of the request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_knowledge_baseselectaws_account_id, knowledge_base_id, regionDescribes a knowledge base.
list_knowledge_basesselectaws_account_id, regionmax-results, next-tokenLists all knowledge bases in an Amazon QuickSight account.
create_knowledge_baseinsertaws_account_id, region, KnowledgeBaseId, DataSourceArn, KnowledgeBaseConfigurationCreates a knowledge base from a specified data source. Supported data source connector types include: S3_KNOWLEDGE_BASE – Uses an Amazon S3 bucket as the data source. WEB_CRAWLER – Uses web pages indexed by the built-in web crawler as the data source. GOOGLE_DRIVE – Uses Google Drive as the data source. Supports service account authentication only. SHAREPOINT – Uses SharePoint as the data source. Supports two-legged OAuth only. ONE_DRIVE – Uses OneDrive as the data source. Supports two-legged OAuth only.
update_knowledge_baseupdateaws_account_id, knowledge_base_id, regionUpdates the properties of an existing knowledge base.
delete_knowledge_basedeleteaws_account_id, knowledge_base_id, regionDeletes a knowledge base.
batch_delete_knowledge_baseexecaws_account_id, region, KnowledgeBaseIdsDeletes one or more knowledge bases.
search_knowledge_basesexecaws_account_id, regionSearches for a subset of knowledge bases based on specified filters.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
aws_account_idstringThe ID of the Amazon Web Services account that contains the knowledge base.
knowledge_base_idstringThe unique identifier for the knowledge base.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of results to return.
next-tokenstringThe token for the next set of results, or null if there are no more results.

SELECT examples

Describes a knowledge base.

SELECT
knowledge_base,
request_id,
status
FROM aws.quicksight.knowledge_bases
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND knowledge_base_id = '{{ knowledge_base_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a knowledge base from a specified data source. Supported data source connector types include: S3_KNOWLEDGE_BASE – Uses an Amazon S3 bucket as the data source. WEB_CRAWLER – Uses web pages indexed by the built-in web crawler as the data source. GOOGLE_DRIVE – Uses Google Drive as the data source. Supports service account authentication only. SHAREPOINT – Uses SharePoint as the data source. Supports two-legged OAuth only. ONE_DRIVE – Uses OneDrive as the data source. Supports two-legged OAuth only.

INSERT INTO aws.quicksight.knowledge_bases (
KnowledgeBaseId,
Name,
DataSourceArn,
KnowledgeBaseConfiguration,
Description,
Permissions,
MediaExtractionConfiguration,
AccessControlConfiguration,
PrimaryOwnerArn,
Tags,
aws_account_id,
region
)
SELECT
'{{ KnowledgeBaseId }}' /* required */,
'{{ Name }}',
'{{ DataSourceArn }}' /* required */,
'{{ KnowledgeBaseConfiguration }}' /* required */,
'{{ Description }}',
'{{ Permissions }}',
'{{ MediaExtractionConfiguration }}',
'{{ AccessControlConfiguration }}',
'{{ PrimaryOwnerArn }}',
'{{ Tags }}',
'{{ aws_account_id }}',
'{{ region }}'
RETURNING
creation_status,
knowledge_base_arn,
knowledge_base_id,
request_id,
status
;

UPDATE examples

Updates the properties of an existing knowledge base.

UPDATE aws.quicksight.knowledge_bases
SET
Name = '{{ Name }}',
Description = '{{ Description }}',
KnowledgeBaseConfiguration = '{{ KnowledgeBaseConfiguration }}',
MediaExtractionConfiguration = '{{ MediaExtractionConfiguration }}',
IsEmailNotificationOptedForIngestionFailures = {{ IsEmailNotificationOptedForIngestionFailures }},
AccessControlConfiguration = '{{ AccessControlConfiguration }}'
WHERE
aws_account_id = '{{ aws_account_id }}' --required
AND knowledge_base_id = '{{ knowledge_base_id }}' --required
AND region = '{{ region }}' --required
RETURNING
knowledge_base_arn,
knowledge_base_id,
request_id,
status;

DELETE examples

Deletes a knowledge base.

DELETE FROM aws.quicksight.knowledge_bases
WHERE aws_account_id = '{{ aws_account_id }}' --required
AND knowledge_base_id = '{{ knowledge_base_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Deletes one or more knowledge bases.

EXEC aws.quicksight.knowledge_bases.batch_delete_knowledge_base
@aws_account_id='{{ aws_account_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"KnowledgeBaseIds": "{{ KnowledgeBaseIds }}"
}'
;