我试图将quicksight dashbaord嵌入到我的Django应用程序中,但是它认为此错误 调用GetDashboardEmbedUrl操作时发生错误(AccessDeniedException)
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
import botocore.session
def index(request):
session = botocore.session.get_session()
client = session.create_client("quicksight", region_name='us-east-1')
context = client.get_dashboard_embed_url(AwsAccountId=124124241"", DashboardId="123321*****", IdentityType="IAM", SessionLifetimeInMinutes=100, ResetDisabled=True, UndoRedoDisabled=True)
return render(request ,'index.html',context)
预先感谢