o .&au@s8ddlZddlmZddlmZmZGdddeZdS)N) BasicCommand) ConfigValueNOT_SETcsReZdZdZdZdZdZejffdd Z ddZ d d Z d d Z d dZ ZS)ConfigureListCommandlistaList the AWS CLI configuration data. This command will show you the current configuration data. For each configuration item, it will show you the value, where the configuration value was retrieved, and the configuration variable name. For example, if you provide the AWS region in an environment variable, this command will show you the name of the region you've configured, it will tell you that this value came from an environment variable, and it will tell you the name of the environment variable. z+aws configure list [--profile profile-name]aTo show your current configuration values:: $ aws configure list Name Value Type Location ---- ----- ---- -------- profile None None access_key ****************ABCD config_file ~/.aws/config secret_key ****************ABCD config_file ~/.aws/config region us-west-2 env AWS_DEFAULT_REGION cstt||||_dS)N)superr__init___stream)selfsessionstream __class__F/usr/lib/python3/dist-packages/awscli/customizations/configure/list.pyr /s zConfigureListCommand.__init__cCs|tdddd|tdddd|r$|jdur$t|jjdd }n|d }||d |\}}||d ||d |d }||d dS)NValueTypeLocationNamez-----z----z--------manualz --profileprofile access_key secret_keyregion)_display_config_valuerr_session_lookup_config_lookup_credentials)r argsparsed_globalsrrrrrrr _run_main3s      zConfigureListCommand._run_maincCs"|jd||j|j|jfdS)Nz%10s %24s %16s %s )r writevalue config_typeconfig_variable)r config_value config_namerrrrFs  z*ConfigureListCommand._display_config_valuecCs|d}|jtur|d}||||fS|j}|dur.ttdd}||fSt|j|jd}t|j |jd}||||fS)Nrr) rr#r mask_valuerget_credentialsrrmethodr)r rr credentials no_configrrrrKs&     z(ConfigureListCommand._lookup_credentialscCsh|jj|dd}|durt|d|jj|dS|jj|dd}|dur.t|d|jdSttddS)N)env)methodsr.r)configz config-file config_file)rget_config_variablersession_var_mapr)r namer#rrrrks  z#ConfigureListCommand._lookup_config)__name__ __module__ __qualname__NAME DESCRIPTIONSYNOPSISEXAMPLESsysstdoutr r!rrr __classcell__rrrrrs   r)r<awscli.customizations.commandsrr(rrrrrrrs