

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

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

# 在 Amazon Fraud Detector 中啟用事件協同運作
<a name="enable-event-orchestration"></a>

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

## 在 Amazon Fraud Detector 主控台中啟用事件協同運作
<a name="enable-event-orchestration-console"></a>

此範例會針對已建立的事件類型啟用事件協同運作。如果您要建立新的事件類型並想要啟用協同運作，請遵循 的指示[建立事件類型](create-event-type.md)。

**啟用事件協同運作**

1. 開啟 [AWS 管理主控台](https://console.aws.amazon.com/)並登入您的帳戶。導覽至 Amazon Fraud Detector。

1. 在左側導覽窗格中，選擇**事件**。

1. 在**事件類型**頁面中，選擇您的事件類型。

1. 開啟**使用 Amazon EventBridge 啟用事件協同運作**。

1. 繼續執行 的步驟 3 說明[設定事件協同運作](setting-up-event-orchestration.md)。

## 使用 啟用事件協同運作 適用於 Python (Boto3) 的 AWS SDK
<a name="enable-event-orchestration-using-the-aws-python-sdk"></a>

下列範例顯示更新事件類型`sample_registration`以啟用事件協同運作的範例請求。此範例使用 `PutEventType` API，並假設您已建立變數 `ip_address`和 `email_address`、標籤 `legit`和 `fraud`，以及實體類型 `sample_customer`。如需如何建立這些資源的資訊，請參閱 [資源](https://docs.aws.amazon.com//frauddetector/latest/ug/create-resources.html)。

```
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'])
```