Search in sources :

Example 1 with GlueClient

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

the class GetDatabases method main.

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

Example 2 with GlueClient

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

the class CreateCrawler method main.

public static void main(String[] args) {
    final String USAGE = "\n" + "Usage:\n" + "    <IAM> <s3Path> <cron> <dbName> <crawlerName>\n\n" + "Where:\n" + "    IAM - the ARN of the IAM role that has AWS Glue and S3 permissions. \n" + "    s3Path - the Amazon Simple Storage Service (Amazon S3) target that contains data (for example, CSV data).\n" + "    cron - a cron expression used to specify the schedule  (i.e., cron(15 12 * * ? *).\n" + "    dbName - the database name. \n" + "    crawlerName - the name of the crawler. \n";
    if (args.length != 5) {
        System.out.println(USAGE);
        System.exit(1);
    }
    String iam = args[0];
    String s3Path = args[1];
    String cron = args[2];
    String dbName = args[3];
    String crawlerName = args[4];
    Region region = Region.US_EAST_1;
    GlueClient glueClient = GlueClient.builder().region(region).build();
    createGlueCrawler(glueClient, iam, s3Path, cron, dbName, crawlerName);
    glueClient.close();
}
Also used : GlueClient(software.amazon.awssdk.services.glue.GlueClient) Region(software.amazon.awssdk.regions.Region)

Example 3 with GlueClient

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

the class GetCrawler 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();
    getSpecificCrawler(glueClient, crawlerName);
    glueClient.close();
}
Also used : GlueClient(software.amazon.awssdk.services.glue.GlueClient) Region(software.amazon.awssdk.regions.Region)

Example 4 with GlueClient

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

the class GetJobs method main.

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

Example 5 with GlueClient

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

the class ListWorkflows method main.

public static void main(String[] args) {
    Region region = Region.US_EAST_1;
    GlueClient glueClient = GlueClient.builder().region(region).build();
    listAllWorkflows(glueClient);
    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