:doc:`IoTAnalytics <../../iotanalytics>` / Client / create_dataset_content

**********************
create_dataset_content
**********************



.. py:method:: IoTAnalytics.Client.create_dataset_content(**kwargs)

  

  Creates the content of a dataset by applying a ``queryAction`` (a SQL query) or a ``containerAction`` (executing a containerized application).

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatasetContent>`_  


  **Request Syntax**
  ::

    response = client.create_dataset_content(
        datasetName='string',
        versionId='string'
    )
    
  :type datasetName: string
  :param datasetName: **[REQUIRED]** 

    The name of the dataset.

    

  
  :type versionId: string
  :param versionId: 

    The version ID of the dataset content. To specify ``versionId`` for a dataset content, the dataset must use a `DeltaTimer <https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DeltaTime.html>`__ filter.

    

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

    
    ::

      {
          'versionId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **versionId** *(string) --* 

        The version ID of the dataset contents that are being created.

        
  
  **Exceptions**
  
  *   :py:class:`IoTAnalytics.Client.exceptions.InvalidRequestException`

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

  
  *   :py:class:`IoTAnalytics.Client.exceptions.InternalFailureException`

  
  *   :py:class:`IoTAnalytics.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`IoTAnalytics.Client.exceptions.ThrottlingException`

  