code: func (c *CloudWatch) SetAlarmState(input *SetAlarmStateInput) (*SetAlarmStateOutput, error) {
  	req, out := c.SetAlarmStateRequest(input)
  	return out, req.Send()
  }
docs: // SetAlarmState API operation for Amazon CloudWatch.
  //
  // Temporarily sets the state of an alarm for testing purposes. When the updated
  // state differs from the previous value, the action configured for the appropriate
  // state is invoked. For example, if your alarm is configured to send an Amazon
  // SNS message when an alarm is triggered, temporarily changing the alarm state
  // to ALARM sends an SNS message. The alarm returns to its actual state (often
  // within seconds). Because the alarm state change happens quickly, it is typically
  // only visible in the alarm's History tab in the Amazon CloudWatch console
  // or through DescribeAlarmHistory.
  //
  // 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 SetAlarmState for usage and error information.
  //
  // Returned Error Codes:
  //   * ErrCodeResourceNotFound "ResourceNotFound"
  //   The named resource does not exist.
  //
  //   * ErrCodeInvalidFormatFault "InvalidFormat"
  //   Data was not syntactically valid JSON.
  //
  // See also, https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState