使用 Amazon QuickSight API 处理 QuickSight Q 主题 - Amazon QuickSight

使用 Amazon QuickSight API 处理 QuickSight Q 主题

 适用于:企业版 
   目标受众:Amazon QuickSight 开发人员 

使用此部分了解如何使用 Amazon QuickSight 命令行界面(CLI)处理 QuickSight Q 主题。

先决条件

在开始之前,请验证您拥有向 CLI 用户授予调用 QuickSight API 操作权限的 AWS Identity and Access Management(IAM)角色。下表显示必须向 IAM 策略添加哪些权限才能使用特定 API 操作。要使用所有 Q 主题 API 操作,请添加表中列出的所有权限。

API 操作 IAM 策略

CreateTopic

quicksight:CreateTopic

quicksight:PassDataSet

ListTopics

quicksight:ListTopics

DescribeTopic

quicksight:DescribeTopic

DescribeTopicPermissions

quicksight:DescribeTopicPermissions

DescribeTopicRefresh

quicksight:DescribeTopicRefresh

DeleteTopic

quicksight:DeleteTopic

UpdateTopic

quicksight:UpdateTopic

quicksight:PassDataSet

UpdateTopicPermissions

quicksight:UpdateTopicPermissions

CreateTopicRefreshSchedule

quicksight:CreateTopicRefreshSchedule

ListTopicRefreshSchedules

quicksight:ListTopicRefreshSchedules

DescribeTopicRefreshSchedule

quicksight:DescribeTopicRefreshSchedule

UpdateTopicRefreshSchedule

quicksight:UpdateTopicRefreshSchedule

DeleteTopicRefreshSchedule

quicksight:DeleteTopicRefreshSchedule

BatchCreateTopicReviewedAnswer

quicksight:BatchCreateTopicReviewedAnswer

BatchDeleteTopicReviewedAnswer

quicksight:BatchDeleteTopicReviewedAnswer

ListTopicReviewedAnswers

quicksight:ListTopicReviewedAnswers

以下示例演示了允许用户使用 ListTopics API 操作的 IAM 策略。

JSON
{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "quicksight:ListTopics" ], "Resource": "*" } ] }

配置使用 QuickSight API 创建 QuickSight Q 主题的权限后,请使用以下主题创建和使用 QuickSight Q 主题 API。