

Amazon Fraud Detector is no longer open to new customers as of November 7, 2025. For capabilities similar to Amazon Fraud Detector, explore Amazon SageMaker, AutoGluon, and AWS WAF.

# Entity


An entity represents a person or thing that's performing the event. An entity type classifies the entity. Example classifications include customer, merchant, user, or account. You provide the entity type (ENTITY\$1TYPE) and an entity identifier (ENTITY\$1ID) as part of your event dataset to indicate the specific entity that performed the event.

Amazon Fraud Detector uses the entity type when generating fraud prediction for an event to indicate who performed the event. The entity type you want to use in your fraud predictions must first be created in Amazon Fraud Detector and then added to the event when creating your event type.

# Create an entity type


You can create an entity type in the Amazon Fraud Detector console, using the [put-entity-type](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/frauddetector/put-entity-type.html) command, using the [PutEntityType](https://docs.aws.amazon.com/frauddetector/latest/api/API_PutEntityType.html) API, or using the AWS SDK for Python (Boto3). The examples below creates an entity type `customer` in the Amazon Fraud Detector console and using the SDK for Python (Boto3). If you are creating an entity type to associate with an event type for training a fraud detection model, use the entity type from your event dataset that is appropriate for your use case. 

## Create an entity type using the Amazon Fraud Detector console


**To create an entity type,**

1. Open the [AWS Management Console](https://console.aws.amazon.com) and sign in to your account. 

1. Navigate to Amazon Fraud Detector, choose **Entities** in the left navigation, then choose **Create**.

1. In the **Create entity** page, enter **customer** as the entity type name. Optionally, enter a description of the entity.

1. Choose **Create entity**.

## Create an entity type using the AWS SDK for Python (Boto3)


The following AWS SDK for Python (Boto3) code example uses the `PutEntityType` API to create an entity type `customer`. If you are creating an entity type to associate with an event type for training a fraud detection model, use the entity from your event dataset that is appropriate for your use case. 

```
import boto3
fraudDetector = boto3.client('frauddetector')

fraudDetector.put_entity_type(
name = 'customer',
description = 'customer'
)
```

# Delete an entity type


In Amazon Fraud Detector, you cannot delete an entity type that is included in an event type. You will have to first delete the event type the entity is associated with and then delete the entity type.

When you delete an entity type, Amazon Fraud Detector permanently deletes that entity type and the data is no longer stored in Amazon Fraud Detector.

An entity type can be deleted in Amazon Fraud Detector console, using the [delete-entity-type](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/frauddetector/delete-entity-type.html) command, using the [DeleteEntityType](https://docs.aws.amazon.com/frauddetector/latest/api/API_DeleteEntityType.html) API, or using the AWS SDK for Python (Boto3)

## Delete an entity type in Amazon Fraud Detector console


**To delete an entity type,**

1. Sign in to the AWS Management Console and open the Amazon Fraud Detector console at [https://console.aws.amazon.com/frauddetector](https://console.aws.amazon.com/frauddetector).

1. In the left navigation pane of the Amazon Fraud Detector console, choose **Resources**, then choose **Entities**.

1. Choose the entity type that you want to delete.

1. Choose **Actions**, and then choose **Delete**.

1. Enter the entity type name, and then choose **Delete entity type**.

## Delete entity type using the AWS SDK for Python (Boto3)


The following AWS SDK for Python (Boto3) example code deletes the entity type *customer* using the [DeleteEntityType](https://docs.aws.amazon.com/frauddetector/latest/api/API_DeleteEntityType.html) API.

```
import boto3
fraudDetector = boto3.client('frauddetector')

fraudDetector.delete_entity_type (

name = 'customer'

)
```