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 |
Imports a single ipynb
file to a Spark enabled workgroup. The maximum
file size that can be imported is 10 megabytes. If an ipynb
file with
the same name already exists in the workgroup, throws an error.
Synopsis
- data ImportNotebook = ImportNotebook' {}
- newImportNotebook :: Text -> Text -> Text -> NotebookType -> ImportNotebook
- importNotebook_clientRequestToken :: Lens' ImportNotebook (Maybe Text)
- importNotebook_workGroup :: Lens' ImportNotebook Text
- importNotebook_name :: Lens' ImportNotebook Text
- importNotebook_payload :: Lens' ImportNotebook Text
- importNotebook_type :: Lens' ImportNotebook NotebookType
- data ImportNotebookResponse = ImportNotebookResponse' {
- notebookId :: Maybe Text
- httpStatus :: Int
- newImportNotebookResponse :: Int -> ImportNotebookResponse
- importNotebookResponse_notebookId :: Lens' ImportNotebookResponse (Maybe Text)
- importNotebookResponse_httpStatus :: Lens' ImportNotebookResponse Int
Creating a Request
data ImportNotebook Source #
See: newImportNotebook
smart constructor.
ImportNotebook' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> NotebookType | |
-> ImportNotebook |
Create a value of ImportNotebook
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:ImportNotebook'
, importNotebook_clientRequestToken
- A unique case-sensitive string used to ensure the request to import 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.
ImportNotebook
, importNotebook_workGroup
- The name of the Spark enabled workgroup to import the notebook to.
ImportNotebook
, importNotebook_name
- The name of the notebook to import.
$sel:payload:ImportNotebook'
, importNotebook_payload
- The notebook content to be imported.
ImportNotebook
, importNotebook_type
- The notebook content type. Currently, the only valid type is IPYNB
.
Request Lenses
importNotebook_clientRequestToken :: Lens' ImportNotebook (Maybe Text) Source #
A unique case-sensitive string used to ensure the request to import 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.
importNotebook_workGroup :: Lens' ImportNotebook Text Source #
The name of the Spark enabled workgroup to import the notebook to.
importNotebook_name :: Lens' ImportNotebook Text Source #
The name of the notebook to import.
importNotebook_payload :: Lens' ImportNotebook Text Source #
The notebook content to be imported.
importNotebook_type :: Lens' ImportNotebook NotebookType Source #
The notebook content type. Currently, the only valid type is IPYNB
.
Destructuring the Response
data ImportNotebookResponse Source #
See: newImportNotebookResponse
smart constructor.
ImportNotebookResponse' | |
|
Instances
newImportNotebookResponse Source #
Create a value of ImportNotebookResponse
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:
ImportNotebookResponse
, importNotebookResponse_notebookId
- The ID of the notebook to import.
$sel:httpStatus:ImportNotebookResponse'
, importNotebookResponse_httpStatus
- The response's http status code.
Response Lenses
importNotebookResponse_notebookId :: Lens' ImportNotebookResponse (Maybe Text) Source #
The ID of the notebook to import.
importNotebookResponse_httpStatus :: Lens' ImportNotebookResponse Int Source #
The response's http status code.