import boto3
client = boto3.client('quicksight', 'us-east-1')
aws_account_id = '#########'
dashboard_id = '##############'
try:
snapshot_job_info = client.describe_dashboard_snapshot_job(
AwsAccountId=aws_account_id,
DashboardId=dashboard_id,
SnapshotJobId='#########')
print(f"Snapshot Job ID for Dashboard {dashboard_id}: {snapshot_job_info['SnapshotJobId']}")
except Exception as e:
print(f"Error retrieving Snapshot Job for Dashboard {dashboard_id}: {str(e)}")
This outputs the following error:
âQuickSightâ object has no attribute âdescribe_dashboard_snapshot_jobâ.
From here, I reviewed the list of available methods, and sure enough, the âdescribe_dashboard_snapshot_jobâ method was not listed, nor were any other methods related to snapshot jobs. However, these are still listed in the most recent API and boto3 documentation. Why are the snapshot job methods not available if theyâre still listed in the documentation?
Listing available boto3 Quicksight methods:
import boto3
client = boto3.client('quicksight', 'us-east-1')
methods = dir(client)
for method in methods:
print(method)
Hi @n_vetri , just uninstalled and re-installed boto3, and now I see it!
Unfortunately, Iâm getting this error when trying the start_dashboard_snapshot_job method for FormatType PDF:
âThis API action is supported only when the account has an active paginated reports add-on plan.â
Isnât this add-on only necessary when attempting an excel or csv?
HI, I also got same error, for trying start_dashboard_snapshot_job for exporting into pdf:
âlogâ: "com.amazonaws.services.quicksight.model.UnsupportedPricingPlanException: This API action is supported only when the account has an active paginated reports add-on plan. (Service: AmazonQuickSight; Status Code: 403; Error Code: UnsupportedPricingPlanException; Request ID: bf7856db-0362-41df-a9dc-4bd293cece77; Proxy: null)\n\tat
Is it necessary to have active paginated reports add-on. please help me with that
I looked through the documentation and found that while it does not explicitly mention having the paginated reporting subscription it does mention the paginated report. However, I agree that it is not very clear on the distinction.
I will mark this as a feature request for the Quicksight team.