英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论