pub struct CreateInferenceRecommendationsJob { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateInferenceRecommendationsJob
.
Starts a recommendation job. You can create either an instance recommendation or load test job.
Implementations
sourceimpl CreateInferenceRecommendationsJob
impl CreateInferenceRecommendationsJob
sourcepub async fn send(
self
) -> Result<CreateInferenceRecommendationsJobOutput, SdkError<CreateInferenceRecommendationsJobError>>
pub async fn send(
self
) -> Result<CreateInferenceRecommendationsJobOutput, SdkError<CreateInferenceRecommendationsJobError>>
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, which can be set when configuring the client.
sourcepub fn job_name(self, input: impl Into<String>) -> Self
pub fn job_name(self, input: impl Into<String>) -> Self
A name for the recommendation job. The name must be unique within the Amazon Web Services Region and within your Amazon Web Services account.
sourcepub fn set_job_name(self, input: Option<String>) -> Self
pub fn set_job_name(self, input: Option<String>) -> Self
A name for the recommendation job. The name must be unique within the Amazon Web Services Region and within your Amazon Web Services account.
sourcepub fn job_type(self, input: RecommendationJobType) -> Self
pub fn job_type(self, input: RecommendationJobType) -> Self
Defines the type of recommendation job. Specify Default
to initiate an instance recommendation and Advanced
to initiate a load test. If left unspecified, Amazon SageMaker Inference Recommender will run an instance recommendation (DEFAULT
) job.
sourcepub fn set_job_type(self, input: Option<RecommendationJobType>) -> Self
pub fn set_job_type(self, input: Option<RecommendationJobType>) -> Self
Defines the type of recommendation job. Specify Default
to initiate an instance recommendation and Advanced
to initiate a load test. If left unspecified, Amazon SageMaker Inference Recommender will run an instance recommendation (DEFAULT
) job.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
sourcepub fn input_config(self, input: RecommendationJobInputConfig) -> Self
pub fn input_config(self, input: RecommendationJobInputConfig) -> Self
Provides information about the versioned model package Amazon Resource Name (ARN), the traffic pattern, and endpoint configurations.
sourcepub fn set_input_config(
self,
input: Option<RecommendationJobInputConfig>
) -> Self
pub fn set_input_config(
self,
input: Option<RecommendationJobInputConfig>
) -> Self
Provides information about the versioned model package Amazon Resource Name (ARN), the traffic pattern, and endpoint configurations.
sourcepub fn job_description(self, input: impl Into<String>) -> Self
pub fn job_description(self, input: impl Into<String>) -> Self
Description of the recommendation job.
sourcepub fn set_job_description(self, input: Option<String>) -> Self
pub fn set_job_description(self, input: Option<String>) -> Self
Description of the recommendation job.
sourcepub fn stopping_conditions(
self,
input: RecommendationJobStoppingConditions
) -> Self
pub fn stopping_conditions(
self,
input: RecommendationJobStoppingConditions
) -> Self
A set of conditions for stopping a recommendation job. If any of the conditions are met, the job is automatically stopped.
sourcepub fn set_stopping_conditions(
self,
input: Option<RecommendationJobStoppingConditions>
) -> Self
pub fn set_stopping_conditions(
self,
input: Option<RecommendationJobStoppingConditions>
) -> Self
A set of conditions for stopping a recommendation job. If any of the conditions are met, the job is automatically stopped.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
The metadata that you apply to Amazon Web Services resources to help you categorize and organize them. Each tag consists of a key and a value, both of which you define. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.
The metadata that you apply to Amazon Web Services resources to help you categorize and organize them. Each tag consists of a key and a value, both of which you define. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.
Trait Implementations
sourceimpl Clone for CreateInferenceRecommendationsJob
impl Clone for CreateInferenceRecommendationsJob
sourcefn clone(&self) -> CreateInferenceRecommendationsJob
fn clone(&self) -> CreateInferenceRecommendationsJob
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CreateInferenceRecommendationsJob
impl Send for CreateInferenceRecommendationsJob
impl Sync for CreateInferenceRecommendationsJob
impl Unpin for CreateInferenceRecommendationsJob
impl !UnwindSafe for CreateInferenceRecommendationsJob
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more