aws_sdk_athena/client/
update_notebook.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateNotebook`](crate::operation::update_notebook::builders::UpdateNotebookFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`notebook_id(impl Into<String>)`](crate::operation::update_notebook::builders::UpdateNotebookFluentBuilder::notebook_id) / [`set_notebook_id(Option<String>)`](crate::operation::update_notebook::builders::UpdateNotebookFluentBuilder::set_notebook_id):<br>required: **true**<br><p>The ID of the notebook to update.</p><br>
7    ///   - [`payload(impl Into<String>)`](crate::operation::update_notebook::builders::UpdateNotebookFluentBuilder::payload) / [`set_payload(Option<String>)`](crate::operation::update_notebook::builders::UpdateNotebookFluentBuilder::set_payload):<br>required: **true**<br><p>The updated content for the notebook.</p><br>
8    ///   - [`r#type(NotebookType)`](crate::operation::update_notebook::builders::UpdateNotebookFluentBuilder::type) / [`set_type(Option<NotebookType>)`](crate::operation::update_notebook::builders::UpdateNotebookFluentBuilder::set_type):<br>required: **true**<br><p>The notebook content type. Currently, the only valid type is <code>IPYNB</code>.</p><br>
9    ///   - [`session_id(impl Into<String>)`](crate::operation::update_notebook::builders::UpdateNotebookFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::update_notebook::builders::UpdateNotebookFluentBuilder::set_session_id):<br>required: **false**<br><p>The active notebook session ID. Required if the notebook has an active session.</p><br>
10    ///   - [`client_request_token(impl Into<String>)`](crate::operation::update_notebook::builders::UpdateNotebookFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::update_notebook::builders::UpdateNotebookFluentBuilder::set_client_request_token):<br>required: **false**<br><p>A unique case-sensitive string used to ensure the request to create the notebook is idempotent (executes only once).</p><important>  <p>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.</p> </important><br>
11    /// - On success, responds with [`UpdateNotebookOutput`](crate::operation::update_notebook::UpdateNotebookOutput)
12    /// - On failure, responds with [`SdkError<UpdateNotebookError>`](crate::operation::update_notebook::UpdateNotebookError)
13    pub fn update_notebook(&self) -> crate::operation::update_notebook::builders::UpdateNotebookFluentBuilder {
14        crate::operation::update_notebook::builders::UpdateNotebookFluentBuilder::new(self.handle.clone())
15    }
16}