create_model_version
async
¶
create_model_version(
model_id: modelIdentifier,
model_type: ModelTypeEnum,
training_data_source: TrainingDataSourceEnum,
training_data_schema: TrainingDataSchema,
*,
config_overrides: Optional[AsyncFraudDetectorClientConfig] = 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.
Source code in docs_src/capo_frauddetector/_services/async_fraud_detector.py
924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 | |