Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CreatePresignedDomainUrl = CreatePresignedDomainUrl' {}
- newCreatePresignedDomainUrl :: Text -> Text -> CreatePresignedDomainUrl
- createPresignedDomainUrl_sessionExpirationDurationInSeconds :: Lens' CreatePresignedDomainUrl (Maybe Natural)
- createPresignedDomainUrl_expiresInSeconds :: Lens' CreatePresignedDomainUrl (Maybe Natural)
- createPresignedDomainUrl_domainId :: Lens' CreatePresignedDomainUrl Text
- createPresignedDomainUrl_userProfileName :: Lens' CreatePresignedDomainUrl Text
- data CreatePresignedDomainUrlResponse = CreatePresignedDomainUrlResponse' {
- authorizedUrl :: Maybe Text
- httpStatus :: Int
- newCreatePresignedDomainUrlResponse :: Int -> CreatePresignedDomainUrlResponse
- createPresignedDomainUrlResponse_authorizedUrl :: Lens' CreatePresignedDomainUrlResponse (Maybe Text)
- createPresignedDomainUrlResponse_httpStatus :: Lens' CreatePresignedDomainUrlResponse Int
Creating a Request
data CreatePresignedDomainUrl Source #
See: newCreatePresignedDomainUrl
smart constructor.
CreatePresignedDomainUrl' | |
|
Instances
newCreatePresignedDomainUrl Source #
:: Text | |
-> Text | |
-> CreatePresignedDomainUrl |
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.
createPresignedDomainUrl_domainId :: Lens' CreatePresignedDomainUrl Text Source #
The domain ID.
createPresignedDomainUrl_userProfileName :: Lens' CreatePresignedDomainUrl Text Source #
The name of the UserProfile to sign-in as.
Destructuring the Response
data CreatePresignedDomainUrlResponse Source #
See: newCreatePresignedDomainUrlResponse
smart constructor.
CreatePresignedDomainUrlResponse' | |
|
Instances
Eq CreatePresignedDomainUrlResponse Source # | |
Read CreatePresignedDomainUrlResponse Source # | |
Show CreatePresignedDomainUrlResponse Source # | |
Generic CreatePresignedDomainUrlResponse Source # | |
NFData CreatePresignedDomainUrlResponse Source # | |
Defined in Amazonka.SageMaker.CreatePresignedDomainUrl rnf :: CreatePresignedDomainUrlResponse -> () # | |
type Rep CreatePresignedDomainUrlResponse Source # | |
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
createPresignedDomainUrlResponse_authorizedUrl :: Lens' CreatePresignedDomainUrlResponse (Maybe Text) Source #
The presigned URL.
createPresignedDomainUrlResponse_httpStatus :: Lens' CreatePresignedDomainUrlResponse Int Source #
The response's http status code.