Sha256: b2bc429c5c42262ede7c90e47a5edca3b5c6601361628852bf462ca92eae33e9
Contents?: true
Size: 628 Bytes
Versions: 15
Compression:
Stored size: 628 Bytes
Contents
<% module_namespacing do -%> class <%= class_name %>Job < ApplicationJob rule_event( description: "Checks for security group changes", detail_type: ["AWS API Call via CloudTrail"], detail: { event_source: ["ec2.amazonaws.com"], event_name: [ "AuthorizeSecurityGroupIngress", "AuthorizeSecurityGroupEgress", "RevokeSecurityGroupIngress", "RevokeSecurityGroupEgress", "CreateSecurityGroup", "DeleteSecurityGroup" ] } ) def <%= options[:name] %> puts "event: #{JSON.dump(event)}" # event is available # your logic end end <% end -%>
Version data entries
15 entries across 15 versions & 1 rubygems