Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

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 input = { // PutEventTypeRequest
name: "STRING_VALUE", // required
description: "STRING_VALUE",
eventVariables: [ // NonEmptyListOfStrings // required
"STRING_VALUE",
],
labels: [ // ListOfStrings
"STRING_VALUE",
],
entityTypes: [ // required
"STRING_VALUE",
],
eventIngestion: "ENABLED" || "DISABLED",
tags: [ // tagList
{ // Tag
key: "STRING_VALUE", // required
value: "STRING_VALUE", // required
},
],
eventOrchestration: { // EventOrchestration
eventBridgeEnabled: true || false, // required
},
};
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.

Throws

FraudDetectorServiceException

Base exception class for all service exceptions from FraudDetector service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods