这个 api 网关 ARN 有什么问题?

What is wrong with this api gateway 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

你能帮我找出问题吗?

并非所有资源类型都支持标记。有关允许的资源列表,请参阅 https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-tagging-supported-resources.html

如果您打算将 api 作为一个整体进行标记,则 arn 结构为 arn:<partition>:apigateway:<region>::/restapis/<api-id>。有关完整列表,请参阅 https://docs.aws.amazon.com/apigateway/latest/developerguide/arn-format-reference.html