get_dashboard_embed_url
async
¶
get_dashboard_embed_url(
aws_account_id: AwsAccountId,
dashboard_id: ShortRestrictiveResourceId,
identity_type: EmbeddingIdentityType,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = 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/async_quick_sight.py
12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 | |