Generates custom metrics for all custom domains in a given region
This pattern creates a Lambda function that scans the custom domain names and their API mappings in a region. The function then creates a custom metrics namespace in CloudWatch metrics for 200, 4xx and 5xx errors. The metric data points get populated for the requests that comes in to the APIs/CDN post creation of the custom namespace.