def search_tag_created()

in lambda/snapshots_tool_utils.py [0:0]


def search_tag_created(response):
    # Takes a describe_db_cluster_snapshots response and searches for our shareAndCopy tag
    try:

        for tag in response['TagList']:
            if tag['Key'] == 'CreatedBy' and tag['Value'] == 'Snapshot Tool for Aurora':
                return True

    except Exception:
        return False

    else:
        return False