Jump to Content

Class PutEventTypeCommandProtected

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.

Example

Use a bare-bones client and the command you need to make an API call.

import { FraudDetectorClient, PutEventTypeCommand } from "@aws-sdk/client-frauddetector"; // ES Modules import
// const { FraudDetectorClient, PutEventTypeCommand } = require("@aws-sdk/client-frauddetector"); // CommonJS import
const client = new FraudDetectorClient(config);
const command = new PutEventTypeCommand(input);
const response = await client.send(command);

Param

PutEventTypeCommandInput

Returns

PutEventTypeCommandOutput

See

Throws

AccessDeniedException (client fault)

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.

Throws

ConflictException (client fault)

An exception indicating there was a conflict during a delete operation.

Throws

InternalServerException (server fault)

An exception indicating an internal server error.

Throws

ThrottlingException (client fault)

An exception indicating a throttling error.

Throws

ValidationException (client fault)

An exception indicating a specified value is not allowed.

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<PutEventTypeCommandInput, PutEventTypeCommandOutput>

Methods