pub struct CreatePresignedDomainUrl { /* private fields */ }
Expand description
Fluent builder constructing a request to CreatePresignedDomainUrl
.
Creates a URL for a specified UserProfile in a Domain. When accessed in a web browser, the user will be automatically signed in to Amazon SageMaker Studio, and granted access to all of the Apps and files associated with the Domain's Amazon Elastic File System (EFS) volume. This operation can only be called when the authentication mode equals IAM.
The IAM role or user passed to this API defines the permissions to access the app. Once the presigned URL is created, no additional permission is required to access this URL. IAM authorization policies for this API are also enforced for every HTTP request and WebSocket frame that attempts to connect to the app.
You can restrict access to this API and to the URL that it returns to a list of IP addresses, Amazon VPCs or Amazon VPC Endpoints that you specify. For more information, see Connect to SageMaker Studio Through an Interface VPC Endpoint .
The URL that you get from a call to CreatePresignedDomainUrl
has a default timeout of 5 minutes. You can configure this value using ExpiresInSeconds
. If you try to use the URL after the timeout limit expires, you are directed to the Amazon Web Services console sign-in page.
Implementations§
source§impl CreatePresignedDomainUrl
impl CreatePresignedDomainUrl
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreatePresignedDomainUrl, AwsResponseRetryClassifier>, SdkError<CreatePresignedDomainUrlError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreatePresignedDomainUrl, AwsResponseRetryClassifier>, SdkError<CreatePresignedDomainUrlError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreatePresignedDomainUrlOutput, SdkError<CreatePresignedDomainUrlError>>
pub async fn send(
self
) -> Result<CreatePresignedDomainUrlOutput, SdkError<CreatePresignedDomainUrlError>>
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, which can be set when configuring the client.
sourcepub fn set_domain_id(self, input: Option<String>) -> Self
pub fn set_domain_id(self, input: Option<String>) -> Self
The domain ID.
sourcepub fn user_profile_name(self, input: impl Into<String>) -> Self
pub fn user_profile_name(self, input: impl Into<String>) -> Self
The name of the UserProfile to sign-in as.
sourcepub fn set_user_profile_name(self, input: Option<String>) -> Self
pub fn set_user_profile_name(self, input: Option<String>) -> Self
The name of the UserProfile to sign-in as.
sourcepub fn session_expiration_duration_in_seconds(self, input: i32) -> Self
pub fn session_expiration_duration_in_seconds(self, input: i32) -> Self
The session expiration duration in seconds. This value defaults to 43200.
sourcepub fn set_session_expiration_duration_in_seconds(
self,
input: Option<i32>
) -> Self
pub fn set_session_expiration_duration_in_seconds(
self,
input: Option<i32>
) -> Self
The session expiration duration in seconds. This value defaults to 43200.
sourcepub fn expires_in_seconds(self, input: i32) -> Self
pub fn expires_in_seconds(self, input: i32) -> Self
The number of seconds until the pre-signed URL expires. This value defaults to 300.
sourcepub fn set_expires_in_seconds(self, input: Option<i32>) -> Self
pub fn set_expires_in_seconds(self, input: Option<i32>) -> Self
The number of seconds until the pre-signed URL expires. This value defaults to 300.
sourcepub fn space_name(self, input: impl Into<String>) -> Self
pub fn space_name(self, input: impl Into<String>) -> Self
The name of the space.
sourcepub fn set_space_name(self, input: Option<String>) -> Self
pub fn set_space_name(self, input: Option<String>) -> Self
The name of the space.
Trait Implementations§
source§impl Clone for CreatePresignedDomainUrl
impl Clone for CreatePresignedDomainUrl
source§fn clone(&self) -> CreatePresignedDomainUrl
fn clone(&self) -> CreatePresignedDomainUrl
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more