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 Amazon 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 Amazon 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 Amazon Quick user's Amazon Resource Name (ARN), for use with
QUICKSIGHTidentity type. You can use this for any Amazon 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
11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 | |