def get_s3_endpoint(client):
    """Gets the s3 endpoint for the given :class:`boto3.client.Client` object.

    Args:
        client (:class:`boto3.client.Client`): The client to get the endpoint
            from.

    Returns:
        string: The AWS endpoint for the client.
    """

    return client._endpoint.host