code: func (c *CloudWatch) GetMetricWidgetImage(input *GetMetricWidgetImageInput) (*GetMetricWidgetImageOutput, error) {
  	req, out := c.GetMetricWidgetImageRequest(input)
  	return out, req.Send()
  }
docs: // GetMetricWidgetImage API operation for Amazon CloudWatch.
  //
  // You can use the GetMetricWidgetImage API to retrieve a snapshot graph of
  // one or more Amazon CloudWatch metrics as a bitmap image. You can then embed
  // this image into your services and products, such as wiki pages, reports,
  // and documents. You could also retrieve images regularly, such as every minute,
  // and create your own custom live dashboard.
  //
  // The graph you retrieve can include all CloudWatch metric graph features,
  // including metric math and horizontal and vertical annotations.
  //
  // There is a limit of 20 transactions per second for this API. Each GetMetricWidgetImage
  // action has the following limits:
  //
  //    * As many as 100 metrics in the graph.
  //
  //    * Up to 100 KB uncompressed payload.
  //
  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  // with awserr.Error's Code and Message methods to get detailed information about
  // the error.
  //
  // See the AWS API reference guide for Amazon CloudWatch's
  // API operation GetMetricWidgetImage for usage and error information.
  // See also, https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage