无法连接到 Node.js 中的事件桥

问题描述

我正在尝试连接到 AWS 事件桥以使用 putEvents 方法发送事件,但它说缺少授权类型和 Authparameters 丢失。在哪里可以找到事件桥的 auth 值?

代码如下:


const AWS = require("aws-sdk");
const eventBridge = new AWS.EventBridge();

//Calling the createConnection operation
var params = {
  Name: "testEventBus" /* required */,Description: "data bus",};
eventBridge.createConnection(params,function (err,data) {
  if (err) console.log(err,err.stack);
  // an error occurred
  else console.log(data); // successful response
});

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)