generate_embed_url_for_registered_user
¶
generate_embed_url_for_registered_user(
aws_account_id: AwsAccountId,
user_arn: Arn,
experience_configuration: RegisteredUserEmbeddingExperienceConfiguration,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
session_lifetime_in_minutes: Optional[SessionLifetimeInMinutes] = None,
allowed_domains: Optional[StringList] = None,
) -> GenerateEmbedUrlForRegisteredUserResponse
Generates an embed URL that you can use to embed an Amazon Quick experience in your website. This action can be used for any type of user registered in an Amazon Quick account. Before you use this action, make sure that you have configured the relevant Amazon Quick resource and permissions.
The following rules apply to the generated URL:
-
It contains a temporary bearer token. It is valid for 5 minutes after it is generated. Once redeemed within this period, it cannot be re-used again.
-
The URL validity period should not be confused with the actual session lifetime that can be customized using the
SessionLifetimeInMinutesparameter.The resulting user session is valid for 15 minutes (minimum) to 10 hours (maximum). The default session duration is 10 hours.
-
You are charged only when the URL is used or there is interaction with Amazon Quick.
For more information, see Embedded Analytics 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.
-
session_lifetime_in_minutes(Optional[SessionLifetimeInMinutes], default:None) –How many minutes the session is valid. The session lifetime must be in [15-600] minutes range.
-
user_arn(Arn) –The Amazon Resource Name for the registered user.
-
experience_configuration(RegisteredUserEmbeddingExperienceConfiguration) –The experience that you want to embed. For registered users, you can embed Quick dashboards, Amazon Quick Sight visuals, the Amazon Quick Sight Q search bar, the Amazon Quick Sight Generative Q&A experience, or the entire Amazon Quick Sight console.
-
allowed_domains(Optional[StringList], default:None) –The domains that you want to add to the allow list for access to the generated URL that is then embedded. This optional parameter overrides the static domains that are configured in the Manage Quick Sight menu in the Amazon Quick Sight console. Instead, it allows only the domains that you include in this parameter. You can list up to three domains or subdomains in each API call.
To include all subdomains under a specific domain to the allow list, use
*. For example,https://*.sapp.amazon.comincludes all subdomains underhttps://sapp.amazon.com.
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.
-
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. -
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
10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 | |