当我尝试使用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.