put_detector
async
¶
put_detector(
detector_id: identifier,
event_type_name: identifier,
*,
config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
description: Optional[description] = None,
tags: Optional[tagList] = None,
) -> PutDetectorResult
Creates or updates a detector.
Parameters:
-
detector_id(identifier) –The detector ID.
-
description(Optional[description], default:None) –The description of the detector.
-
event_type_name(identifier) –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. -
ConflictException–An exception indicating there was a conflict during a delete operation.
-
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.
Source code in docs_src/capo_frauddetector/_services/async_fraud_detector.py
3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 | |