Questions tagged [aws-sdk]

The software development kit for use with the Amazon Web Services API.

The AWS SDK provides a language/platform-specific interface for API access to AWS services. For CLI access, see or .

Usage Guidance

  • Use the language/platform you're working on. For example, if you're using the Go SDK, tag your question with both . If the tag exists for a specific language, like , or — use it as well.
  • Do not use this tag for AWS CLI questions. Use instead.
  • Do not use this tag for AWS Tools for PowerShell questions. Use instead.

SDKs

An SDK is available in the following languages/platforms:

Links

AWS SDK Code Samples/Examples

6213 questions
28
votes
7 answers

package com.amazonaws.services.lambda.runtime does not exist in AWS java sdk 1.10.2

I am trying the Java code example in the Getting Started (Authoring AWS Lambda Code in Java) page, but am stuck as com.amazonaws.services.lambda.runtime pacakge seems to be missing Here is the sample code: package example; import…
Arthur
  • 595
  • 1
  • 7
  • 17
27
votes
3 answers

Unable to download file with special character from Amazon S3

I have been trying to download a file from Amazon S3 that ends with special character. The file name ends with an "=" as a result of Base64 encoding. Now I am trying to download this file and I receive an error, The specified key does not exist.…
Andro Selva
  • 53,910
  • 52
  • 193
  • 240
27
votes
9 answers

Using psycopg2 with Lambda to Update Redshift (Python)

I am attempting to update Redshift from a Lambda function using python. To do this, I am attempting to combine 2 code fragments. Both fragments are functional when I run them separately. Updating Redshift from PyDev for Eclipse import…
26
votes
3 answers

How to get data from aws Dynamodb with using partition key only?

I am using aws-sdk-go library for DynamoDb connectivity in Golang. My DynamoDb table have a Partition key DeviceId (String) and a Sort Key Time (Number). How can I write GetItemInput to get all data with a specific DeviceId? params :=…
user6681013
26
votes
2 answers

"IN" statement in dynamodb

I have a "Users" table, here is a sample : { username:"haddox", formattedPhoneNumber:"676767676", verified: 0, } My wish is to retrieve all users whose formattedPhoneNumber is contained in an array of phone numbers (retrieved from my…
24
votes
1 answer

One or more parameter values were invalid: Type mismatch for key xyz expected: S actual: M

My AWS Lambda calls a DynamoDB based on this answer: https://stackoverflow.com/a/33649402/495455 I get an error: One or more parameter values were invalid: Type mismatch for key UserName expected: S actual: M This is python code yet the error occurs…
Jeremy Thompson
  • 61,933
  • 36
  • 195
  • 321
24
votes
2 answers

Change deduplication interval in SQS FIFO

Is there a way to increase contentBasedDeduplication interval in SQS FIFO Queues? In the developer guide they mention If a message with a particular message deduplication ID is sent successfully, any messages sent with the same message…
user1692342
  • 5,007
  • 11
  • 69
  • 128
24
votes
3 answers

Serverless Framework add Lambda to an Existing VPC and Subnet

Is it possible to create a Serverless Framework Lambda deployment where the Lambda is deployed into an existing VPC's SecurityGroup? I don't want the service deployment or it's stack to own an of the network artifacts?
24
votes
2 answers

node.js renaming s3 object via aws-sdk module

Is it possible to rename an object on s3 via aws-sdk? I couldn't find a method for that, maybe there is a provisionary solution ...
sami_analyst
  • 1,751
  • 5
  • 24
  • 43
24
votes
1 answer

Why does S3.deleteObject not fail when the specified key doesn't exist?

Using the AWS SDK for Node, why do I not get an error when trying to delete an object that doesn't exist (i.e. the S3 key is wrong)? If I specify a non-existent bucket on the other hand, an error is produced. If you consider the following Node…
aknuds1
  • 65,625
  • 67
  • 195
  • 317
23
votes
4 answers

Cheapest way to delete 2 billion objects from S3 IA

I have a bucket in S3 (Infrequent access) containing 2 billion objects. It is too big to delete in the console or over the api without taking years. I can create a lifecycle rule to expire and delete the objects but the calculator predicts this will…
matt burns
  • 24,742
  • 13
  • 105
  • 107
23
votes
2 answers

How to configure aws CLI to s3 cp with anonymous user

I need to download files recursively from a s3 bucket. The s3 bucket lets anonymous access. How to list files and download them without providing AWS Access Key using an anonymous user? My command is: aws s3 cp…
Skarab
  • 6,981
  • 13
  • 48
  • 86
22
votes
2 answers

How to access AWS API Gateway documentation using Swagger UI

I have created API using AWS Api Gateway. Then i have documented documentation parts for all the entities ( like API, RESOURCE, METHOD, MODEL etc). Then using AWS Gateway Console i have published the documentation to dev stage with version 1 But i…
LP13
  • 30,567
  • 53
  • 217
  • 400
22
votes
9 answers

AWS CDK user pool authorizer

I'm trying to create an API gateway using the AWS-CDK and protect the REST endpoints with a Cognito user pool authorizer. I cannot find any examples how one would do this. I thought it should look something like this but maybe the methods I need…
Ivan Kluzak
  • 655
  • 2
  • 7
  • 11
22
votes
2 answers

AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity

I've looked around similar problems, but couldn't resolve my problem. I'm developing an web application where the user will authenticate using AWS Cognito's authentication. The sign up part is ok, but when I try to sign in, I'm getting the "not…