def call_endpoint()

in lambda/classify-emails-lambda/lambda_function.py [0:0]


def call_endpoint(email_body):
   
   response = comprehend_client.classify_document(
    Text=email_body,
    EndpointArn=classification_endpoint_name
   )
   
   return response