Struct aws_sdk_sagemaker::client::fluent_builders::CreatePresignedDomainUrl [−][src]
pub struct CreatePresignedDomainUrl<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
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 used to call 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
impl<C, M, R> CreatePresignedDomainUrl<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreatePresignedDomainUrl<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreatePresignedDomainUrlOutput, SdkError<CreatePresignedDomainUrlError>> where
R::Policy: SmithyRetryPolicy<CreatePresignedDomainUrlInputOperationOutputAlias, CreatePresignedDomainUrlOutput, CreatePresignedDomainUrlError, CreatePresignedDomainUrlInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreatePresignedDomainUrlOutput, SdkError<CreatePresignedDomainUrlError>> where
R::Policy: SmithyRetryPolicy<CreatePresignedDomainUrlInputOperationOutputAlias, CreatePresignedDomainUrlOutput, CreatePresignedDomainUrlError, CreatePresignedDomainUrlInputOperationRetryAlias>,
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.
The domain ID.
The name of the UserProfile to sign-in as.
The name of the UserProfile to sign-in as.
The session expiration duration in seconds. This value defaults to 43200.
The session expiration duration in seconds. This value defaults to 43200.
The number of seconds until the pre-signed URL expires. This value defaults to 300.
The number of seconds until the pre-signed URL expires. This value defaults to 300.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreatePresignedDomainUrl<C, M, R>
impl<C, M, R> Send for CreatePresignedDomainUrl<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreatePresignedDomainUrl<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreatePresignedDomainUrl<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreatePresignedDomainUrl<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more