此 api 网关 ARN 有什么问题?
当我尝试使用 boto3 更新 api 网关端点上的标签值时,出现以下错误:
BadRequestException: An error occurred (BadRequestException) when calling the TagResource operation: Invalid ARN specified in the request
这是我传递给脚本的 ARN: arn:aws:execute-api:us-east-1:111111111111:5yojn7poz0/*/GET/test
您能帮我找出问题吗?
When I try to use boto3 to update a tag value on an api gateway endpoint, I get the following error:
BadRequestException: An error occurred (BadRequestException) when calling the TagResource operation: Invalid ARN specified in the request
Here is the ARN I am passing to the script:arn:aws:execute-api:us-east-1:111111111111:5yojn7poz0/*/GET/test
Can you help me spot the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
并非所有资源类型都支持标记。有关允许的资源列表,请参阅 https: //docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-tagging-supported-resources.html。
如果您打算将 api 作为一个整体进行标记,则 arn 结构为
arn::apigateway:::/restapis/
。有关完整列表,请参阅 https://docs.aws .amazon.com/apigateway/latest/developerguide/arn-format-reference.html。Not all resources types support tagging. For a list of allowed resources, see https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-tagging-supported-resources.html.
If you intended to tag the api as a whole, the arn structure is
arn:<partition>:apigateway:<region>::/restapis/<api-id>
. For a complete list see https://docs.aws.amazon.com/apigateway/latest/developerguide/arn-format-reference.html.