

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

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

# 建立結果
<a name="create-an-outcome"></a>

您可以在 Amazon Fraud Detector 主控台、使用 [put-outcome](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/frauddetector/put-outcome.html) 命令、使用 [PutOutcome](https://docs.aws.amazon.com/frauddetector/latest/api/API_PutOutcome.html) API 或使用 建立結果 適用於 Python (Boto3) 的 AWS SDK。

## 使用 Amazon Fraud Detector 主控台建立結果
<a name="create-an-outcome-console"></a>

**若要建立一或多個結果，**

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

1. 在左側導覽窗格中，選擇**結果**。

1. 在**結果**頁面中，選擇**建立**。

1. 在您的**新結果**頁面中，輸入下列內容：

   1. 在**結果名稱**中，輸入結果的名稱。

   1. 在**結果描述**中，選擇性地輸入描述。

1. 選擇**儲存結果**。

1. 重複步驟 2 到 5 來建立其他結果。

## 使用 建立結果 適用於 Python (Boto3) 的 AWS SDK
<a name="create-an-outcome-using-the-aws-python-sdk"></a>

下列範例使用 `PutOutcome` API 來建立三個結果。它們是 `verify_customer`、 `review`和 `approve`。建立結果之後，您可以將結果指派給規則。

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

fraudDetector.put_outcome(
name = 'verify_customer',
description = 'this outcome initiates a verification workflow'
)

fraudDetector.put_outcome(
name = 'review',
description = 'this outcome sidelines event for review'
)

fraudDetector.put_outcome(
name = 'approve',
description = 'this outcome approves the event'
)
```