create_model
async
¶
create_model(
model_id: modelIdentifier,
model_type: ModelTypeEnum,
event_type_name: string,
*,
config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
description: Optional[description] = None,
tags: Optional[tagList] = None,
) -> CreateModelResult
Creates a model using the specified model type.
Parameters:
-
model_id(modelIdentifier) –The model ID.
-
model_type(ModelTypeEnum) –The model type.
-
description(Optional[description], default:None) –The model description.
-
event_type_name(string) –The name of the event type.
-
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.
-
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.