3 =\k@s>ddlZddlmZddlmZddlmZGdddZdS)N)PrintMsg) CommonTools)TaskCatExceptionc@s.eZdZddZd ddZddZdd Zd S) CfnResourceToolscCs ||_dS)N) _boto_client)selfZ boto_clientrn/private/var/folders/pf/wv4htv3x0qs2c2mp0dnn0kchsvlck3/T/pip-install-emcbgzcf/taskcat/taskcat/cfn_resources.py__init__szCfnResourceTools.__init__FcCsg}|j|||||S)a[ Given a stackname, and region function returns the list of dictionary items, where each item consist of logicalId, physicalId and resourceType of the aws resource associated with the stack. :param include_stacks: :param stackname: CloudFormation stack name :param region: AWS region :return: List of objects in the following format [ { 'logicalId': 'string', 'physicalId': 'string', 'resourceType': 'String' }, ] )get_resources_helper)r stacknameregioninclude_stacks l_resourcesrrr get_resources szCfnResourceTools.get_resourcesc Cs|dkry6|jjd|d}|j|d}|jd}x|D]}ttjdj|ttjdjd|jd d |jd d |jd |jd dkrd |kr|r|jd |jd |jd d} |j| tt |jd j } | d}|j |jd |||q<|jd dkrs