如何使用AccessKey和SecretKey对AWS中的API网关进行身份验证

2024-06-16 08:59:17 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个API网关,我使用awsauth(见下文)Python包传递aws4auth参数,比如AWS4Auth(AK, SK, region, service=execute-api)。你知道吗

但是,我找不到与围棋类似的包裹。Go中有AWS-SDK吗?你知道吗

我想在Go中执行的Python代码示例:

from requests_aws4auth import AWS4Auth
awsauth = AWS4Auth(AK, SK, region, service=execute-api)
requests.post(host,auth=awsauth,json=document,headers=headers)

Tags: apigo网关executeservicerequestsregionheaders