View a markdown version of this page

在 Amazon Fraud Detector 中啟用事件協同運作 - Amazon Fraud Detector

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

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

在 Amazon Fraud Detector 中啟用事件協同運作

您可以在建立事件類型時或建立事件類型之後,為事件啟用事件協調。您可以使用 put-event-type命令、 PutEventType API 或使用 ,在 Amazon Fraud Detector 主控台中啟用事件協同運作 適用於 Python (Boto3) 的 AWS SDK。

在 Amazon Fraud Detector 主控台中啟用事件協同運作

此範例會針對已建立的事件類型啟用事件協同運作。如果您要建立新的事件類型並想要啟用協同運作,請遵循 的指示建立事件類型

啟用事件協同運作
  1. 開啟 AWS 管理主控台並登入您的帳戶。導覽至 Amazon Fraud Detector。

  2. 在左側導覽窗格中,選擇事件

  3. 事件類型頁面中,選擇您的事件類型。

  4. 開啟使用 Amazon EventBridge 啟用事件協同運作

  5. 繼續執行 的步驟 3 說明設定事件協同運作

使用 啟用事件協同運作 適用於 Python (Boto3) 的 AWS SDK

下列範例顯示更新事件類型sample_registration以啟用事件協同運作的範例請求。此範例使用 PutEventType API,並假設您已建立變數 ip_addressemail_address、標籤 legitfraud,以及實體類型 sample_customer。如需如何建立這些資源的資訊,請參閱 資源

import boto3 fraudDetector = boto3.client('frauddetector') fraud_detector.put_event_type( name = 'sample_registration', eventVariables = ['ip_address', 'email_address'], eventOrchestration = {'eventBridgeEnabled': True}, labels = ['legit', 'fraud'], entityTypes = ['sample_customer'])