Class: Aws::Rails::Middleware::ElasticBeanstalkSQSD::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/rails/middleware/elastic_beanstalk_sqsd/configuration.rb

Overview

Configuration for the Aws::Rails::Middleware::ElasticBeanstalkSQSD middleware.

Use config to access the singleton config instance and configure to configure in code:

Aws::Rails::Middleware::ElasticBeanstalkSQSD.configure do |config|
  config.job_class_allowlist = [SendReceiptJob, ProcessOrderJob]
end

Instance Attribute Summary collapse

Instance Attribute Details

#job_class_allowlistArray<Class, String>?

Returns Optional list of job classes permitted to be executed. When set, only classes in this list will be dispatched. When nil, any class inheriting from ActiveJob::Base is allowed. Entries may be given as Class objects or Strings; matching is by class name, so an allowlisted class is still recognized after a Zeitwerk reload replaces the class object.

Returns:

  • (Array<Class, String>, nil)

    Optional list of job classes permitted to be executed. When set, only classes in this list will be dispatched. When nil, any class inheriting from ActiveJob::Base is allowed. Entries may be given as Class objects or Strings; matching is by class name, so an allowlisted class is still recognized after a Zeitwerk reload replaces the class object.



23
24
25
# File 'lib/aws/rails/middleware/elastic_beanstalk_sqsd/configuration.rb', line 23

def job_class_allowlist
  @job_class_allowlist
end