DataZone / Client / accept_predictions

accept_predictions#

DataZone.Client.accept_predictions(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response = client.accept_predictions(
    acceptChoices=[
        {
            'editedValue': 'string',
            'predictionChoice': 123,
            'predictionTarget': 'string'
        },
    ],
    acceptRule={
        'rule': 'ALL'|'NONE',
        'threshold': ...
    },
    clientToken='string',
    domainIdentifier='string',
    identifier='string',
    revision='string'
)
Parameters:
  • acceptChoices (list) –

    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.

      • editedValue (string) –

        The edit of the prediction.

      • predictionChoice (integer) –

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

      • predictionTarget (string) – [REQUIRED]

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

  • acceptRule (dict) –

    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.

  • clientToken (string) –

    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.

  • domainIdentifier (string) –

    [REQUIRED]

    The identifier of the Amazon DataZone domain.

  • identifier (string) –

    [REQUIRED]

    The identifier of the asset.

  • revision (string) – The revision that is to be made to the asset.

Return type:

dict

Returns:

Response Syntax

{
    'assetId': 'string',
    'domainId': 'string',
    'revision': 'string'
}

Response Structure

  • (dict) –

    • assetId (string) –

      The ID of the asset.

    • domainId (string) –

      The identifier of the Amazon DataZone domain.

    • revision (string) –

      The revision that is to be made to the asset.

Exceptions