Skip to main content

topics

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

Overview

Nametopics
TypeResource
Idaws.quicksight.topics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the topic.
custom_instructionsobjectInstructions that provide additional guidance and context for response generation.
request_idstringThe Amazon Web Services request ID for this operation.
statusintegerThe HTTP status of the request.
topicobjectA structure that describes the details of a topic, such as its name, description, and associated data sets.
topic_idstringThe ID of the topic that you want to describe. This ID is unique per Amazon Web Services Region for each Amazon Web Services account. (pattern: <code>^[A-Za-z0-9-_.\+]*$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_topicselectaws_account_id, topic_id, regionDescribes a topic.
search_topicsselectaws_account_id, regionSearches for any Q topic that exists in an Quick account.
list_topicsselectaws_account_id, regionnext-token, max-resultsLists all of the topics within an account.
create_topicinsertaws_account_id, region, TopicIdCreates a new Q topic.
update_topicupdateaws_account_id, topic_id, regionUpdates a topic.
delete_topicdeleteaws_account_id, topic_id, regionDeletes a topic.
batch_create_topic_reviewed_answerexecaws_account_id, topic_id, region, AnswersCreates new reviewed answers for a Q Topic.
batch_delete_topic_reviewed_answerexecaws_account_id, topic_id, regionDeletes reviewed answers for Q Topic.

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 you want to delete a reviewed answers in.
regionstringAWS region (default: us-east-1)
topic_idstringThe ID for the topic reviewed answer that you want to delete. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
max-resultsintegerThe maximum number of results to be returned per request.
next-tokenstringThe token for the next set of results, or null if there are no more results.

SELECT examples

Describes a topic.

SELECT
arn,
custom_instructions,
request_id,
status,
topic,
topic_id
FROM aws.quicksight.topics
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND topic_id = '{{ topic_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new Q topic.

INSERT INTO aws.quicksight.topics (
TopicId,
Topic,
Tags,
FolderArns,
CustomInstructions,
aws_account_id,
region
)
SELECT
'{{ TopicId }}' /* required */,
'{{ Topic }}',
'{{ Tags }}',
'{{ FolderArns }}',
'{{ CustomInstructions }}',
'{{ aws_account_id }}',
'{{ region }}'
RETURNING
arn,
refresh_arn,
request_id,
status,
topic_id
;

UPDATE examples

Updates a topic.

UPDATE aws.quicksight.topics
SET
Topic = '{{ Topic }}',
CustomInstructions = '{{ CustomInstructions }}'
WHERE
aws_account_id = '{{ aws_account_id }}' --required
AND topic_id = '{{ topic_id }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
refresh_arn,
request_id,
status,
topic_id;

DELETE examples

Deletes a topic.

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

Lifecycle Methods

Creates new reviewed answers for a Q Topic.

EXEC aws.quicksight.topics.batch_create_topic_reviewed_answer
@aws_account_id='{{ aws_account_id }}' --required,
@topic_id='{{ topic_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"Answers": "{{ Answers }}"
}'
;