def api_gw_lambda_integrate_deploy(api_client, api: dict, api_resource: dict, lambda_func: dict, http_method: str='GET') -> str:
    '\n    Integrate lambda with api gw method and deploy api.\n    Return the invokation URL\n    '
    lambda_integration_arn = f"arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/{lambda_func['FunctionArn']}/invocations"
    api_client.put_integration(restApiId=api['id'], resourceId=api_resource['id'], httpMethod=http_method, type='AWS', integrationHttpMethod='POST', uri=lambda_integration_arn)
    api_client.create_deployment(restApiId=api['id'], stageName='dev')
    return f"http://localhost:4566/restapis/{api['id']}/dev/_user_request_{api_resource['path']}"
Integrate lambda with api gw method and deploy api.
Return the invokation URL
def api_gw_lambda_integrate_deploy(api_client, api: dict, api_resource: dict, lambda_func: dict, http_method: str='GET') -> str:
    '\n    Integrate lambda with api gw method and deploy api.\n    Return the invokation URL\n    '
    lambda_integration_arn = f"arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/{lambda_func['FunctionArn']}/invocations"
    api_client.put_integration(restApiId=api['id'], resourceId=api_resource['id'], httpMethod=http_method, type='AWS', integrationHttpMethod='POST', uri=lambda_integration_arn)
    api_client.create_deployment(restApiId=api['id'], stageName='dev')
    return f"http://localhost:4566/restapis/{api['id']}/dev/_user_request_{api_resource['path']}"