

自 2025 年 11 月 7 日起，Amazon Fraud Detector 不再向新客戶開放。對於類似 Amazon Fraud Detector 的功能，請探索 Amazon SageMaker、AutoGluon 和 AWS WAF。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 更新標籤
<a name="update-label"></a>

如果您的事件資料集存放在 Amazon Fraud Detector 中，您可能需要新增或更新儲存事件的標籤，例如當您執行事件的離線詐騙調查，並想要關閉機器學習回饋迴圈時。

 您可以使用 [update-event-label](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/frauddetector/update-event-label.html) 命令、UpdateEventLabel API 或使用 來新增或更新預存事件的標籤 [UpdateEventLabel](https://docs.aws.amazon.com/frauddetector/latest/api/API_UpdateEventLabel.html) 適用於 Python (Boto3) 的 AWS SDK 

下列 適用於 Python (Boto3) 的 AWS SDK 範例程式碼會新增使用 `UpdateEventLabel` API 與事件類型*註冊*相關聯的標籤*詐騙*。

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

fraudDetector.update_event_label(
            eventId        = '802454d3-f7d8-482d-97e8-c4b6db9a0428',
            eventTypeName  = 'registration',
            assignedLabel  = 'fraud',
            labelTimestamp = '2020-07-13T23:18:21Z'
)
```