:doc:`DataZone <../../datazone>` / Client / reject_predictions

******************
reject_predictions
******************



.. py:method:: DataZone.Client.reject_predictions(**kwargs)

  

  Rejects automatically generated business-friendly metadata for your Amazon DataZone assets.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/RejectPredictions>`_  


  **Request Syntax**
  ::

    response = client.reject_predictions(
        domainIdentifier='string',
        identifier='string',
        revision='string',
        rejectRule={
            'rule': 'ALL'|'NONE',
            'threshold': ...
        },
        rejectChoices=[
            {
                'predictionTarget': 'string',
                'predictionChoices': [
                    123,
                ]
            },
        ],
        clientToken='string'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The identifier of the Amazon DataZone domain.

    

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

    The identifier of the prediction.

    

  
  :type revision: string
  :param revision: 

    The revision that is to be made to the asset.

    

  
  :type rejectRule: dict
  :param rejectRule: 

    Specifies the rule (or the conditions) under which a prediction can be rejected.

    

  
    - **rule** *(string) --* 

      Specifies whether you want to reject the top prediction for all targets or none.

      

    
    - **threshold** *(float) --* 

      The confidence score that specifies the condition at which a prediction can be rejected.

      

    
  
  :type rejectChoices: list
  :param rejectChoices: 

    Specifies the prediction (aka, the automatically generated piece of metadata) and the target (for example, a column name) that can be rejected.

    

  
    - *(dict) --* 

      The details of the automatically generated business metadata that is rejected.

      

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

        Specifies the target (for example, a column name) where a prediction can be rejected.

        

      
      - **predictionChoices** *(list) --* 

        Specifies the the automatically generated business metadata that can be rejected.

        

      
        - *(integer) --* 

        
    
    

  :type clientToken: string
  :param clientToken: 

    A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'domainId': 'string',
          'assetId': 'string',
          'assetRevision': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **domainId** *(string) --* 

        The ID of the Amazon DataZone domain.

        
      

      - **assetId** *(string) --* 

        The ID of the asset.

        
      

      - **assetRevision** *(string) --* 

        The revision that is to be made to the asset.

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

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

  
  *   :py:class:`DataZone.Client.exceptions.AccessDeniedException`

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

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

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

  
  *   :py:class:`DataZone.Client.exceptions.UnauthorizedException`

  