pub struct Builder { /* private fields */ }
Expand description

Implementations§

The unique identifier of the EMR Notebook to use for notebook execution.

Examples found in repository?
src/client.rs (line 5772)
5771
5772
5773
5774
        pub fn editor_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.editor_id(input.into());
            self
        }

The unique identifier of the EMR Notebook to use for notebook execution.

Examples found in repository?
src/client.rs (line 5777)
5776
5777
5778
5779
        pub fn set_editor_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_editor_id(input);
            self
        }

The path and file name of the notebook file for this execution, relative to the path specified for the EMR Notebook. For example, if you specify a path of s3://MyBucket/MyNotebooks when you create an EMR Notebook for a notebook with an ID of e-ABCDEFGHIJK1234567890ABCD (the EditorID of this request), and you specify a RelativePath of my_notebook_executions/notebook_execution.ipynb, the location of the file for the notebook execution is s3://MyBucket/MyNotebooks/e-ABCDEFGHIJK1234567890ABCD/my_notebook_executions/notebook_execution.ipynb.

Examples found in repository?
src/client.rs (line 5782)
5781
5782
5783
5784
        pub fn relative_path(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.relative_path(input.into());
            self
        }

The path and file name of the notebook file for this execution, relative to the path specified for the EMR Notebook. For example, if you specify a path of s3://MyBucket/MyNotebooks when you create an EMR Notebook for a notebook with an ID of e-ABCDEFGHIJK1234567890ABCD (the EditorID of this request), and you specify a RelativePath of my_notebook_executions/notebook_execution.ipynb, the location of the file for the notebook execution is s3://MyBucket/MyNotebooks/e-ABCDEFGHIJK1234567890ABCD/my_notebook_executions/notebook_execution.ipynb.

Examples found in repository?
src/client.rs (line 5790)
5786
5787
5788
5789
5790
5791
5792
        pub fn set_relative_path(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_relative_path(input);
            self
        }

An optional name for the notebook execution.

Examples found in repository?
src/client.rs (line 5795)
5794
5795
5796
5797
        pub fn notebook_execution_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.notebook_execution_name(input.into());
            self
        }

An optional name for the notebook execution.

Examples found in repository?
src/client.rs (line 5803)
5799
5800
5801
5802
5803
5804
5805
        pub fn set_notebook_execution_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_notebook_execution_name(input);
            self
        }

Input parameters in JSON format passed to the EMR Notebook at runtime for execution.

Examples found in repository?
src/client.rs (line 5808)
5807
5808
5809
5810
        pub fn notebook_params(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.notebook_params(input.into());
            self
        }

Input parameters in JSON format passed to the EMR Notebook at runtime for execution.

Examples found in repository?
src/client.rs (line 5816)
5812
5813
5814
5815
5816
5817
5818
        pub fn set_notebook_params(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_notebook_params(input);
            self
        }

Specifies the execution engine (cluster) that runs the notebook execution.

Examples found in repository?
src/client.rs (line 5821)
5820
5821
5822
5823
        pub fn execution_engine(mut self, input: crate::model::ExecutionEngineConfig) -> Self {
            self.inner = self.inner.execution_engine(input);
            self
        }

Specifies the execution engine (cluster) that runs the notebook execution.

Examples found in repository?
src/client.rs (line 5829)
5825
5826
5827
5828
5829
5830
5831
        pub fn set_execution_engine(
            mut self,
            input: std::option::Option<crate::model::ExecutionEngineConfig>,
        ) -> Self {
            self.inner = self.inner.set_execution_engine(input);
            self
        }

The name or ARN of the IAM role that is used as the service role for Amazon EMR (the EMR role) for the notebook execution.

Examples found in repository?
src/client.rs (line 5834)
5833
5834
5835
5836
        pub fn service_role(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.service_role(input.into());
            self
        }

The name or ARN of the IAM role that is used as the service role for Amazon EMR (the EMR role) for the notebook execution.

Examples found in repository?
src/client.rs (line 5839)
5838
5839
5840
5841
        pub fn set_service_role(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_service_role(input);
            self
        }

The unique identifier of the Amazon EC2 security group to associate with the EMR Notebook for this notebook execution.

Examples found in repository?
src/client.rs (line 5847)
5843
5844
5845
5846
5847
5848
5849
        pub fn notebook_instance_security_group_id(
            mut self,
            input: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.notebook_instance_security_group_id(input.into());
            self
        }

The unique identifier of the Amazon EC2 security group to associate with the EMR Notebook for this notebook execution.

Examples found in repository?
src/client.rs (line 5855)
5851
5852
5853
5854
5855
5856
5857
        pub fn set_notebook_instance_security_group_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_notebook_instance_security_group_id(input);
            self
        }

Appends an item to tags.

To override the contents of this collection use set_tags.

A list of tags associated with a notebook execution. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters and an optional value string with a maximum of 256 characters.

Examples found in repository?
src/client.rs (line 5864)
5863
5864
5865
5866
        pub fn tags(mut self, input: crate::model::Tag) -> Self {
            self.inner = self.inner.tags(input);
            self
        }

A list of tags associated with a notebook execution. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters and an optional value string with a maximum of 256 characters.

Examples found in repository?
src/client.rs (line 5872)
5868
5869
5870
5871
5872
5873
5874
        pub fn set_tags(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
        ) -> Self {
            self.inner = self.inner.set_tags(input);
            self
        }

Consumes the builder and constructs a StartNotebookExecutionInput.

Examples found in repository?
src/client.rs (line 5739)
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::StartNotebookExecution,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::StartNotebookExecutionError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// Sends the request and returns the response.
        ///
        /// If an error occurs, an `SdkError` will be returned with additional details that
        /// can be matched against.
        ///
        /// By default, any retryable failures will be retried twice. Retry behavior
        /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::StartNotebookExecutionOutput,
            aws_smithy_http::result::SdkError<crate::error::StartNotebookExecutionError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more