def search_tag_created()

in lambda/snapshots_tool_utils.py [0:0]


def search_tag_created(response):
# Takes a describe_db_snapshots response and searches for our CreatedBy tag
    try:

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

    except Exception: return False

    else: return False