【发布时间】:2017-03-08 10:22:14
【问题描述】:
我正在尝试做一些我认为非常简单的事情。
我想简单地重命名通过 AWS CLI 脚本工具(使用 powershell)在我的 API Gateway 上创建的模型。
我查看了很多文档,包括 this aws document,我可以用它们对模型做几乎任何事情,除了重命名它。
我希望它是这样的:
aws apigateway update-model --rest-api-id RESTID --model-name 'ModelName' --
patch-operations op=replace,path=/name,value='NewModelName' --region
AWSREGION
这与如何更新模型描述几乎相同:
aws apigateway update-model --rest-api-id RESTID --model-name 'MDescription'
--patch-operations op=replace,path=/description,value='NewDescription'
--region ap-southeast-2
我们不能重命名这些模型是否有特殊原因,或者我错过了什么?
【问题讨论】:
标签: powershell amazon-web-services aws-api-gateway aws-cli