Amazon SageMaker Service

2021/02/18 - Amazon SageMaker Service - 1 updated api methods

Changes  This release adds expires-in-seconds parameter to the CreatePresignedDomainUrl API for support of a configurable TTL.

CreatePresignedDomainUrl (updated) Link ΒΆ
Changes (request)
{'ExpiresInSeconds': 'integer'}

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.

Note

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 AWS console sign-in page.

See also: AWS API Documentation

Request Syntax

client.create_presigned_domain_url(
    DomainId='string',
    UserProfileName='string',
    SessionExpirationDurationInSeconds=123,
    ExpiresInSeconds=123
)
type DomainId

string

param DomainId

[REQUIRED]

The domain ID.

type UserProfileName

string

param UserProfileName

[REQUIRED]

The name of the UserProfile to sign-in as.

type SessionExpirationDurationInSeconds

integer

param SessionExpirationDurationInSeconds

The session expiration duration in seconds. This value defaults to 43200.

type ExpiresInSeconds

integer

param ExpiresInSeconds

The number of seconds until the pre-signed URL expires. This value defaults to 300.

rtype

dict

returns

Response Syntax

{
    'AuthorizedUrl': 'string'
}

Response Structure

  • (dict) --

    • AuthorizedUrl (string) --

      The presigned URL.