View a markdown version of this page

使用亚马逊 Quick Sight API 处理 Quick Sight 主题 - Amazon Quick

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

使用亚马逊 Quick Sight API 处理 Quick Sight 主题

 适用于:企业版 
   目标受众:亚马逊 Quick 开发者 

使用本节学习如何使用亚马逊 Quick Sight 命令行界面 (CLI) 处理 Quick Sight 主题。

先决条件

在开始之前,请确保您拥有一个 AWS Identity and Access Management (IAM) 角色来授予 CLI 用户调用 Quick Sight API 操作的权限。下表显示必须向 IAM 策略添加哪些权限才能使用特定 API 操作。

API 操作 IAM 策略

CreateTopic

quicksight:CreateTopic

quicksight:PassDataSet

ListTopics

quicksight:ListTopics

DescribeTopic

quicksight:DescribeTopic

UpdateTopic

quicksight:UpdateTopic

quicksight:PassDataSet

DeleteTopic

quicksight:DeleteTopic

UpdateTopicPermissions

quicksight:UpdateTopicPermissions

DescribeTopicPermissions

quicksight:DescribeTopicPermissions

CreateTopicRefreshSchedule

quicksight:CreateTopicRefreshSchedule

ListTopicRefreshSchedules

quicksight:ListTopicRefreshSchedules

DescribeTopicRefreshSchedule

quicksight:DescribeTopicRefreshSchedule

UpdateTopicRefreshSchedule

quicksight:UpdateTopicRefreshSchedule

DeleteTopicRefreshSchedule

quicksight:DeleteTopicRefreshSchedule

以下示例创建了一个新主题。

aws quicksight create-topic --aws-account-id AWSACCOUNTID --topic-id TOPICID --topic TOPIC

以下示例更新了主题。

aws quicksight update-topic --aws-account-id AWSACCOUNTID --topic-id TOPICID --topic TOPIC

以下示例提供了账户中所有主题的列表。

aws quicksight list-topics --aws-account-id AWSACCOUNTID

以下示例删除了一个主题。

aws quicksight delete-topic --aws-account-id AWSACCOUNTID --topic-id TOPICID

以下示例提供有关如何配置主题的信息。

aws quicksight describe-topic --aws-account-id AWSACCOUNTID --topic-id TOPICID