Struct aws_sdk_personalize::operation::create_solution_version::builders::CreateSolutionVersionFluentBuilder
source · pub struct CreateSolutionVersionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateSolutionVersion
.
Trains or retrains an active solution in a Custom dataset group. A solution is created using the CreateSolution operation and must be in the ACTIVE state before calling CreateSolutionVersion
. A new version of the solution is created every time you call this operation.
Status
A solution version can be in one of the following states:
-
CREATE PENDING
-
CREATE IN_PROGRESS
-
ACTIVE
-
CREATE FAILED
-
CREATE STOPPING
-
CREATE STOPPED
To get the status of the version, call DescribeSolutionVersion. Wait until the status shows as ACTIVE before calling CreateCampaign
.
If the status shows as CREATE FAILED, the response includes a failureReason
key, which describes why the job failed.
Related APIs
Implementations§
source§impl CreateSolutionVersionFluentBuilder
impl CreateSolutionVersionFluentBuilder
sourcepub fn as_input(&self) -> &CreateSolutionVersionInputBuilder
pub fn as_input(&self) -> &CreateSolutionVersionInputBuilder
Access the CreateSolutionVersion as a reference.
sourcepub async fn send(
self
) -> Result<CreateSolutionVersionOutput, SdkError<CreateSolutionVersionError, HttpResponse>>
pub async fn send( self ) -> Result<CreateSolutionVersionOutput, SdkError<CreateSolutionVersionError, 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 fn customize(
self
) -> CustomizableOperation<CreateSolutionVersionOutput, CreateSolutionVersionError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateSolutionVersionOutput, CreateSolutionVersionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn solution_arn(self, input: impl Into<String>) -> Self
pub fn solution_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the solution containing the training configuration information.
sourcepub fn set_solution_arn(self, input: Option<String>) -> Self
pub fn set_solution_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the solution containing the training configuration information.
sourcepub fn get_solution_arn(&self) -> &Option<String>
pub fn get_solution_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the solution containing the training configuration information.
sourcepub fn training_mode(self, input: TrainingMode) -> Self
pub fn training_mode(self, input: TrainingMode) -> Self
The scope of training to be performed when creating the solution version. The FULL
option trains the solution version based on the entirety of the input solution's training data, while the UPDATE
option processes only the data that has changed in comparison to the input solution. Choose UPDATE
when you want to incrementally update your solution version instead of creating an entirely new one.
The UPDATE
option can only be used when you already have an active solution version created from the input solution using the FULL
option and the input solution was trained with the User-Personalization recipe or the HRNN-Coldstart recipe.
sourcepub fn set_training_mode(self, input: Option<TrainingMode>) -> Self
pub fn set_training_mode(self, input: Option<TrainingMode>) -> Self
The scope of training to be performed when creating the solution version. The FULL
option trains the solution version based on the entirety of the input solution's training data, while the UPDATE
option processes only the data that has changed in comparison to the input solution. Choose UPDATE
when you want to incrementally update your solution version instead of creating an entirely new one.
The UPDATE
option can only be used when you already have an active solution version created from the input solution using the FULL
option and the input solution was trained with the User-Personalization recipe or the HRNN-Coldstart recipe.
sourcepub fn get_training_mode(&self) -> &Option<TrainingMode>
pub fn get_training_mode(&self) -> &Option<TrainingMode>
The scope of training to be performed when creating the solution version. The FULL
option trains the solution version based on the entirety of the input solution's training data, while the UPDATE
option processes only the data that has changed in comparison to the input solution. Choose UPDATE
when you want to incrementally update your solution version instead of creating an entirely new one.
The UPDATE
option can only be used when you already have an active solution version created from the input solution using the FULL
option and the input solution was trained with the User-Personalization recipe or the HRNN-Coldstart recipe.
A list of tags to apply to the solution version.
A list of tags to apply to the solution version.
Trait Implementations§
source§impl Clone for CreateSolutionVersionFluentBuilder
impl Clone for CreateSolutionVersionFluentBuilder
source§fn clone(&self) -> CreateSolutionVersionFluentBuilder
fn clone(&self) -> CreateSolutionVersionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more