get_session_embed_url
¶
get_session_embed_url(
aws_account_id: AwsAccountId,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
entry_point: Optional[EntryPoint] = None,
session_lifetime_in_minutes: Optional[SessionLifetimeInMinutes] = None,
user_arn: Optional[Arn] = None,
) -> GetSessionEmbedUrlResponse
Generates a session URL and authorization code that you can use to embed the Amazon Amazon Quick Sight console in your web server code. Use GetSessionEmbedUrl where you want to provide an authoring portal that allows users to create data sources, datasets, analyses, and dashboards. The users who access an embedded Amazon Quick Sight console need belong to the author or admin security cohort. If you want to restrict permissions to some of these features, add a custom permissions profile to the user with the UpdateUser API operation. Use RegisterUser API operation to add a new user with a custom permission profile attached. For more information, see the following sections in the Amazon Quick User Guide:
Parameters:
-
aws_account_id(AwsAccountId) –The ID for the Amazon Web Services account associated with your Amazon Quick Sight subscription.
-
entry_point(Optional[EntryPoint], default:None) –The URL you use to access the embedded session. The entry point URL is constrained to the following paths:
-
/start -
/start/analyses -
/start/dashboards -
/start/favorites -
/dashboards/DashboardId- whereDashboardIdis the actual ID key from the Amazon Quick Sight console URL of the dashboard -
/analyses/AnalysisId- whereAnalysisIdis the actual ID key from the Amazon Quick Sight console URL of the analysis
-
-
session_lifetime_in_minutes(Optional[SessionLifetimeInMinutes], default:None) –How many minutes the session is valid. The session lifetime must be 15-600 minutes.
-
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 type of Amazon Quick users in your account (readers, authors, or admins). They need to be 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.
-
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. -
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.
-
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
11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 | |