Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.Athena.CreatePresignedNotebookUrl
Description
Gets an authentication token and the URL at which the notebook can be
accessed. During programmatic access, CreatePresignedNotebookUrl
must
be called every 10 minutes to refresh the authentication token.
Synopsis
- data CreatePresignedNotebookUrl = CreatePresignedNotebookUrl' {}
- newCreatePresignedNotebookUrl :: Text -> CreatePresignedNotebookUrl
- createPresignedNotebookUrl_sessionId :: Lens' CreatePresignedNotebookUrl Text
- data CreatePresignedNotebookUrlResponse = CreatePresignedNotebookUrlResponse' {}
- newCreatePresignedNotebookUrlResponse :: Int -> Text -> Text -> Integer -> CreatePresignedNotebookUrlResponse
- createPresignedNotebookUrlResponse_httpStatus :: Lens' CreatePresignedNotebookUrlResponse Int
- createPresignedNotebookUrlResponse_notebookUrl :: Lens' CreatePresignedNotebookUrlResponse Text
- createPresignedNotebookUrlResponse_authToken :: Lens' CreatePresignedNotebookUrlResponse Text
- createPresignedNotebookUrlResponse_authTokenExpirationTime :: Lens' CreatePresignedNotebookUrlResponse Integer
Creating a Request
data CreatePresignedNotebookUrl Source #
See: newCreatePresignedNotebookUrl
smart constructor.
Constructors
CreatePresignedNotebookUrl' | |
Instances
newCreatePresignedNotebookUrl Source #
Arguments
:: Text | |
-> CreatePresignedNotebookUrl |
Create a value of CreatePresignedNotebookUrl
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:
CreatePresignedNotebookUrl
, createPresignedNotebookUrl_sessionId
- The session ID.
Request Lenses
createPresignedNotebookUrl_sessionId :: Lens' CreatePresignedNotebookUrl Text Source #
The session ID.
Destructuring the Response
data CreatePresignedNotebookUrlResponse Source #
See: newCreatePresignedNotebookUrlResponse
smart constructor.
Constructors
CreatePresignedNotebookUrlResponse' | |
Fields
|
Instances
newCreatePresignedNotebookUrlResponse Source #
Arguments
:: Int | |
-> Text | |
-> Text | |
-> Integer |
|
-> CreatePresignedNotebookUrlResponse |
Create a value of CreatePresignedNotebookUrlResponse
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:httpStatus:CreatePresignedNotebookUrlResponse'
, createPresignedNotebookUrlResponse_httpStatus
- The response's http status code.
$sel:notebookUrl:CreatePresignedNotebookUrlResponse'
, createPresignedNotebookUrlResponse_notebookUrl
- The URL of the notebook. The URL includes the authentication token and
notebook file name and points directly to the opened notebook.
$sel:authToken:CreatePresignedNotebookUrlResponse'
, createPresignedNotebookUrlResponse_authToken
- The authentication token for the notebook.
$sel:authTokenExpirationTime:CreatePresignedNotebookUrlResponse'
, createPresignedNotebookUrlResponse_authTokenExpirationTime
- The UTC epoch time when the authentication token expires.
Response Lenses
createPresignedNotebookUrlResponse_httpStatus :: Lens' CreatePresignedNotebookUrlResponse Int Source #
The response's http status code.
createPresignedNotebookUrlResponse_notebookUrl :: Lens' CreatePresignedNotebookUrlResponse Text Source #
The URL of the notebook. The URL includes the authentication token and notebook file name and points directly to the opened notebook.
createPresignedNotebookUrlResponse_authToken :: Lens' CreatePresignedNotebookUrlResponse Text Source #
The authentication token for the notebook.
createPresignedNotebookUrlResponse_authTokenExpirationTime :: Lens' CreatePresignedNotebookUrlResponse Integer Source #
The UTC epoch time when the authentication token expires.