FraudDetector.Client.
update_model_version
(**kwargs)¶Updates a model version. Updating a model version retrains an existing model version using updated training data and produces a new minor version of the model. You can update the training data set location and data access role attributes using this action. This action creates and trains a new minor version of the model, for example version 1.01, 1.02, 1.03.
See also: AWS API Documentation
Request Syntax
response = client.update_model_version(
modelId='string',
modelType='ONLINE_FRAUD_INSIGHTS'|'TRANSACTION_FRAUD_INSIGHTS'|'ACCOUNT_TAKEOVER_INSIGHTS',
majorVersionNumber='string',
externalEventsDetail={
'dataLocation': 'string',
'dataAccessRoleArn': 'string'
},
ingestedEventsDetail={
'ingestedEventsTimeWindow': {
'startTime': 'string',
'endTime': 'string'
}
},
tags=[
{
'key': 'string',
'value': 'string'
},
]
)
[REQUIRED]
The model ID.
[REQUIRED]
The model type.
[REQUIRED]
The major version number.
The details of the external events data used for training the model version. Required if trainingDataSource
is EXTERNAL_EVENTS
.
The Amazon S3 bucket location for the data.
The ARN of the role that provides Amazon Fraud Detector access to the data location.
The details of the ingested event used for training the model version. Required if your trainingDataSource
is INGESTED_EVENTS
.
The start and stop time of the ingested events.
Timestamp of the first ingensted event.
Timestamp of the final ingested event.
A collection of key and value pairs.
A key and value pair.
A tag key.
A value assigned to a tag key.
dict
Response Syntax
{
'modelId': 'string',
'modelType': 'ONLINE_FRAUD_INSIGHTS'|'TRANSACTION_FRAUD_INSIGHTS'|'ACCOUNT_TAKEOVER_INSIGHTS',
'modelVersionNumber': 'string',
'status': 'string'
}
Response Structure
(dict) --
modelId (string) --
The model ID.
modelType (string) --
The model type.
modelVersionNumber (string) --
The model version number of the model version updated.
status (string) --
The status of the updated model version.
Exceptions
FraudDetector.Client.exceptions.ValidationException
FraudDetector.Client.exceptions.ResourceNotFoundException
FraudDetector.Client.exceptions.AccessDeniedException
FraudDetector.Client.exceptions.ThrottlingException
FraudDetector.Client.exceptions.InternalServerException
FraudDetector.Client.exceptions.ConflictException