Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Calling AWS API Gateway from OSGI

Avatar

Level 6

Hi all,

 

I am trying to call 2 resources on AWS API gateway from an OSGI bundle.

I don't know if I am going down the wrong track by even trying.

It is easy to create an OSGI for directly interacting with S3, and DynamoDB from an OSGI bundle.

It is also easy to generate an Android-Sdk to access the Api Gateway.

However, I have never tried to use android java code inside of an OSGI.

One can import using Maven the aws SDK into an OSGI project.

I have access from there to com.amazonaws.services.apigateway.AmazonApiGatewayClient

But I cannot find any class methods to make a GET call to API gateway.

I had thought to use

        BasicAWSCredentials basicAWSCredentials = new                             BasicAWSCredentials(ACCESS_KEY_ID,SECRET_ACCESS_KEY);
    
        AmazonApiGatewayClient amazonApiGatewayClient = new AmazonApiGatewayClient(basicAWSCredentials);
        GetMethodRequest getMethodRequest = new GetMethodRequest();
        getMethodRequest.setHttpMethod("get");
        amazonApiGatewayClient.getMethod(getMethodRequest);
        amazonApiGatewayClient.setEndpoint("http://*******");

 

I had thought getMethodRequest() might enable me to build the required GET, but have ended up going no where.

 

Regards

Clive Stewart

0 Replies

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now