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.UpdateNotebook

Description

Updates the contents of a Spark notebook.

Synopsis

Creating a Request

data UpdateNotebook Source #

See: newUpdateNotebook smart constructor.

Constructors

UpdateNotebook' 

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.

  • sessionId :: Maybe Text

    The ID of the session in which the notebook will be updated.

  • notebookId :: Text

    The ID of the notebook to update.

  • payload :: Text

    The updated content for the notebook.

  • type' :: NotebookType

    The notebook content type. Currently, the only valid type is IPYNB.

Instances

Instances details
ToJSON UpdateNotebook Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

ToHeaders UpdateNotebook Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

ToPath UpdateNotebook Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

ToQuery UpdateNotebook Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

AWSRequest UpdateNotebook Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

Associated Types

type AWSResponse UpdateNotebook #

Generic UpdateNotebook Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

Associated Types

type Rep UpdateNotebook :: Type -> Type #

Read UpdateNotebook Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

Show UpdateNotebook Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

NFData UpdateNotebook Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

Methods

rnf :: UpdateNotebook -> () #

Eq UpdateNotebook Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

Hashable UpdateNotebook Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

type AWSResponse UpdateNotebook Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

type Rep UpdateNotebook Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

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

newUpdateNotebook Source #

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

Instances details
Generic UpdateNotebookResponse Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

Associated Types

type Rep UpdateNotebookResponse :: Type -> Type #

Read UpdateNotebookResponse Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

Show UpdateNotebookResponse Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

NFData UpdateNotebookResponse Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

Methods

rnf :: UpdateNotebookResponse -> () #

Eq UpdateNotebookResponse Source # 
Instance details

Defined in Amazonka.Athena.UpdateNotebook

type Rep UpdateNotebookResponse Source # 
Instance details

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