libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SageMaker.CreatePresignedDomainUrl

Description

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.

Synopsis

Creating a Request

data CreatePresignedDomainUrl Source #

See: newCreatePresignedDomainUrl smart constructor.

Constructors

CreatePresignedDomainUrl' 

Fields

Instances

Instances details
Eq CreatePresignedDomainUrl Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

Read CreatePresignedDomainUrl Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

Show CreatePresignedDomainUrl Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

Generic CreatePresignedDomainUrl Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

Associated Types

type Rep CreatePresignedDomainUrl :: Type -> Type #

NFData CreatePresignedDomainUrl Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

Hashable CreatePresignedDomainUrl Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

ToJSON CreatePresignedDomainUrl Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

AWSRequest CreatePresignedDomainUrl Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

ToHeaders CreatePresignedDomainUrl Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

ToPath CreatePresignedDomainUrl Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

ToQuery CreatePresignedDomainUrl Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

type Rep CreatePresignedDomainUrl Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

type Rep CreatePresignedDomainUrl = D1 ('MetaData "CreatePresignedDomainUrl" "Amazonka.SageMaker.CreatePresignedDomainUrl" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "CreatePresignedDomainUrl'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "sessionExpirationDurationInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "expiresInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "domainId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "userProfileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreatePresignedDomainUrl Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

newCreatePresignedDomainUrl Source #

Create a value of CreatePresignedDomainUrl with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:sessionExpirationDurationInSeconds:CreatePresignedDomainUrl', createPresignedDomainUrl_sessionExpirationDurationInSeconds - The session expiration duration in seconds. This value defaults to 43200.

$sel:expiresInSeconds:CreatePresignedDomainUrl', createPresignedDomainUrl_expiresInSeconds - The number of seconds until the pre-signed URL expires. This value defaults to 300.

$sel:domainId:CreatePresignedDomainUrl', createPresignedDomainUrl_domainId - The domain ID.

$sel:userProfileName:CreatePresignedDomainUrl', createPresignedDomainUrl_userProfileName - The name of the UserProfile to sign-in as.

Request Lenses

createPresignedDomainUrl_sessionExpirationDurationInSeconds :: Lens' CreatePresignedDomainUrl (Maybe Natural) Source #

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

createPresignedDomainUrl_expiresInSeconds :: Lens' CreatePresignedDomainUrl (Maybe Natural) Source #

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

Destructuring the Response

data CreatePresignedDomainUrlResponse Source #

See: newCreatePresignedDomainUrlResponse smart constructor.

Constructors

CreatePresignedDomainUrlResponse' 

Fields

Instances

Instances details
Eq CreatePresignedDomainUrlResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

Read CreatePresignedDomainUrlResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

Show CreatePresignedDomainUrlResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

Generic CreatePresignedDomainUrlResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

Associated Types

type Rep CreatePresignedDomainUrlResponse :: Type -> Type #

NFData CreatePresignedDomainUrlResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

type Rep CreatePresignedDomainUrlResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreatePresignedDomainUrl

type Rep CreatePresignedDomainUrlResponse = D1 ('MetaData "CreatePresignedDomainUrlResponse" "Amazonka.SageMaker.CreatePresignedDomainUrl" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "CreatePresignedDomainUrlResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "authorizedUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreatePresignedDomainUrlResponse Source #

Create a value of CreatePresignedDomainUrlResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:authorizedUrl:CreatePresignedDomainUrlResponse', createPresignedDomainUrlResponse_authorizedUrl - The presigned URL.

$sel:httpStatus:CreatePresignedDomainUrlResponse', createPresignedDomainUrlResponse_httpStatus - The response's http status code.

Response Lenses