:doc:`FinSpaceData <../../finspace-data>` / Client / create_data_view

****************
create_data_view
****************



.. py:method:: FinSpaceData.Client.create_data_view(**kwargs)

  

  Creates a Dataview for a Dataset.

  

  .. danger::

        This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.


  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/CreateDataView>`_  


  **Request Syntax**
  ::

    response = client.create_data_view(
        clientToken='string',
        datasetId='string',
        autoUpdate=True|False,
        sortColumns=[
            'string',
        ],
        partitionColumns=[
            'string',
        ],
        asOfTimestamp=123,
        destinationTypeParams={
            'destinationType': 'string',
            's3DestinationExportFileFormat': 'PARQUET'|'DELIMITED_TEXT',
            's3DestinationExportFileFormatOptions': {
                'string': 'string'
            }
        }
    )
    
  :type clientToken: string
  :param clientToken: 

    A token that ensures idempotency. This token expires in 10 minutes.

    This field is autopopulated if not provided.

  
  :type datasetId: string
  :param datasetId: **[REQUIRED]** 

    The unique Dataset identifier that is used to create a Dataview.

    

  
  :type autoUpdate: boolean
  :param autoUpdate: 

    Flag to indicate Dataview should be updated automatically.

    

  
  :type sortColumns: list
  :param sortColumns: 

    Columns to be used for sorting the data.

    

  
    - *(string) --* 1 - 255 character String

    

  :type partitionColumns: list
  :param partitionColumns: 

    Ordered set of column names used to partition data.

    

  
    - *(string) --* 1 - 255 character String

    

  :type asOfTimestamp: integer
  :param asOfTimestamp: 

    Beginning time to use for the Dataview. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.

    

  
  :type destinationTypeParams: dict
  :param destinationTypeParams: **[REQUIRED]** 

    Options that define the destination type for the Dataview.

    

  
    - **destinationType** *(string) --* **[REQUIRED]** 

      Destination type for a Dataview.

       

      
      * ``GLUE_TABLE`` – Glue table destination type.
       
      * ``S3`` – S3 destination type.
      

      

    
    - **s3DestinationExportFileFormat** *(string) --* 

      Dataview export file format.

       

      
      * ``PARQUET`` – Parquet export file format.
       
      * ``DELIMITED_TEXT`` – Delimited text export file format.
      

      

    
    - **s3DestinationExportFileFormatOptions** *(dict) --* 

      Format Options for S3 Destination type.

       

      Here is an example of how you could specify the ``s3DestinationExportFileFormatOptions``

       

      ``{ "header": "true", "delimiter": ",", "compression": "gzip" }``

      

    
      - *(string) --* 

      
        - *(string) --* 

        
  

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

    
    ::

      {
          'datasetId': 'string',
          'dataViewId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* Response for creating a data view.
      

      - **datasetId** *(string) --* 

        The unique identifier of the Dataset used for the Dataview.

        
      

      - **dataViewId** *(string) --* 

        The unique identifier for the created Dataview.

        
  
  **Exceptions**
  
  *   :py:class:`FinSpaceData.Client.exceptions.InternalServerException`

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

  
  *   :py:class:`FinSpaceData.Client.exceptions.ValidationException`

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

  
  *   :py:class:`FinSpaceData.Client.exceptions.ConflictException`

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

  