English 中文(简体)
AWS Quicksight - AWS SDKs
  • 时间:2024-09-17

AWS Quicksight - AWS SDKs


Previous Page Next Page  

You can use AWS Quicksight SDK’s to manage the following −

    User and group management

    Embedding dashboards

Following shows a sample HTML code to be used to display an embedded dashboard −

<!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>

To use AWS SDK’s, you should be famipar with the following −

    JSON

    Web services

    HTTP requests

    One or more programming languages, such as JavaScript, Java, Python, or C#.

Advertisements