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
34
# File 'gems/aws-sdk-core/lib/aws-sdk-core/log/param_filter.rb', line 27

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