def enable_detective()

in enableDetective.py [0:0]


def enable_detective(d_client: botocore.client.BaseClient, region: str, tags: dict = {}):
    graphs = get_graphs(d_client)
    
    if not graphs:
        confirm = input('Should Amazon Detective be enabled in {}? Enter [Y/N]: '.format(region))

        if confirm == 'Y' or confirm == 'y':
            logging.info(f'Enabling Amazon Detective in {region}' + (f' with tags {tags}' if tags else ''))
            graphs = [d_client.create_graph(Tags=tags)['GraphArn']]
        else:
            logging.info(f'Skipping {region}')
            return None
        logging.info(f'Amazon Detective is enabled in region {region}')

    return graphs