def create_s3_notification()

in functions/CreateS3BucketNotification/lambda_function.py [0:0]


def create_s3_notification(event, context):
    lambda_arn=event['ResourceProperties']['LambdaArn']
    bucket=event['ResourceProperties']['Bucket']
    suffix=event['ResourceProperties']['Suffix']
    
    try:
        print("Request Type:",event['RequestType'])
        response = add_notification(lambda_arn, bucket, suffix)
        print(response)
    except Exception as e:
        print(e)
        raise e