问题标签 [amazon-fraud-detector]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
122 浏览

node.js - 如何从 JavaScript 调用 Amazon Fraud Detector?

我收到“getEventPrediction”不是函数的错误。我正在关注 AWS 文档,但不知道为什么。

这是我遵循的文档: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/FraudDetector.html

这是我在运行 Lambda 测试事件时遇到的错误:

2020-10-09T21:01:54.151Z a5c86d6f-9347-49ec-9fe9-4124cd976953 错误调用错误 {"errorType":"TypeError","errorMessage":"frauddetector.getEventPrediction 不是函数","stack":[ “TypeError:欺诈检测器.getEventPrediction 不是函数”,“在 Runtime.exports.handler (/var/task/index.js:18:18)”,“在 Runtime.handleOnce (/var/runtime/Runtime.js: 66:25)"]}

这是 Lambda 函数:

0 投票
0 回答
9 浏览

amazon-web-services - 使用 KMS 的 AmazonFraudDetector 数据加密

我正在探索 AmazonFraudDetector 并且对他们的文档感到困惑,也许是因为我是 AWS 新手,可能缺少一些知识。我需要强制执行数据加密(我向 AmazonFraudDetector 发出的预测请求)。在此处浏览文档:https ://docs.aws.amazon.com/frauddetector/latest/ug/key-management.html

看起来有可能,但客户需要调用 AmazonFraudDetector 的“PutKMSEncryptionKey”API,我在这里感到困惑:

  1. 客户是否需要在每个预测请求中调用 PutKMSEncryptionKey?如果是,为什么不允许它作为预测请求中的可选参数。
  2. 对于给定的“检测器”,客户端是否需要在生命周期中仅调用一次此 API -> 我认为是这种情况。如果是,为什么在创建欺诈检测器客户端时不允许将其作为选项参数。无论如何,密钥未附加到任何检测器,不确定客户端是否可以跨检测器在单个区域中使用多个密钥。