stop_solution_version_creation(
solution_version_arn: Arn,
*,
config_overrides: Optional[AsyncPersonalizeClientConfig] = None,
) -> None
Stops creating a solution version that is in a state of CREATE_PENDING or CREATE IN_PROGRESS.
Depending on the current state of the solution version, the solution version state changes as follows:
You are billed for all of the training completed up until you stop the solution version creation. You cannot resume creating a solution version once it has been stopped.
Parameters:
-
solution_version_arn
(Arn)
–
The Amazon Resource Name (ARN) of the solution version you want to stop creating.
Raises:
Source code in docs_src/capo_personalize/_services/async_personalize.py
| async def stop_solution_version_creation(
self,
solution_version_arn: "capo_personalize.types.arn.Arn",
*,
config_overrides: Optional[AsyncPersonalizeClientConfig] = None,
) -> None:
"""<p>Stops creating a solution version that is in a state of CREATE_PENDING or CREATE IN_PROGRESS. </p> <p>Depending on the current state of the solution version, the solution version state changes as follows:</p> <ul> <li> <p>CREATE_PENDING > CREATE_STOPPED</p> <p>or</p> </li> <li> <p>CREATE_IN_PROGRESS > CREATE_STOPPING > CREATE_STOPPED</p> </li> </ul> <p>You are billed for all of the training completed up until you stop the solution version creation. You cannot resume creating a solution version once it has been stopped.</p>
Args:
solution_version_arn: <p>The Amazon Resource Name (ARN) of the solution version you want to stop creating.</p>
Raises:
capo_personalize.errors.invalid_input_exception.InvalidInputException: <p>Provide a valid value for the field or parameter.</p>
capo_personalize.errors.resource_in_use_exception.ResourceInUseException: <p>The specified resource is in use.</p>
capo_personalize.errors.resource_not_found_exception.ResourceNotFoundException: <p>Could not find the specified resource.</p>
capo_personalize.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_personalize.types.stop_solution_version_creation_request.StopSolutionVersionCreationRequest]",
) -> AsyncOperationResponse[None]:
import capo_personalize._operations.amazon_personalize.stop_solution_version_creation
(
output,
http_response,
) = await capo_personalize._operations.amazon_personalize.stop_solution_version_creation.async_stop_solution_version_creation(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("StopSolutionVersionCreation")
)
input_: capo_personalize.types.stop_solution_version_creation_request.StopSolutionVersionCreationRequest = {
"solution_version_arn": solution_version_arn
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|