I am not able to figure out how to make api calls to amazon elastic transcoder pipeline in java.What should be the base url for the service call or should i make the pipelines manually using the console and create jobs through my code.
You could refer to the API Reference docs and create your own client using any HTTP library, but ideally, you would use the Java SDK for AmazonElasticTranscoderClient, not create your own REST clients.
Specifically, you would want the createPipeline(CreatePipelineRequest request) method
The endpoints for all AWS services are listed on a single page
Related
My use case requires to publish metering data to AWS hourly, I am a seller on Marketplace where buyers can subscribe to my SaaS application.
Currently We are handling the use case by having a TaskTimer class and calling meter-usage command on aws to publish data hourly, now I want to convert this timer class to a RestAPI where i can leverage BatchMeterUsage to send/publish data to AWS, as BatchMeter will allow me to send 25 subscequent requests in a batch instead me having to call MeterUsage 25 times.
Any suggestions on this are welcomed. It will be great if I can get Java based solution, Complete Rest flow not needed, controller and services are in place just need to integrate BatchMeterUsage utility in that, can any help me with that.
The Amazon S3 docs in the Java V2 Developer Guide state that you can use ApacheHttpClient.
https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/http-configuration.html
However, I am not sure how to bind that with the S3Client object. Can someone please show me the proper logic?
There are examples of using ApacheHttpClient when creating an AWS Service Client in Java V2. Included in this doc is the dependencies that you need as well.
See the examples under Specify the HTTP client to use at client creation time.
https://aws.amazon.com/blogs/developer/aws-sdk-for-java-2-x-released/
I have the following endpoint that a client sent me:
https://{restapi_id}.execute-api.{region}.amazonaws.com/test/v1/items?type=ABC
Since this request needs to be called with the AWS Authorization process I wanted to use the API Gateway SDK, but I can't find a straightforward example on how to call it.
I was able to successfully test the API call using Postman (as exaplained in the AWS docs), but I don't know how to specify it using the SDK.
The ENDPOINT should be the full URL?
How should I make a call beyond this code? I tried using the GetResourceRequest, but that doesn't seem right. If so, what part of this URL I have is the resource?
This is code where I'm stuck with:
BasicAWSCredentials awsCreds = new BasicAWSCredentials(ACCESS_KEY, SECRET_KEY);
AmazonApiGatewayClient api = new AmazonApiGatewayClient(awsCreds);
api.setRegion(Region.getRegion(Regions.US_EAST_1));
api.setServiceNameIntern("execute-api");
api.setEndpoint(ENDPOINT);
Here's an open-source generic SDK you can use to do this: https://github.com/rpgreen/apigateway-generic-java-sdk
You can also generate your own SDK as per https://aws.amazon.com/blogs/developer/api-gateway-java-sdk/
AmazonApiGatewayClient is for managing the apis, you cannot use it to call your api.
We just launched support to generate a Java SDK for an apis, you can use that to call your api (link to docs). Note that you need to generate the SDK from the export tab in the stage.
I am considering using AWS for a project that will have an IOS application as a client and a server side using a custom developed REST API using Java Spring. I have been reading about the need to sign all requests to AWS services using a signature version (version 4 for most services) and would like to leverage the mechanism in order to secure my REST services. There is plenty of documentation for using the REST wrappers in the AWS SDK for services such as S3 or DynamoDB, however I am having trouble getting a clear answer on how to validate signature from a custom REST API running on Elastic Bean stalk (for example a WAR deployed on Tomcat implementing Spring REST)
1) IOS client calls a REST service using RestKit (or can I use a class in Amazon SDK for IOS that I can use instead). As part of the call it specifies the token string and the AWS access key.
2) Server side, a Java program running on Tomcat on Elastic Bean stalk, receives the REST call and processes it by first validating the signature. If the signature corresponds to the re computed signature then allow the request, otherwise reject it.
Could anyone point me into the right direction in terms of what is available in the AWS SDK for ObjC and Java to do this REST signature validation (again not using pre boxed services such as S3)?
Thank you much.
This is an excellent question and a very popular feature request from our customers. As of today, there is no AWS API to validate an AWS Access Key / Secret Key based signatures for your custom web services.
However, everything AWS does is based on customer feedback and your feedback helps to setup our development priorities. We are hearing that requirement a lot.
I want to use GAE datastore to store my data but instead of the java API we want to use the JSON API and making requests through spray.
But before I can even do any request I need to obtain an access token.
I can't figure out how this is done with either the Java API or any other means. Is there a way to obtain an access token which can then be used for the JSON API (through spray)?
Like many Google services, the Datastore API uses OAuth for authentication. The easiest way to use it is with one of the Google API client libraries.
Java: https://developers.google.com/api-client-library/java/
Java + Datastore: https://developers.google.com/api-client-library/java/apis/datastore/v1beta2
The documentation for the client does a pretty good job of explaining how OAuth works and how to get started calling APIs by registering your app with the Console.
(I'm not familiar with spray, but I assume you'd be able to use the Java client from Scala.)