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=[ { 'predictionChoice': 123, 'predictionTarget': 'string' }, ], acceptRule={ 'rule': 'ALL'|'NONE', 'threshold': ... }, clientToken='string', domainIdentifier='string', identifier='string', revision='string' ) - Parameters:
- acceptChoices (list) – - (dict) – - Specifies the prediction (aka, the automatically generated piece of metadata) and the target (for example, a column name) that can be accepted. - predictionChoice (integer) – - Specifies the prediction (aka, the automatically generated piece of metadata) that can be accepted. 
- predictionTarget (string) – - 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] 
- revision (string) – 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'assetId': 'string', 'domainId': 'string', 'revision': 'string' } - Response Structure- (dict) – - assetId (string) – 
- domainId (string) – 
- revision (string) – 
 
 
 - 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