<reponame>patgoley/gordon<filename>gordon/contrib/helpers/sleep/sleep.py<gh_stars>1000+
import time

from cfnresponse import send, SUCCESS


def handler(event, context):
    if event['RequestType'] == 'Delete':
        send(event, context, SUCCESS)
        return
    time.sleep(int(event['ResourceProperties']['Time']))
    send(event, context, SUCCESS)
