Hello. First post here and looking for some insights on how to meet my requirements.
We have some dashboards that we expose as an embeddable URL via the boto3 function:
generate_embed_url_for_anonymous_user
To enable PDF exports of the dashboard as a feature on the embeddable URL, I am trying to pass in the following configuration:
def getQuickSightDashboardUrl(dashboardId):
try:
quickSight = boto3.client('quicksight', region_name=AWS_REGION)
dashboardArn='dashboardArnHere'
logging.info("Generating embed URL for: %s", dashboardArn)
response = quickSight.generate_embed_url_for_anonymous_user(
AwsAccountId = AWS_ACCOUNT_ID,
Namespace = 'default',
ExperienceConfiguration = {
'Dashboard':{
'InitialDashboardId':dashboardId,
}
},
AuthorizedResourceArns = [dashboardArn],
SessionLifetimeInMinutes = 60,
Capabilities=['EXPORT_TO_PDF']
)
return response
except ClientError as e:
# TODO: Handle each specific exception thrown by generate_embed_url_for_anonymous_user because they're not all client errors
logging.error(f'ClientSideError: could not generate embed url for: {dashboardArn}, Details: {e}')
raise ClientSideError(e)
except Exception as e:
logging.error(f'ServerSideError: could not generate embed url for: {dashboardArn}, Details: {e}')
raise ServerSideError()
I am unable to find any relevant documentation, hence, I am looking to try the configuration:
Capabilities=['EXPORT_TO_PDF']
If anyone can point to the specific documentation on the available options to enable PDF export, that will be certainly helpful.
What options should I pass in so that the functionality to export the dashboard will become available for the embeddable url?