AWS Quicksight - AWS SDKs
您可以使用 AWS Quicksight SDK 来管理以下内容 −
- 用户和组管理
- 嵌入仪表板
以下显示了用于显示嵌入仪表板的示例 HTML 代码 −
<!DOCTYPE html> <html> <head> <title>Sample Embed</title> <script type="text/javascript" src="https://unpkg.com/amazon-quicksight-embedding-sdk@1.0.1/dist/quicksight-embedding-js-sdk.min.js"></script> <script type="text/javascript"> function embedDashboard() { var containerDiv = document.getElementById("dashboardContainer"); var params = { url: "https://us-east-1.quicksight.aws.amazon.com/sn/dashboards/xxx-x-x-xx-x-x-x-x-x-x-x-xx-xx-x-xx", container: containerDiv, parameters: { country: 'United States' }, height: "600px", width: "800px" }; var dashboard = QuickSightEmbedding.embedDashboard(params); dashboard.on('error', function() {}); dashboard.on('load', function() {}); dashboard.setParameters({country: 'Canada'}); } </script> </head> <html>
要使用 AWS SDK,您应该熟悉以下内容 −
JSON
Web 服务
HTTP 请求
一种或多种编程语言,例如 JavaScript、Java、Python 或 C#。