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§
source§impl CreateInferenceRecommendationsJob
impl CreateInferenceRecommendationsJob
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateInferenceRecommendationsJob, AwsResponseRetryClassifier>, SdkError<CreateInferenceRecommendationsJobError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateInferenceRecommendationsJob, AwsResponseRetryClassifier>, SdkError<CreateInferenceRecommendationsJobError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
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.
sourcepub fn output_config(self, input: RecommendationJobOutputConfig) -> Self
pub fn output_config(self, input: RecommendationJobOutputConfig) -> Self
Provides information about the output artifacts and the KMS key to use for Amazon S3 server-side encryption.
sourcepub fn set_output_config(
self,
input: Option<RecommendationJobOutputConfig>
) -> Self
pub fn set_output_config(
self,
input: Option<RecommendationJobOutputConfig>
) -> Self
Provides information about the output artifacts and the KMS key to use for Amazon S3 server-side encryption.
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§
source§impl Clone for CreateInferenceRecommendationsJob
impl Clone for CreateInferenceRecommendationsJob
source§fn clone(&self) -> CreateInferenceRecommendationsJob
fn clone(&self) -> CreateInferenceRecommendationsJob
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more