Struct aws_sdk_personalize::client::fluent_builders::CreateSolutionVersion [−][src]
pub struct CreateSolutionVersion<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateSolutionVersion
.
Trains or retrains an active solution. 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
impl<C, M, R> CreateSolutionVersion<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateSolutionVersion<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateSolutionVersionOutput, SdkError<CreateSolutionVersionError>> where
R::Policy: SmithyRetryPolicy<CreateSolutionVersionInputOperationOutputAlias, CreateSolutionVersionOutput, CreateSolutionVersionError, CreateSolutionVersionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateSolutionVersionOutput, SdkError<CreateSolutionVersionError>> where
R::Policy: SmithyRetryPolicy<CreateSolutionVersionInputOperationOutputAlias, CreateSolutionVersionOutput, CreateSolutionVersionError, CreateSolutionVersionInputOperationRetryAlias>,
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.
The Amazon Resource Name (ARN) of the solution containing the training configuration information.
The Amazon Resource Name (ARN) of the solution containing the training configuration information.
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.
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.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateSolutionVersion<C, M, R>
impl<C, M, R> Send for CreateSolutionVersion<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateSolutionVersion<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateSolutionVersion<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateSolutionVersion<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
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