def printStack(self,wrappedStack,include=None,filters=["<STR_LIT:*>"]):
rawStack = wrappedStack['<STR_LIT>']<EOL>print("<STR_LIT>".format(rawStack.name))<EOL>print("<STR_LIT>".format(rawStack.stack_status,defaultify(rawStack.stack_status_reason,'<STR_LIT>')))<EOL>for resourceType, resources in list(wrappedStack['<STR_LIT>'].items()):<EOL><INDENT>if resourceType in AwsProcessor.resourceTypeAliases:<EOL><INDENT>resourceType = AwsProcessor.resourceTypeAliases[resourceType];<EOL><DEDENT>if (None == include or resourceType in include) and len(resources):<EOL><INDENT>print("<STR_LIT>".format(resourceType))<EOL>logicalIdWidth = <NUM_LIT:1><EOL>resourceStatusWidth = <NUM_LIT:1><EOL>resourceStatusReasonWidth = <NUM_LIT:1><EOL>for index, resource in list(resources.items()):<EOL><INDENT>logicalIdWidth = max(logicalIdWidth,len(resource.logical_id))<EOL>resourceStatusWidth = min(<NUM_LIT:50>,max(resourceStatusWidth,len(resource.resource_status)))<EOL>resourceStatusReasonWidth = min(<NUM_LIT:50>,max(resourceStatusReasonWidth,len(defaultify(resource.resource_status_reason,'<STR_LIT>'))))<EOL><DEDENT>frm = "<STR_LIT>".format(logicalIdWidth,resourceStatusWidth)<EOL>for index, resource in list(resources.items()):<EOL><INDENT>if fnmatches(resource.logical_id.lower(),filters):<EOL><INDENT>print(frm.format(index,resource.logical_id,<EOL>elipsifyMiddle(repr(resource.resource_status),<NUM_LIT:50>),<EOL>elipsifyMiddle(repr(defaultify(resource.resource_status_reason,'<STR_LIT>')),<NUM_LIT>)))<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Prints the stack