def update_environment(self, environment_name, description=None, option_settings=[], tier_type=None, tier_name=None,<EOL>tier_version='<STR_LIT:1.0>'):
out("<STR_LIT>" + str(environment_name))<EOL>messages = self.ebs.validate_configuration_settings(self.app_name, option_settings,<EOL>environment_name=environment_name)<EOL>messages = messages['<STR_LIT>']['<STR_LIT>']['<STR_LIT>']<EOL>ok = True<EOL>for message in messages:<EOL><INDENT>if message['<STR_LIT>'] == '<STR_LIT:error>':<EOL><INDENT>ok = False<EOL><DEDENT>out("<STR_LIT:[>" + message['<STR_LIT>'] + "<STR_LIT>" + str(environment_name) + "<STR_LIT>"+ message['<STR_LIT>'] + "<STR_LIT::>" + message['<STR_LIT>'] + "<STR_LIT>" + message['<STR_LIT>'])<EOL><DEDENT>self.ebs.update_environment(<EOL>environment_name=environment_name,<EOL>description=description,<EOL>option_settings=option_settings,<EOL>tier_type=tier_type,<EOL>tier_name=tier_name,<EOL>tier_version=tier_version)<EOL>
Updates an application version