use of software.amazon.awssdk.services.glue.GlueClient in project aws-doc-sdk-examples by awsdocs.
the class GetDatabase method main.
public static void main(String[] args) {
final String USAGE = "\n" + "Usage:\n" + " <databaseName>\n\n" + "Where:\n" + " databaseName - the name of the database. \n";
if (args.length != 1) {
System.out.println(USAGE);
System.exit(1);
}
String databaseName = args[0];
Region region = Region.US_EAST_1;
GlueClient glueClient = GlueClient.builder().region(region).build();
getSpecificDatabase(glueClient, databaseName);
glueClient.close();
}
use of software.amazon.awssdk.services.glue.GlueClient in project aws-doc-sdk-examples by awsdocs.
the class GetJobRun method main.
public static void main(String[] args) {
final String USAGE = "\n" + "Usage:\n" + " <jobName> <runId>\n\n" + "Where:\n" + " jobName - the name of the job. \n" + " runId - the run id value. \n";
if (args.length != 2) {
System.out.println(USAGE);
System.exit(1);
}
String jobName = args[0];
String runId = args[1];
Region region = Region.US_EAST_1;
GlueClient glueClient = GlueClient.builder().region(region).build();
getGlueJobRun(glueClient, jobName, runId);
glueClient.close();
}
Aggregations