Create a REST API that has CloudWatch execution and access logs enabled.
A REST API is created that has an IAM role with managed policy 'AmazonAPIGatewayPushToCloudWatchLogs' which allows API Gateway to write CloudWatch logs to your account.
In the API stage, CloudWatch execution logs are enabled with INFO Log level selected as well as custom access logging to generate execution and access logs for all requests.
The API has a AWS Lambda function integration which returns 'Hello from Lambda' in response.