Skip to content
Advertisement

Tag: aws-sdk

How to getQueueUrl as an array with an array of queueName?

Is there a way to get an array response for val getQueueUrlResponse on SQSClient.getQueueUrl method call with an array of sqsNames? I have many sqsNames and I’d like to batch the request into one request, I’d like to avoid hitting SQSClient multiple times. So if I have 10 elements in Array sqsName, I’d like 10 elements in the getQueueUrlResponse val.

Query DynamoDb Global Secondary Index

i am trying out dynamodb locally and got the following table: I want to query it with Java like this: But it throws a Exception with “QUery Key Condition not supported”. I dont understand this, because in the docs, the “<” operator is described as regular operation. Can anybody help me Answer DDB Query() requires a key condition that includes

Maven error in Eclipse when including aws-java-sdk-acmpca

Whenever I add the dependency below, I get this error in Eclipse: Errors running builder ‘Maven Project Builder’ on project. Could not initialize class okhttp3.internal.platform.Platform I tried adding it to its own project with no other dependencies and I still get the same error so I don’t think that a dependency is clashing with anything else. Is it possibly caused

java.lang.SecurityException AWSCredentialsProvider Signer Information Does Not Match

I am using 2 Amazon-provided libraries: redshift-jdbc42-1.2.27.1051 and aws-java-sdk-core-1.11.600. Both libraries define a class AWSCredentialsProvider under package com.amazonaws.auth. When I’m trying to use my app, I get this Exception: Caused by: java.lang.SecurityException: class “com.amazonaws.auth.AWSCredentialsProvider”‘s signer information does not match signer information of other classes in the same package I am not sure how to resolve this. Any help would be

AWS Java SDK for service to service Oauth client credentential flow authentication with Cognito user pool?

Situation: I have java background process service running that needs to access a secured REST API endpoint. The API endpoint an AWS lambda function running behind Amazon API Gateway, using the Serverless framework. It is secured with a Amazon Cognito User Pool Authorizer. I have created an App Client for my Java background service, which is attached to the user

AWS S3 doesObjectExist costs

AWS S3 Java SDK provides a method doesObjectExist() to check if an object exists in S3. What operation does it use internally? Is it GET, LIST, or HEAD ? My concern is mainly related to its costs. From S3 documentation the costs of US west Oregon are- PUT, COPY, POST, or LIST Requests $0.005 per 1,000 requests GET, SELECT and

S3 link with longer expiration

I am generating a pre-signed link using the java sdk for a client. We have new requirements to allow the links to remain active for at least 30 days. When I set the expiration longer I get the below error: Requests that are pre-signed by SigV4 algorithm are valid for at most 7 days I need to determine a way

Advertisement