

def _construct_role_and_role_policy_structure(self, list_val, response, policy):
    'Method to construct the message to be displayed to the user'
    if ((response is not None) and (response['Role'] is not None)):
        list_val.append({
            'Role': response['Role'],
            'RolePolicy': policy,
        })
        return list_val

dataset/ETHPy150Open aws/aws-cli/awscli/customizations/datapipeline/createdefaultroles.py CreateDefaultRoles._construct_role_and_role_policy_structure/original