

截至 2025 年 11 月 7 日，亚马逊 Fraud Detector 不再向新客户开放。要获得与 Amazon Fraud Detector 类似的功能 SageMaker，请浏览亚马逊 AutoGluon、和 AWS WAF。

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 在 Amazon Fraud Detector 中启用事件编排
<a name="enable-event-orchestration"></a>

您可以在创建事件类型时或在创建事件类型之后为事件启用事件编排。可以在 Amazon Fraud Detector 控制台中启用事件编排，使用`put-event-type`命令、`PutEventType` API 或使用。 适用于 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/)，登录您的账户。导航到亚马逊 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``legit`和`email_address``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'])
```