Class: Aws::Log::ParamFilter

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

Constant Summary collapse

SENSITIVE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

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.

begin

[:access_token, :account_name, :account_password, :admin_contact, :artifact_credentials, :auth_code, :authentication_token, :base_32_string_seed, :bot_configuration, :client_id, :client_secret, :copy_source_sse_customer_key, :credentials, :db_password, :description, :email, :email_address, :id, :id_token, :input, :input_text, :local_console_password, :master_account_email, :message, :name, :new_password, :notes, :old_password, :owner_information, :parameters, :password, :payload, :plaintext, :previous_password, :private_key, :proposed_password, :public_key, :qr_code_png, :query, :refresh_token, :registrant_contact, :request_attributes, :secret_access_key, :secret_hash, :service_password, :session_attributes, :shared_secret, :slots, :sse_customer_key, :ssekms_key_id, :status_message, :task_parameters, :tech_contact, :temporary_password, :text, :trust_password, :upload_credentials, :upload_url, :username, :value, :values, :variables, :zip_file]

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ParamFilter

end



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

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

Instance Method Details

#filter(value) ⇒ Object



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

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