pub struct Builder { /* private fields */ }Expand description
A builder for GetSessionEmbedUrlInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn aws_account_id(self, input: impl Into<String>) -> Self
pub fn aws_account_id(self, input: impl Into<String>) -> Self
The ID for the Amazon Web Services account associated with your Amazon QuickSight subscription.
sourcepub fn set_aws_account_id(self, input: Option<String>) -> Self
pub fn set_aws_account_id(self, input: Option<String>) -> Self
The ID for the Amazon Web Services account associated with your Amazon QuickSight subscription.
sourcepub fn entry_point(self, input: impl Into<String>) -> Self
pub fn entry_point(self, input: impl Into<String>) -> Self
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 QuickSight console URL of the dashboard -
/analyses/AnalysisId- whereAnalysisIdis the actual ID key from the Amazon QuickSight console URL of the analysis
sourcepub fn set_entry_point(self, input: Option<String>) -> Self
pub fn set_entry_point(self, input: Option<String>) -> Self
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 QuickSight console URL of the dashboard -
/analyses/AnalysisId- whereAnalysisIdis the actual ID key from the Amazon QuickSight console URL of the analysis
sourcepub fn session_lifetime_in_minutes(self, input: i64) -> Self
pub fn session_lifetime_in_minutes(self, input: i64) -> Self
How many minutes the session is valid. The session lifetime must be 15-600 minutes.
sourcepub fn set_session_lifetime_in_minutes(self, input: Option<i64>) -> Self
pub fn set_session_lifetime_in_minutes(self, input: Option<i64>) -> Self
How many minutes the session is valid. The session lifetime must be 15-600 minutes.
sourcepub fn user_arn(self, input: impl Into<String>) -> Self
pub fn user_arn(self, input: impl Into<String>) -> Self
The Amazon QuickSight user's Amazon Resource Name (ARN), for use with QUICKSIGHT identity type. You can use this for any type of Amazon QuickSight 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
-
Identity and Access Management (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.
sourcepub fn set_user_arn(self, input: Option<String>) -> Self
pub fn set_user_arn(self, input: Option<String>) -> Self
The Amazon QuickSight user's Amazon Resource Name (ARN), for use with QUICKSIGHT identity type. You can use this for any type of Amazon QuickSight 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
-
Identity and Access Management (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.
sourcepub fn build(self) -> Result<GetSessionEmbedUrlInput, BuildError>
pub fn build(self) -> Result<GetSessionEmbedUrlInput, BuildError>
Consumes the builder and constructs a GetSessionEmbedUrlInput.
Examples found in repository?
9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetSessionEmbedUrl,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetSessionEmbedUrlError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetSessionEmbedUrlOutput,
aws_smithy_http::result::SdkError<crate::error::GetSessionEmbedUrlError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}