Search in sources :

Example 6 with GlueClient

use of software.amazon.awssdk.services.glue.GlueClient in project aws-doc-sdk-examples by awsdocs.

the class StartCrawler method main.

public static void main(String[] args) {
    final String USAGE = "\n" + "Usage:\n" + "    <crawlerName>\n\n" + "Where:\n" + "    crawlerName - the name of the crawler. \n";
    if (args.length != 1) {
        System.out.println(USAGE);
        System.exit(1);
    }
    String crawlerName = args[0];
    Region region = Region.US_EAST_1;
    GlueClient glueClient = GlueClient.builder().region(region).build();
    startSpecificCrawler(glueClient, crawlerName);
    glueClient.close();
}
Also used : GlueClient(software.amazon.awssdk.services.glue.GlueClient) Region(software.amazon.awssdk.regions.Region)

Example 7 with GlueClient

use of software.amazon.awssdk.services.glue.GlueClient in project aws-doc-sdk-examples by awsdocs.

the class DeleteCrawler method main.

public static void main(String[] args) {
    final String USAGE = "\n" + "Usage:\n" + "    <crawlerName>\n\n" + "Where:\n" + "    crawlerName - the name of the crawler. \n";
    if (args.length != 1) {
        System.out.println(USAGE);
        System.exit(1);
    }
    String crawlerName = args[0];
    Region region = Region.US_EAST_1;
    GlueClient glueClient = GlueClient.builder().region(region).build();
    deleteSpecificCrawler(glueClient, crawlerName);
    glueClient.close();
}
Also used : GlueClient(software.amazon.awssdk.services.glue.GlueClient) Region(software.amazon.awssdk.regions.Region)

Example 8 with GlueClient

use of software.amazon.awssdk.services.glue.GlueClient in project aws-doc-sdk-examples by awsdocs.

the class GetCrawlers method main.

public static void main(String[] args) {
    Region region = Region.US_EAST_1;
    GlueClient glueClient = GlueClient.builder().region(region).build();
    getAllCrawlers(glueClient);
    glueClient.close();
}
Also used : GlueClient(software.amazon.awssdk.services.glue.GlueClient) Region(software.amazon.awssdk.regions.Region)

Example 9 with GlueClient

use of software.amazon.awssdk.services.glue.GlueClient in project aws-doc-sdk-examples by awsdocs.

the class GetTable method main.

public static void main(String[] args) {
    final String USAGE = "\n" + "Usage:\n" + "    <dbName> <tableName>\n\n" + "Where:\n" + "    dbName - the database name. \n" + "    tableName - the name of the table. \n";
    if (args.length != 2) {
        System.out.println(USAGE);
        System.exit(1);
    }
    String dbName = args[0];
    String tableName = args[1];
    Region region = Region.US_EAST_1;
    GlueClient glueClient = GlueClient.builder().region(region).build();
    getGlueTable(glueClient, dbName, tableName);
    glueClient.close();
}
Also used : GlueClient(software.amazon.awssdk.services.glue.GlueClient) Region(software.amazon.awssdk.regions.Region)

Example 10 with GlueClient

use of software.amazon.awssdk.services.glue.GlueClient in project aws-doc-sdk-examples by awsdocs.

the class SearchTables method main.

public static void main(String[] args) {
    final String USAGE = "\n" + "Usage:\n" + "    <text>\n\n" + "Where:\n" + "    text - a string used for a text search. \n";
    if (args.length != 1) {
        System.out.println(USAGE);
        System.exit(1);
    }
    String text = args[0];
    Region region = Region.US_EAST_1;
    GlueClient glueClient = GlueClient.builder().region(region).build();
    searchGlueTable(glueClient, text);
    glueClient.close();
}
Also used : GlueClient(software.amazon.awssdk.services.glue.GlueClient) Region(software.amazon.awssdk.regions.Region)

Aggregations

Region (software.amazon.awssdk.regions.Region)12 GlueClient (software.amazon.awssdk.services.glue.GlueClient)12