DataZone / Client / reject_predictions

reject_predictions#

DataZone.Client.reject_predictions(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

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

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

    This field is autopopulated if not provided.

  • domainIdentifier (string) –

    [REQUIRED]

    The identifier of the Amazon DataZone domain.

  • identifier (string) –

    [REQUIRED]

    The identifier of the prediction.

  • rejectChoices (list) –

    • (dict) –

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

      • predictionChoices (list) –

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

        • (integer) –

      • predictionTarget (string) –

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

  • rejectRule (dict) –

    • 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.

  • revision (string) –

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • assetId (string) –

    • assetRevision (string) –

    • domainId (string) –

Exceptions

  • DataZone.Client.exceptions.InternalServerException

  • DataZone.Client.exceptions.ResourceNotFoundException

  • DataZone.Client.exceptions.AccessDeniedException

  • DataZone.Client.exceptions.ThrottlingException

  • DataZone.Client.exceptions.ValidationException

  • DataZone.Client.exceptions.UnauthorizedException