藉助 Amazon QuickSight API 使用 QuickSight Q 主題 - Amazon QuickSight

藉助 Amazon QuickSight API 使用 QuickSight Q 主題

 適用於:企業版本 
   目標受眾:Amazon QuickSight 開發人員 

在本章節中了解如何使用 Amazon QuickSight 命令列介面 (CLI) 處理 QuickSight Q 主題。

先決條件

在開始之前,請先確認您的 AWS Identity and Access Management (IAM) 角色是否能夠授予 CLI 使用者呼叫 QuickSight API 操作的存取權限。下表顯示了必須將哪些許可新增至 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 操作的 IAM 政策。

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

設定使用 QuickSight API 建立 QuickSight Q 主題的許可後,請參閱下列主題來建立和使用 QuickSight Q 主題 API。