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 |
Creates an empty ipynb
file in the specified Apache Spark enabled
workgroup. Throws an error if a file in the workgroup with the same name
already exists.
Synopsis
- data CreateNotebook = CreateNotebook' {}
- newCreateNotebook :: Text -> Text -> CreateNotebook
- createNotebook_clientRequestToken :: Lens' CreateNotebook (Maybe Text)
- createNotebook_workGroup :: Lens' CreateNotebook Text
- createNotebook_name :: Lens' CreateNotebook Text
- data CreateNotebookResponse = CreateNotebookResponse' {
- notebookId :: Maybe Text
- httpStatus :: Int
- newCreateNotebookResponse :: Int -> CreateNotebookResponse
- createNotebookResponse_notebookId :: Lens' CreateNotebookResponse (Maybe Text)
- createNotebookResponse_httpStatus :: Lens' CreateNotebookResponse Int
Creating a Request
data CreateNotebook Source #
See: newCreateNotebook
smart constructor.
CreateNotebook' | |
|
Instances
Create a value of CreateNotebook
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:CreateNotebook'
, createNotebook_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.
CreateNotebook
, createNotebook_workGroup
- The name of the Spark enabled workgroup in which the notebook will be
created.
CreateNotebook
, createNotebook_name
- The name of the ipynb
file to be created in the Spark workgroup,
without the .ipynb
extension.
Request Lenses
createNotebook_clientRequestToken :: Lens' CreateNotebook (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.
createNotebook_workGroup :: Lens' CreateNotebook Text Source #
The name of the Spark enabled workgroup in which the notebook will be created.
createNotebook_name :: Lens' CreateNotebook Text Source #
The name of the ipynb
file to be created in the Spark workgroup,
without the .ipynb
extension.
Destructuring the Response
data CreateNotebookResponse Source #
See: newCreateNotebookResponse
smart constructor.
CreateNotebookResponse' | |
|
Instances
newCreateNotebookResponse Source #
Create a value of CreateNotebookResponse
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:
CreateNotebookResponse
, createNotebookResponse_notebookId
- A unique identifier for the notebook.
$sel:httpStatus:CreateNotebookResponse'
, createNotebookResponse_httpStatus
- The response's http status code.
Response Lenses
createNotebookResponse_notebookId :: Lens' CreateNotebookResponse (Maybe Text) Source #
A unique identifier for the notebook.
createNotebookResponse_httpStatus :: Lens' CreateNotebookResponse Int Source #
The response's http status code.