def main(operation, profile, auto, debug, user_name='<STR_LIT>'):
if user_name:<EOL><INDENT>logger.info('<STR_LIT>' % user_name)<EOL><DEDENT>try:<EOL><INDENT>if operation in VALID_INSTALL:<EOL><INDENT>print(operation)<EOL><DEDENT>elif operation == '<STR_LIT:list>':<EOL><INDENT>print(operation)<EOL>return True<EOL><DEDENT>elif not operation:<EOL><INDENT>msg_accent = (Colors.BOLD + '<STR_LIT:list>' + Colors.RESET + '<STR_LIT>' + Colors.BOLD + '<STR_LIT>' + Colors.RESET)<EOL>msg = """<STR_LIT>""" + msg_accent + """<STR_LIT>"""<EOL>stdout_message(msg)<EOL>logger.warning('<STR_LIT>' % (inspect.stack()[<NUM_LIT:0>][<NUM_LIT:3>]))<EOL>sys.exit(exit_codes['<STR_LIT>']['<STR_LIT>'])<EOL><DEDENT>else:<EOL><INDENT>msg = '<STR_LIT>'<EOL>stdout_message(msg)<EOL>logger.warning('<STR_LIT>' % (msg, inspect.stack()[<NUM_LIT:0>][<NUM_LIT:3>]))<EOL>sys.exit(exit_codes['<STR_LIT>']['<STR_LIT>'])<EOL><DEDENT><DEDENT>except KeyError as e:<EOL><INDENT>logger.critical(<EOL>'<STR_LIT>' %<EOL>(inspect.stack()[<NUM_LIT:0>][<NUM_LIT:3>], str(e)))<EOL>return False<EOL><DEDENT>except OSError as e:<EOL><INDENT>logger.critical(<EOL>'<STR_LIT>' %<EOL>(inspect.stack()[<NUM_LIT:0>][<NUM_LIT:3>], output_file, str(e)))<EOL>return False<EOL><DEDENT>except Exception as e:<EOL><INDENT>logger.critical(<EOL>'<STR_LIT>' %<EOL>(inspect.stack()[<NUM_LIT:0>][<NUM_LIT:3>], str(e)))<EOL>raise e<EOL><DEDENT>
End-to-end renew of access keys for a specific profile in local awscli config