Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Create label

Focus mode
Create label - Amazon Fraud Detector

You can create labels in the Amazon Fraud Detector console, using the put-label command, using the PutLabel API, or using the AWS SDK for Python (Boto3).

Create a label using the Amazon Fraud Detector console

To create labels,
  1. Open the AWS Management Console and sign in to your account.

  2. Navigate to Amazon Fraud Detector, choose Labels in the left navigation, then choose Create.

  3. In the Create label page, enter your label name for fraudulent event as the label name. The label name must correspond to the label that represents fraudulent activity in your training dataset. Optionally, enter a description of the label.

  4. Choose Create label.

  5. Create a second label and enter a label name for legitimate event. Make sure the label name corresponds to the value that represents the legitimate activity in your training dataset.

Create a label using the AWS SDK for Python (Boto3)

The following AWS SDK for Python (Boto3) example code creates two labels (fraud, legit) using the PutLabel API. After creating the labels, you can add them to an event type to classify specific events.

import boto3 fraudDetector = boto3.client('frauddetector') fraudDetector.put_label( name = 'fraud', description = 'label for fraud events' ) fraudDetector.put_label( name = 'legit', description = 'label for legitimate events' )
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.