code: func isAwsError(err error, code string) bool {
  	if err, ok := err.(awserr.Error); ok && err.Code() == code {
  		return true
  	}
  	return false
  }
docs: // isAwsError tests whether an error object is an instance of the AWS error
  // specified by its code.