AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::Log::ParamFilter

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-core/lib/aws-sdk-core/log/param_filter.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ParamFilter

end



22
23
24
25
# File 'gems/aws-sdk-core/lib/aws-sdk-core/log/param_filter.rb', line 22

def initialize(options = {})
  @enabled = options[:filter_sensitive_params] != false
  @additional_filters = options[:filter] || []
end

Instance Method Details

#filter(values, type) ⇒ Object



27
28
29
30
31
32
33
# File 'gems/aws-sdk-core/lib/aws-sdk-core/log/param_filter.rb', line 27

def filter(values, type)
  case values
  when Struct, Hash then filter_hash(values, type)
  when Array then filter_array(values, type)
  else values
  end
end