You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Log::ParamFilter

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

Constant Summary

SENSITIVE =

A managed list of sensitive parameters that should be filtered from logs. This is updated automatically as part of each release. See the tasks/sensitive.rake for more information.

DO NOT EDIT THE FOLLOWING LINE OF CODE

[:access_token, :admin_contact, :artifact_credentials, :auth_code, :base_32_string_seed, :client_id, :client_secret, :copy_source_sse_customer_key, :id_token, :local_console_password, :new_password, :old_password, :password, :plaintext, :previous_password, :private_key, :proposed_password, :public_key, :qr_code_png, :refresh_token, :registrant_contact, :secret_access_key, :secret_hash, :shared_secret, :sse_customer_key, :ssekms_key_id, :tech_contact, :trust_password, :upload_credentials, :username, :value]

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ParamFilter

Returns a new instance of ParamFilter



16
17
18
# File 'aws-sdk-core/lib/aws-sdk-core/log/param_filter.rb', line 16

def initialize(options = {})
  @filters = Set.new(SENSITIVE + Array(options[:filter]))
end

Instance Method Details

#filter(value) ⇒ Object



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

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