當我嘗試使用 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
你能幫我找出問題嗎?
uj5u.com熱心網友回復:
并非所有資源型別都支持標記。有關允許的資源串列,請參閱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。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/430952.html
標籤:亚马逊网络服务 aws-api-网关 博托3
下一篇:“errorMessage”:“無法匯入模塊'app':沒有名為'requests'的模塊”,“errorType”:“Runtime.ImportModule
