Skip to main content

topic_v2s

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

Overview

Nametopic_v2s
TypeResource
Idaws.quicksight.topic_v2s

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.
topicobjectThe definition of a topic.
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_topic_v2selectaws_account_id, topic_id, regionDescribes a Q topic.
create_topic_v2insertaws_account_id, region, TopicIdCreates a new Q topic.
update_topic_v2updateaws_account_id, topic_id, regionUpdates the definition of a Q topic.
delete_topic_v2deleteaws_account_id, topic_id, regionDeletes a 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 contains the topic that you want to delete.
regionstringAWS region (default: us-east-1)
topic_idstringThe ID of the topic that you want to delete. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

SELECT examples

Describes a Q topic.

SELECT
arn,
custom_instructions,
request_id,
status,
topic,
topic_id
FROM aws.quicksight.topic_v2s
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.topic_v2s (
TopicId,
Topic,
Tags,
FolderArns,
CustomInstructions,
aws_account_id,
region
)
SELECT
'{{ TopicId }}' /* required */,
'{{ Topic }}',
'{{ Tags }}',
'{{ FolderArns }}',
'{{ CustomInstructions }}',
'{{ aws_account_id }}',
'{{ region }}'
RETURNING
arn,
request_id,
status,
topic_id
;

UPDATE examples

Updates the definition of a Q topic.

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

DELETE examples

Deletes a Q topic.

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