def do_refresh(self,args):
<EOL>response = AwsConnectionFactory.getLogClient().describe_log_groups(logGroupNamePrefix=self.stackResource.physical_resource_id)<EOL>if not '<STR_LIT>' in response:<EOL><INDENT>raise Exception("<STR_LIT>".format(response))<EOL><DEDENT>descriptions = [x for x in response['<STR_LIT>'] if x['<STR_LIT>'] == self.stackResource.physical_resource_id]<EOL>if not descriptions:<EOL><INDENT>raise Exception("<STR_LIT>".format(self.stackResource.physical_resource_id,response['<STR_LIT>']))<EOL><DEDENT>self.description = descriptions[<NUM_LIT:0>]<EOL>self.logStreams = self.loadLogStreams()<EOL>print("<STR_LIT>")<EOL>maxIndex = "<STR_LIT:{}>".format(len(self.logStreams)+<NUM_LIT:1>)<EOL>print("<STR_LIT>".format(maxIndex))<EOL>frm = "<STR_LIT>".format(len(maxIndex))<EOL>print(frm)<EOL>index = <NUM_LIT:0><EOL>for logStream in self.logStreams:<EOL><INDENT>print(frm.format(index,logStream['<STR_LIT>']))<EOL>index += <NUM_LIT:1><EOL><DEDENT>
Refresh the view of the log group