get_dashboard_embed_url
¶
get_dashboard_embed_url(
aws_account_id: AwsAccountId,
dashboard_id: ShortRestrictiveResourceId,
identity_type: EmbeddingIdentityType,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
session_lifetime_in_minutes: Optional[SessionLifetimeInMinutes] = None,
undo_redo_disabled: Optional[Boolean] = None,
reset_disabled: Optional[Boolean] = None,
state_persistence_enabled: Optional[Boolean] = None,
user_arn: Optional[Arn] = None,
namespace: Optional[Namespace] = None,
additional_dashboard_ids: Optional[AdditionalDashboardIdList] = None,
) -> GetDashboardEmbedUrlResponse
Generates a temporary session URL and authorization code(bearer token) that you can use to embed an Amazon Quick Sight read-only dashboard in your website or application. Before you use this command, make sure that you have configured the dashboards and permissions.
Currently, you can use GetDashboardEmbedURL only from the server, not from the user's browser. The following rules apply to the generated URL:
-
They must be used together.
-
They can be used one time only.
-
They are valid for 5 minutes after you run this command.
-
You are charged only when the URL is used or there is interaction with Quick.
-
The resulting user session is valid for 15 minutes (default) up to 10 hours (maximum). You can use the optional
SessionLifetimeInMinutesparameter to customize session duration.
For more information, see Embedding Analytics Using GetDashboardEmbedUrl in the Quick User Guide.
For more information about the high-level steps for embedding and for an interactive demo of the ways you can customize embedding, visit the Quick Developer Portal.
Parameters:
-
aws_account_id(AwsAccountId) –The ID for the Amazon Web Services account that contains the dashboard that you're embedding.
-
dashboard_id(ShortRestrictiveResourceId) –The ID for the dashboard, also added to the Identity and Access Management (IAM) policy.
-
identity_type(EmbeddingIdentityType) –The authentication method that the user uses to sign in.
-
session_lifetime_in_minutes(Optional[SessionLifetimeInMinutes], default:None) –How many minutes the session is valid. The session lifetime must be 15-600 minutes.
-
undo_redo_disabled(Optional[Boolean], default:None) –Remove the undo/redo button on the embedded dashboard. The default is FALSE, which enables the undo/redo button.
-
reset_disabled(Optional[Boolean], default:None) –Remove the reset button on the embedded dashboard. The default is FALSE, which enables the reset button.
-
state_persistence_enabled(Optional[Boolean], default:None) –Adds persistence of state for the user session in an embedded dashboard. Persistence applies to the sheet and the parameter settings. These are control settings that the dashboard subscriber (Amazon Quick Sight reader) chooses while viewing the dashboard. If this is set to
TRUE, the settings are the same when the subscriber reopens the same dashboard URL. The state is stored in Amazon Quick Sight, not in a browser cookie. If this is set to FALSE, the state of the user session is not persisted. The default isFALSE. -
user_arn(Optional[Arn], default:None) –The Quick user's Amazon Resource Name (ARN), for use with
QUICKSIGHTidentity type. You can use this for any Quick users in your account (readers, authors, or admins) authenticated as one of the following:-
Active Directory (AD) users or group members
-
Invited nonfederated users
-
IAM users and IAM role-based sessions authenticated through Federated Single Sign-On using SAML, OpenID Connect, or IAM federation.
Omit this parameter for users in the third group – IAM users and IAM role-based sessions.
-
-
namespace(Optional[Namespace], default:None) –The Amazon Quick Sight namespace that contains the dashboard IDs in this request. If you're not using a custom namespace, set
Namespace = default. -
additional_dashboard_ids(Optional[AdditionalDashboardIdList], default:None) –A list of one or more dashboard IDs that you want anonymous users to have tempporary access to. Currently, the
IdentityTypeparameter must be set toANONYMOUSbecause other identity types authenticate as Quick or IAM users. For example, if you set "--dashboard-id dash_id1 --dashboard-id dash_id2 dash_id3 identity-type ANONYMOUS", the session can access all three dashboards.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
DomainNotWhitelistedException–The domain specified isn't on the allow list. All domains for embedded dashboards must be added to the approved list by an Amazon Quick Suite admin.
-
IdentityTypeNotSupportedException–The identity type specified isn't supported. Supported identity types include
IAMandQUICKSIGHT. -
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
QuickSightUserNotFoundException–The user with the provided name isn't found. This error can happen in any operation that requires finding a user based on a provided user name, such as
DeleteUser,DescribeUser, and so on. -
ResourceExistsException–The resource specified already exists.
-
ResourceNotFoundException–One or more resources can't be found.
-
SessionLifetimeInMinutesInvalidException–The number of minutes specified for the lifetime of a session isn't valid. The session lifetime must be 15-600 minutes.
-
ThrottlingException–Access is throttled.
-
UnsupportedPricingPlanException–This error indicates that you are calling an embedding operation in Amazon Quick Sight without the required pricing plan on your Amazon Web Services account. Before you can use embedding for anonymous users, a Quick Suite administrator needs to add capacity pricing to Quick Sight. You can do this on the Manage Quick Suite page.
After capacity pricing is added, you can use the
GetDashboardEmbedUrlAPI operation with the--identity-type ANONYMOUSoption. -
UnsupportedUserEditionException–This error indicates that you are calling an operation on an Amazon Quick Suite subscription where the edition doesn't include support for that operation. Amazon Quick Suite currently has Standard Edition and Enterprise Edition. Not every operation and capability is available in every edition.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/quick_sight.py
11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 | |