private ComprehendClient getComprehendClient()

in athena-udfs-textanalytics/src/main/java/com/amazonaws/athena/udf/textanalytics/TextAnalyticsUDFHandler.java [103:114]


    private ComprehendClient getComprehendClient() 
    {
        // create client first time on demand
        if (this.comprehendClient == null) {
            System.out.println("Creating Comprehend client connection");
            this.comprehendClient = ComprehendClient.builder()
                .overrideConfiguration(createClientOverrideConfiguration())
                .build();
            System.out.println("Created Comprehend client connection");
        }
        return this.comprehendClient;
    }