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

******************
accept_predictions
******************



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

  

  Accepts 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/AcceptPredictions>`_  


  **Request Syntax**
  ::

    response = client.accept_predictions(
        domainIdentifier='string',
        identifier='string',
        revision='string',
        acceptRule={
            'rule': 'ALL'|'NONE',
            'threshold': ...
        },
        acceptChoices=[
            {
                'predictionTarget': 'string',
                'predictionChoice': 123,
                'editedValue': 'string'
            },
        ],
        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 asset.

    

  
  :type revision: string
  :param revision: 

    The revision that is to be made to the asset.

    

  
  :type acceptRule: dict
  :param acceptRule: 

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

    

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

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

      

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

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

      

    
  
  :type acceptChoices: list
  :param acceptChoices: 

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

    

  
    - *(dict) --* 

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

      

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

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

        

      
      - **predictionChoice** *(integer) --* 

        Specifies the prediction (aka, the automatically generated piece of metadata) that can be accepted.

        

      
      - **editedValue** *(string) --* 

        The edit of the prediction.

        

      
    

  :type clientToken: string
  :param clientToken: 

    A unique, case-sensitive identifier to ensure idempotency of the request. This field is automatically populated if not provided.

    This field is autopopulated if not provided.

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The identifier of the Amazon DataZone domain.

        
      

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

        The ID of the asset.

        
      

      - **revision** *(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`

  