Python3 Example for Getting the Dashboard URL from the App Server - Amazon QuickSight

Python3 Example for Getting the Dashboard URL from the App Server

The following example shows the Python3 code that you can use on the app server to get the URL for the embedded dashboard. You can use this URL in your website or app to display the dashboard. For more information, see HTML Example for Embedding a Dashboard with Amazon QuickSight Using the URL from the App Server.

import botocore.session session = botocore.session.get_session() client = session.create_client("quicksight", region_name='us-east-1') client.get_dashboard_embed_url(AwsAccountId="111122223333", DashboardId="1c1fe111-e2d2-3b30-44ef-a0e111111cde", IdentityType="IAM", SessionLifetimeInMinutes=100, ResetDisabled=True, UndoRedoDisabled=True)