MCPcopy Create free account
hub / github.com/aws/aws-cli / get_value

Method get_value

awscli/customizations/configure/configure.py:50–63  ·  view source on GitHub ↗
(self, current_value, config_name, prompt_text='')

Source from the content-addressed store, hash-verified

48
49class InteractivePrompter:
50 def get_value(self, current_value, config_name, prompt_text=''):
51 if config_name in (
52 'aws_access_key_id',
53 'aws_secret_access_key',
54 'aws_session_token',
55 ):
56 current_value = mask_value(current_value)
57 response = compat_input(f"{prompt_text} [{current_value}]: ")
58 if not response:
59 # If the user hits enter, we return a value of None
60 # instead of an empty string. That way we can determine
61 # whether or not a value has changed.
62 response = None
63 return response
64
65
66class ConfigureCommand(BasicCommand):

Calls 2

compat_inputFunction · 0.90
mask_valueFunction · 0.85