create_model_version
¶
create_model_version(
model_id: modelIdentifier,
model_type: ModelTypeEnum,
training_data_source: TrainingDataSourceEnum,
training_data_schema: TrainingDataSchema,
*,
config_overrides: Optional[FraudDetectorClientConfig] = None,
external_events_detail: Optional[ExternalEventsDetail] = None,
ingested_events_detail: Optional[IngestedEventsDetail] = None,
tags: Optional[tagList] = None,
) -> CreateModelVersionResult
Creates a version of the model using the specified model type and model id.
Parameters:
-
model_id(modelIdentifier) –The model ID.
-
model_type(ModelTypeEnum) –The model type.
-
training_data_source(TrainingDataSourceEnum) –The training data source location in Amazon S3.
-
training_data_schema(TrainingDataSchema) –The training data schema.
-
external_events_detail(Optional[ExternalEventsDetail], default:None) –Details of the external events data used for model version training. Required if
trainingDataSourceisEXTERNAL_EVENTS. -
ingested_events_detail(Optional[IngestedEventsDetail], default:None) –Details of the ingested events data used for model version training. Required if
trainingDataSourceisINGESTED_EVENTS. -
tags(Optional[tagList], default:None) –A collection of key and value pairs.
Raises:
-
AccessDeniedException–An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as
PutExternalModel, that specifies a role that is not in your account. -
InternalServerException–An exception indicating an internal server error.
-
ResourceNotFoundException–An exception indicating the specified resource was not found.
-
ThrottlingException–An exception indicating a throttling error.
-
ValidationException–An exception indicating a specified value is not allowed.
-
UnknownServiceError–The service returned an error code this client does not model.