live_events_settings.mustache 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <%
  2. # Copyright (C) 2015 - present Instructure, Inc.
  3. #
  4. # This file is part of Canvas.
  5. #
  6. # Canvas is free software: you can redistribute it and/or modify it under
  7. # the terms of the GNU Affero General Public License as published by the Free
  8. # Software Foundation, version 3 of the License.
  9. #
  10. # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
  11. # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
  13. # details.
  14. #
  15. # You should have received a copy of the GNU Affero General Public License along
  16. # with this program. If not, see <http://www.gnu.org/licenses/>.
  17. %>
  18. <%= fields_for :settings, OpenObject.new(settings) do |f| %>
  19. <table style="width: 500px;" class="formtable">
  20. <tr>
  21. <td colspan="2">
  22. <p><%= t(:description, <<-TEXT)
  23. Pushes events to a Kinesis stream.
  24. TEXT
  25. %></p>
  26. </td>
  27. </tr>
  28. <tr>
  29. <td><%= f.blabel :use_consul, :en => "Configure using Consul instead of this page" %></td>
  30. <td>
  31. <%= f.check_box :use_consul %>
  32. </td>
  33. </tr>
  34. <tr>
  35. <td><%= f.blabel :kinesis_stream_name, :en => "Kinesis Stream Name" %></td>
  36. <td>
  37. <%= f.text_field :kinesis_stream_name %>
  38. </td>
  39. </tr>
  40. <tr>
  41. <td colspan="2">
  42. <p><%= t(:endpoint_region_requirement, <<-TEXT)
  43. Either the AWS Region or Endpoint are required. The endpoint is typically only
  44. used for development.
  45. TEXT
  46. %></p>
  47. </td>
  48. </tr>
  49. <tr>
  50. <td><%= f.blabel :aws_region, :en => "AWS Region" %></td>
  51. <td>
  52. <%= f.text_field :aws_region %>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td><%= f.blabel :aws_endpoint, :en => "AWS Endpoint (url)" %></td>
  57. <td>
  58. <%= f.text_field :aws_endpoint %>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td><%= f.blabel :aws_access_key_id, :en => "AWS Access Key ID" %></td>
  63. <td>
  64. <%= f.text_field :aws_access_key_id %>
  65. </td>
  66. </tr>
  67. <tr>
  68. <td><%= f.blabel :aws_secret_access_key, :en => "AWS Secret Access Key" %></td>
  69. <td>
  70. <%= f.password_field :aws_secret_access_key %>
  71. </td>
  72. </tr>
  73. </table>
  74. <% end %>