建立結果 - Amazon Fraud Detector

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

建立結果

您可以在 Amazon Fraud Detector 主控台、使用 put-outcome 命令、使用 PutOutcome API 或使用 建立結果 AWS SDK for Python (Boto3)。

使用 Amazon Fraud Detector 主控台建立結果

若要建立一或多個結果,
  1. 開啟 AWS 管理主控台並登入您的帳戶。導覽至 Amazon Fraud Detector。

  2. 在左側導覽窗格中,選擇結果

  3. 結果頁面中,選擇建立

  4. 在您的新結果頁面中,輸入下列內容:

    1. 結果名稱中,輸入結果的名稱。

    2. 結果描述中,選擇性地輸入描述。

  5. 選擇儲存結果

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

使用 建立結果 AWS SDK for Python (Boto3)

下列範例使用 PutOutcome API 來建立三個結果。它們是 verify_customerreviewapprove。建立結果之後,您可以將結果指派給規則。

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