Struct aws_sdk_sagemaker::operation::create_inference_recommendations_job::builders::CreateInferenceRecommendationsJobFluentBuilder
source · pub struct CreateInferenceRecommendationsJobFluentBuilder { /* 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 CreateInferenceRecommendationsJobFluentBuilder
impl CreateInferenceRecommendationsJobFluentBuilder
sourcepub fn as_input(&self) -> &CreateInferenceRecommendationsJobInputBuilder
pub fn as_input(&self) -> &CreateInferenceRecommendationsJobInputBuilder
Access the CreateInferenceRecommendationsJob as a reference.
sourcepub async fn send(
self
) -> Result<CreateInferenceRecommendationsJobOutput, SdkError<CreateInferenceRecommendationsJobError, HttpResponse>>
pub async fn send( self ) -> Result<CreateInferenceRecommendationsJobOutput, SdkError<CreateInferenceRecommendationsJobError, HttpResponse>>
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 async fn customize(
self
) -> Result<CustomizableOperation<CreateInferenceRecommendationsJobOutput, CreateInferenceRecommendationsJobError>, SdkError<CreateInferenceRecommendationsJobError>>
pub async fn customize( self ) -> Result<CustomizableOperation<CreateInferenceRecommendationsJobOutput, CreateInferenceRecommendationsJobError>, SdkError<CreateInferenceRecommendationsJobError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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. The job name is passed down to the resources created by the recommendation job. The names of resources (such as the model, endpoint configuration, endpoint, and compilation) that are prefixed with the job name are truncated at 40 characters.
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. The job name is passed down to the resources created by the recommendation job. The names of resources (such as the model, endpoint configuration, endpoint, and compilation) that are prefixed with the job name are truncated at 40 characters.
sourcepub fn get_job_name(&self) -> &Option<String>
pub fn get_job_name(&self) -> &Option<String>
A name for the recommendation job. The name must be unique within the Amazon Web Services Region and within your Amazon Web Services account. The job name is passed down to the resources created by the recommendation job. The names of resources (such as the model, endpoint configuration, endpoint, and compilation) that are prefixed with the job name are truncated at 40 characters.
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 get_job_type(&self) -> &Option<RecommendationJobType>
pub fn get_job_type(&self) -> &Option<RecommendationJobType>
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 get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
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 get_input_config(&self) -> &Option<RecommendationJobInputConfig>
pub fn get_input_config(&self) -> &Option<RecommendationJobInputConfig>
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 get_job_description(&self) -> &Option<String>
pub fn get_job_description(&self) -> &Option<String>
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 get_stopping_conditions(
&self
) -> &Option<RecommendationJobStoppingConditions>
pub fn get_stopping_conditions( &self ) -> &Option<RecommendationJobStoppingConditions>
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.
sourcepub fn get_output_config(&self) -> &Option<RecommendationJobOutputConfig>
pub fn get_output_config(&self) -> &Option<RecommendationJobOutputConfig>
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.
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 CreateInferenceRecommendationsJobFluentBuilder
impl Clone for CreateInferenceRecommendationsJobFluentBuilder
source§fn clone(&self) -> CreateInferenceRecommendationsJobFluentBuilder
fn clone(&self) -> CreateInferenceRecommendationsJobFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more