How do I get my AWS Glue client in JAVA

+1 vote

Hi guys, I am facing some issues with AWS Glue client!

I've been trying to invoke a Job in AWS Glue from my Lambda code which is in written in Java but I am not able to get the Glue Client here.
You can see that we will be able to see the DynamoClient like this -

AmazonDynamoDB client = AmazonDynamoDB client = AmazonDynamoDBClientBuilder.standard().withRegion("us-east-1").build();

What would be the equivalent code for a Glue Client?

AWSGlueClient glue = null; // how to instantiate client
StartJobRunRequest jobRunRequest = new StartJobRunRequest();
StartJobRunResult jobRunResult = glue.startJobRun(jobRunRequest);

This is the code which I am running for Glue.
I am not able to see the  AmazonGlueClientBuilder class because I am new to this glue so I am bit confused, please let me know if I am doing it a right way? or is there any other way I can use to invoke the glue job.

Even I am following the Maven Dependency code -


Let me know a way out to get this thing done, a code will be much appreciated.

Apr 17, 2018 in AWS by Flying geek
• 3,260 points

2 answers to this question.

+1 vote
Best answer

Hey, you've been using a correct code check with it again. However, the equivalent for it can be: 


Hope it helps, let me know through reply if it doesn't work.


answered Apr 17, 2018 by Cloud gunner
• 4,650 points

selected Aug 22, 2018 by Priyaj
0 votes

The equivalent would be

answered Aug 22, 2018 by Priyaj
• 58,140 points

Related Questions In AWS

+1 vote
0 answers

How can i start my AWS - glue job from my java application

i want to start and stop my ...READ MORE

Jul 15, 2019 in AWS by Dhanesh
0 votes
1 answer

how to get the list of aws services i am used in aws my account by using the lambda function

Hi@shalk, You can create a session in your ...READ MORE

answered Sep 24, 2020 in AWS by MD
• 95,320 points
+1 vote
4 answers

How do I cache my images which are stored in Amazon S3?

when caching ec2 instance these can be ...READ MORE

answered Oct 23, 2018 in AWS by Nabarupa
0 votes
1 answer

How do i manage firewall settings for my instance in Lightsail?

Yes. You can control the data traffic ...READ MORE

answered Sep 12, 2018 in AWS by Archana
• 4,150 points
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,140 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
0 votes
1 answer