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 |
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.
UpdateNotebook' | |
|
Instances
:: 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.
UpdateNotebookResponse' | |
|
Instances
Generic UpdateNotebookResponse Source # | |
Defined in Amazonka.Athena.UpdateNotebook type Rep UpdateNotebookResponse :: Type -> Type # | |
Read UpdateNotebookResponse Source # | |
Show UpdateNotebookResponse Source # | |
Defined in Amazonka.Athena.UpdateNotebook showsPrec :: Int -> UpdateNotebookResponse -> ShowS # show :: UpdateNotebookResponse -> String # showList :: [UpdateNotebookResponse] -> ShowS # | |
NFData UpdateNotebookResponse Source # | |
Defined in Amazonka.Athena.UpdateNotebook rnf :: UpdateNotebookResponse -> () # | |
Eq UpdateNotebookResponse Source # | |
Defined in Amazonka.Athena.UpdateNotebook | |
type Rep UpdateNotebookResponse Source # | |
Defined in Amazonka.Athena.UpdateNotebook type Rep UpdateNotebookResponse = D1 ('MetaData "UpdateNotebookResponse" "Amazonka.Athena.UpdateNotebook" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "UpdateNotebookResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.