import json import random def lambda_handler(event, context): #unchangable values print(event) #min=1 #max=10 #integration changable values from url params #min=int(event['queryStringParameters']['min']) #max=int(event['queryStringParameters']['max']) #not integration changable values from mapping body #min=int(event['min']) #max=int(event['max']) # user post httpMethod par_init=json.loads(event['body']) min=par_init['min'] max=par_init['max'] resp=random.randint(min,max) # not integration response #return resp #integration response return { 'statusCode': 200, 'body': resp }