put_event_type
async
¶
put_event_type(
name: identifier,
event_variables: NonEmptyListOfStrings,
entity_types: NonEmptyListOfStrings,
*,
config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
description: Optional[description] = None,
labels: Optional[ListOfStrings] = None,
event_ingestion: Optional[EventIngestion] = None,
tags: Optional[tagList] = None,
event_orchestration: Optional[EventOrchestration] = None,
) -> PutEventTypeResult
Creates or updates an event type. An event is a business activity that is evaluated for fraud risk. With Amazon Fraud Detector, you generate fraud predictions for events. An event type defines the structure for an event sent to Amazon Fraud Detector. This includes the variables sent as part of the event, the entity performing the event (such as a customer), and the labels that classify the event. Example event types include online payment transactions, account registrations, and authentications.
Parameters:
-
name(identifier) –The name.
-
description(Optional[description], default:None) –The description of the event type.
-
event_variables(NonEmptyListOfStrings) –The event type variables.
-
labels(Optional[ListOfStrings], default:None) –The event type labels.
-
entity_types(NonEmptyListOfStrings) –The entity type for the event type. Example entity types: customer, merchant, account.
-
event_ingestion(Optional[EventIngestion], default:None) –Specifies if ingestion is enabled or disabled.
-
tags(Optional[tagList], default:None) –A collection of key and value pairs.
-
event_orchestration(Optional[EventOrchestration], default:None) –Enables or disables event orchestration. If enabled, you can send event predictions to select AWS services for downstream processing of the events.
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
4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 | |