I have created an api gateway from my existing api using boto3 import command.

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

```

But i cant modify integration request. I tried with following Boto3 command.

```
 apiClient = boto3.client('apigateway', awsregion)
 api_response=apiClient.put_integration
 (
   restApiId=apiName,
   resourceId='/api/v1/hub',
   httpMethod='GET',
   integrationHttpMethod='GET',
   type='AWS',
   uri='arn:aws:lambda:us-east-1:141697213513:function:test-lambda',
  )

```

But I got error like this

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

```

I need to change lambda function region & name using Boto3 command. is it possible? . 

if it is possible what is the actual issue with this command?