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.UpdateNotebook
Description
Updates the contents of a Spark notebook.
Synopsis
- data UpdateNotebook = UpdateNotebook' {
- clientRequestToken :: Maybe Text
- sessionId :: Maybe Text
- notebookId :: Text
- payload :: Text
- type' :: NotebookType
- newUpdateNotebook :: Text -> Text -> NotebookType -> UpdateNotebook
- updateNotebook_clientRequestToken :: Lens' UpdateNotebook (Maybe Text)
- updateNotebook_sessionId :: Lens' UpdateNotebook (Maybe Text)
- updateNotebook_notebookId :: Lens' UpdateNotebook Text
- updateNotebook_payload :: Lens' UpdateNotebook Text
- updateNotebook_type :: Lens' UpdateNotebook NotebookType
- data UpdateNotebookResponse = UpdateNotebookResponse' {
- httpStatus :: Int
- newUpdateNotebookResponse :: Int -> UpdateNotebookResponse
- updateNotebookResponse_httpStatus :: Lens' UpdateNotebookResponse Int
Creating a Request
data UpdateNotebook Source #
See: newUpdateNotebook
smart constructor.
Constructors
UpdateNotebook' | |
Fields
|
Instances
Arguments
:: Text | |
-> Text | |
-> NotebookType | |
-> UpdateNotebook |
Create a value of UpdateNotebook
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:clientRequestToken:UpdateNotebook'
, updateNotebook_clientRequestToken
- A unique case-sensitive string used to ensure the request to create the
notebook is idempotent (executes only once).
This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
UpdateNotebook
, updateNotebook_sessionId
- The ID of the session in which the notebook will be updated.
UpdateNotebook
, updateNotebook_notebookId
- The ID of the notebook to update.
$sel:payload:UpdateNotebook'
, updateNotebook_payload
- The updated content for the notebook.
UpdateNotebook
, updateNotebook_type
- The notebook content type. Currently, the only valid type is IPYNB
.
Request Lenses
updateNotebook_clientRequestToken :: Lens' UpdateNotebook (Maybe Text) Source #
A unique case-sensitive string used to ensure the request to create the notebook is idempotent (executes only once).
This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
updateNotebook_sessionId :: Lens' UpdateNotebook (Maybe Text) Source #
The ID of the session in which the notebook will be updated.
updateNotebook_notebookId :: Lens' UpdateNotebook Text Source #
The ID of the notebook to update.
updateNotebook_payload :: Lens' UpdateNotebook Text Source #
The updated content for the notebook.
updateNotebook_type :: Lens' UpdateNotebook NotebookType Source #
The notebook content type. Currently, the only valid type is IPYNB
.
Destructuring the Response
data UpdateNotebookResponse Source #
See: newUpdateNotebookResponse
smart constructor.
Constructors
UpdateNotebookResponse' | |
Fields
|
Instances
newUpdateNotebookResponse Source #
Create a value of UpdateNotebookResponse
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:UpdateNotebookResponse'
, updateNotebookResponse_httpStatus
- The response's http status code.
Response Lenses
updateNotebookResponse_httpStatus :: Lens' UpdateNotebookResponse Int Source #
The response's http status code.