:doc:`Glue <../../glue>` / Client / create_data_quality_ruleset

***************************
create_data_quality_ruleset
***************************



.. py:method:: Glue.Client.create_data_quality_ruleset(**kwargs)

  

  Creates a data quality ruleset with DQDL rules applied to a specified Glue table.

   

  You create the ruleset using the Data Quality Definition Language (DQDL). For more information, see the Glue developer guide.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateDataQualityRuleset>`_  


  **Request Syntax**
  ::

    response = client.create_data_quality_ruleset(
        Name='string',
        Description='string',
        Ruleset='string',
        Tags={
            'string': 'string'
        },
        TargetTable={
            'TableName': 'string',
            'DatabaseName': 'string',
            'CatalogId': 'string'
        },
        DataQualitySecurityConfiguration='string',
        ClientToken='string'
    )
    
  :type Name: string
  :param Name: **[REQUIRED]** 

    A unique name for the data quality ruleset.

    

  
  :type Description: string
  :param Description: 

    A description of the data quality ruleset.

    

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

    A Data Quality Definition Language (DQDL) ruleset. For more information, see the Glue developer guide.

    

  
  :type Tags: dict
  :param Tags: 

    A list of tags applied to the data quality ruleset.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type TargetTable: dict
  :param TargetTable: 

    A target table associated with the data quality ruleset.

    

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

      The name of the Glue table.

      

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

      The name of the database where the Glue table exists.

      

    
    - **CatalogId** *(string) --* 

      The catalog id where the Glue table exists.

      

    
  
  :type DataQualitySecurityConfiguration: string
  :param DataQualitySecurityConfiguration: 

    The name of the security configuration created with the data quality encryption option.

    

  
  :type ClientToken: string
  :param ClientToken: 

    Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting multiple instances of the same resource.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **Name** *(string) --* 

        A unique name for the data quality ruleset.

        
  
  **Exceptions**
  
  *   :py:class:`Glue.Client.exceptions.InvalidInputException`

  
  *   :py:class:`Glue.Client.exceptions.AlreadyExistsException`

  
  *   :py:class:`Glue.Client.exceptions.OperationTimeoutException`

  
  *   :py:class:`Glue.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Glue.Client.exceptions.ResourceNumberLimitExceededException`

  