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) –

    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.

      • predictionChoices (list) –

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

        • (integer) –

      • predictionTarget (string) – [REQUIRED]

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

  • rejectRule (dict) –

    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.

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

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • assetId (string) –

      The ID of the asset.

    • assetRevision (string) –

      The revision that is to be made to the asset.

    • domainId (string) –

      The ID of the Amazon DataZone domain.

Exceptions

  • DataZone.Client.exceptions.InternalServerException

  • DataZone.Client.exceptions.ResourceNotFoundException

  • DataZone.Client.exceptions.AccessDeniedException

  • DataZone.Client.exceptions.ThrottlingException

  • DataZone.Client.exceptions.ConflictException

  • DataZone.Client.exceptions.ValidationException

  • DataZone.Client.exceptions.UnauthorizedException