def METHOD_NAME(
    request: Request, account_id: str, queue_name: str, region: str = None, port: int = None
):
    """Uses the endpoint host to extract the region. See:
    https://docs.aws.amazon.com/general/latest/gr/sqs-service.html"""
    if not region:
        region = config.DEFAULT_REGION
    else:
        region = region.rstrip(".")
    return handle_request(request, region)