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, :address, :admin_contact, :artifact_credentials, :auth_code, :authentication_token, :authorization_result, :backup_plan_tags, :backup_vault_tags, :base_32_string_seed, :body, :bot_configuration, :cause, :client_id, :client_secret, :configuration, :copy_source_sse_customer_key, :credentials, :custom_attributes, :db_password, :definition, :description, :display_name, :email, :email_address, :email_message, :embed_url, :error, :feedback_token, :file, :first_name, :id, :id_token, :input, :input_text, :key_id, :key_store_password, :kms_key_id, :kms_master_key_id, :last_name, :local_console_password, :master_account_email, :master_user_password, :message, :name, :new_password, :notes, :old_password, :output, :owner_information, :parameters, :passphrase, :password, :payload, :phone_number, :plaintext, :previous_password, :primary_email, :private_key, :proposed_password, :public_key, :qr_code_png, :query, :recovery_point_tags, :refresh_token, :registrant_contact, :request_attributes, :search_query, :secret_access_key, :secret_binary, :secret_code, :secret_hash, :secret_string, :service_password, :session_attributes, :share_notes, :shared_secret, :slots, :sse_customer_key, :ssekms_key_id, :status_message, :tag_key_list, :tags, :task_parameters, :tech_contact, :temporary_password, :text, :token, :trust_password, :upload_credentials, :upload_url, :user_email, :user_name, :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