:doc:`ForecastService <../../forecast>` / Client / stop_resource

*************
stop_resource
*************



.. py:method:: ForecastService.Client.stop_resource(**kwargs)

  

  Stops a resource.

   

  The resource undergoes the following states: ``CREATE_STOPPING`` and ``CREATE_STOPPED``. You cannot resume a resource once it has been stopped.

   

  This operation can be applied to the following resources (and their corresponding child resources):

   

  
  * Dataset Import Job
   
  * Predictor Job
   
  * Forecast Job
   
  * Forecast Export Job
   
  * Predictor Backtest Export Job
   
  * Explainability Job
   
  * Explainability Export Job
  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/StopResource>`_  


  **Request Syntax**
  ::

    response = client.stop_resource(
        ResourceArn='string'
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) that identifies the resource to stop. The supported ARNs are ``DatasetImportJobArn``, ``PredictorArn``, ``PredictorBacktestExportJobArn``, ``ForecastArn``, ``ForecastExportJobArn``, ``ExplainabilityArn``, and ``ExplainabilityExportArn``.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`ForecastService.Client.exceptions.InvalidInputException`

  
  *   :py:class:`ForecastService.Client.exceptions.LimitExceededException`

  
  *   :py:class:`ForecastService.Client.exceptions.ResourceNotFoundException`

  