in workflow2_docsplitter/sample_request_folder/sample_s3_request.py [0:0]
def split_s3_pdf(dns_name, input_pdf_uri, bucket_name, endpoint_arn):
if dns_name.endswith("/"):
path = "s3_file"
else:
path = "/s3_file"
queries = f"?bucket_name={bucket_name}&endpoint_arn={endpoint_arn}&input_pdf_uri={input_pdf_uri}"
url = dns_name + path + queries
response = requests.post(url)
print(response.text)