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

********************
update_dataset_group
********************



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

  

  Replaces the datasets in a dataset group with the specified datasets.

   

  .. note::

    

    The ``Status`` of the dataset group must be ``ACTIVE`` before you can use the dataset group to create a predictor. Use the `DescribeDatasetGroup <https://docs.aws.amazon.com/forecast/latest/dg/API_DescribeDatasetGroup.html>`__ operation to get the status.

    

  

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


  **Request Syntax**
  ::

    response = client.update_dataset_group(
        DatasetGroupArn='string',
        DatasetArns=[
            'string',
        ]
    )
    
  :type DatasetGroupArn: string
  :param DatasetGroupArn: **[REQUIRED]** 

    The ARN of the dataset group.

    

  
  :type DatasetArns: list
  :param DatasetArns: **[REQUIRED]** 

    An array of the Amazon Resource Names (ARNs) of the datasets to add to the dataset group.

    

  
    - *(string) --* 

    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`ForecastService.Client.exceptions.InvalidInputException`

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

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

  