[英]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 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.