SageMaker / Client / stop_training_session

stop_training_session

SageMaker.Client.stop_training_session(**kwargs)

Stops a running training session and sets the session status to Stopping. After the session stops, the status changes to Stopped. To delete a stopped session, use the DeleteTrainingSession operation.

The following operations are related to StopTrainingSession:

  • CreateTrainingSession

  • DescribeTrainingSession

  • DeleteTrainingSession

See also: AWS API Documentation

Request Syntax

response = client.stop_training_session(
    TrainingSessionName='string'
)
Parameters:

TrainingSessionName (string) –

[REQUIRED]

The name of the training session to stop.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • SageMaker.Client.exceptions.ResourceNotFound