如何使用Boto3修改API网关集成请求

2024-09-30 16:26:53 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经使用boto3导入命令从现有的api创建了一个api网关。在

apiClient = boto3.client('apigateway', awsregion)
api_response=apiClient.import_rest_api
(
   failOnWarnings=True,
   body=open('apifileswagger.json', 'rb').read()
)

但我不能修改集成请求。我试着遵循Boto3命令。在

^{pr2}$

但我犯了这样的错误

Unexpected error: An error occurred () when calling the PutIntegration operation: 

我需要使用Boto3命令更改lambda函数区域和名称。有可能吗。在

如果可能的话,这个命令的实际问题是什么?在


Tags: import命令clientrestapitrue网关response