我可以使用HTTP客户端将事件发送到AWS EventBridge吗?

huangapple go评论46阅读模式
英文:

Can i send an event to AWS eventbridge just using a HTTP client?

问题

我需要使用 AWS SDK 或另一个 AWS 服务吗,如果我想触发 AWS EventBridge 中的事件?我更愿意只使用 HTTP 终端点来发送事件 JSON,但我不确定是否可能。

英文:

Do i need to use an AWS sdk or another AWS service if i want to trigger an event in AWS eventbridge? I would prefer to just use an http endpoint to send an event json but i'm not sure this is possible.

答案1

得分: 1

你需要使用你的AWS凭据对HTTP请求进行签名。关于签署请求的算法在这里有描述。在你自己的代码中执行此操作当然是可能的,但大多数人发现直接包含AWS SDK或调用AWS CLI工具来执行此操作更加简单。

英文:

You would have to sign the HTTP requests with your AWS credentials. The algorithm for signing the request is described here. It is certainly possible to do this in your own code, but most people find it much easier to simply include the AWS SDK, or call the AWS CLI tool, to perform this action.

huangapple
  • 本文由 发表于 2023年7月17日 20:55:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/76704690.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定