amazonka-athena-2.0: Amazon Athena SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Athena.CreateNotebook

Description

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

Creating a Request

data CreateNotebook Source #

See: newCreateNotebook smart constructor.

Constructors

CreateNotebook' 

Fields

  • clientRequestToken :: Maybe Text

    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.

  • workGroup :: Text

    The name of the Spark enabled workgroup in which the notebook will be created.

  • name :: Text

    The name of the ipynb file to be created in the Spark workgroup, without the .ipynb extension.

Instances

Instances details
ToJSON CreateNotebook Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

ToHeaders CreateNotebook Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

ToPath CreateNotebook Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

ToQuery CreateNotebook Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

AWSRequest CreateNotebook Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

Associated Types

type AWSResponse CreateNotebook #

Generic CreateNotebook Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

Associated Types

type Rep CreateNotebook :: Type -> Type #

Read CreateNotebook Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

Show CreateNotebook Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

NFData CreateNotebook Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

Methods

rnf :: CreateNotebook -> () #

Eq CreateNotebook Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

Hashable CreateNotebook Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

type AWSResponse CreateNotebook Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

type Rep CreateNotebook Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

type Rep CreateNotebook = D1 ('MetaData "CreateNotebook" "Amazonka.Athena.CreateNotebook" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "CreateNotebook'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "workGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateNotebook Source #

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.

Constructors

CreateNotebookResponse' 

Fields

Instances

Instances details
Generic CreateNotebookResponse Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

Associated Types

type Rep CreateNotebookResponse :: Type -> Type #

Read CreateNotebookResponse Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

Show CreateNotebookResponse Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

NFData CreateNotebookResponse Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

Methods

rnf :: CreateNotebookResponse -> () #

Eq CreateNotebookResponse Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

type Rep CreateNotebookResponse Source # 
Instance details

Defined in Amazonka.Athena.CreateNotebook

type Rep CreateNotebookResponse = D1 ('MetaData "CreateNotebookResponse" "Amazonka.Athena.CreateNotebook" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "CreateNotebookResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "notebookId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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