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

Returns a copy with sensitive values replaced by "[FILTERED]".

Uses generated SENSITIVE lists to choose which members to redact. Nested request hashes also use the global list for backwards compatibility. A ShapeRef preserves model types while filtering nested request parameters. Structure classes are also accepted for Structure#to_s and older callers.

Parameters:



36
37
38
39
40
# File 'gems/aws-sdk-core/lib/aws-sdk-core/log/param_filter.rb', line 36

def filter(values, type)
  return filter_ref(values, type, root: true) if type.is_a?(Seahorse::Model::Shapes::ShapeRef)

  filter_by_class(values, type)
end