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
2
votes
0 answers

Download Directory with SSE-C using TransferManager AWS S3

I have a directory in a bucket on S3, which contains multiple file , previously I use to download whole directory using TransferManager like this MultipleFileDownload myDownload = TransferManager.downloadDirectory( bucketName, …
2
votes
0 answers

How to access CloudFront Cache Statistics via SDK

I am trying to access the Cloudfront Cache Statistics programmatically. Via the UI you can see the Statistics via clicking on "CloudFront" and then on the left side under "Reports & analytics" the link "Cache Statistics". I am using the Java SDK…
2
votes
3 answers

Is a shadow launch in AWS Lambda possible?

What is a shadow launch? Shadow launch means that you launch the new version but it not yet gets live traffic. The traffic of the old version gets 1:1 copied into the the new one and so you can measure the performance and results of the new function…
Simon Frey
  • 2,539
  • 2
  • 11
  • 20
2
votes
1 answer

Boto3 Error in AWS SDK: botocore.exceptions.NoCredentialsError: Unable to locate credentials

When I simply run the following code, I always gets this error. import boto3 as boto import sys import…
2
votes
1 answer

How to create a file in Amazon S3 Node Lambda function

I am trying to create and load an object into an s3 container but the PUT event does not seem to create the object const AWS = require('aws-sdk'); const fs = require('fs'); const s3 = new AWS.S3(); exports.handler = async (event) => { // I've…
rlcrews
  • 3,482
  • 19
  • 66
  • 116
2
votes
1 answer

STS Get Caller Identity C++

On the command line I'm able to run this AWS CLI command to get the AWS UserId being used on my local machine $ aws sts get-caller-identity { "UserId": "123456789:john.doe", "Account": "123456789", "Arn":…
Kyle Bridenstine
  • 6,055
  • 11
  • 62
  • 100
2
votes
1 answer

How to list all arguments accepted by boto3.resource()

Is there any way to list all the arguments accepted by boto3 functions i.e: boto3.resource() or boto3.client()?
Sourav
  • 121
  • 1
  • 5
2
votes
1 answer

AWSSDK V2 Java SES sending email - AmazonSimpleEmailService cannot be resolved

I am trying to integrate aws SES SDK v2 to send emails in the application and this is my initial project with aws sdk. However, I am following below example from the docs but the main classes are not able to resolve even though I have added proper…
San
  • 726
  • 2
  • 9
  • 18
2
votes
1 answer

How to decode ion_binary of Amazon QLDB in ruby

I was playing with QLDB of Amazon with ruby and used the aws-sdk-qldb and aws-sdk-qldbsession gem. I was getting result as IonBinary. But not able to decode and parse it. Following is the code cred =…
2
votes
1 answer

java.lang.NoSuchMethodError: io.netty.channel.DefaultChannelId.newInstance()Lio/netty/channel/DefaultChannelId;

I am trying to use "software.amazon.awssdk" % "dynamodb" % "2.10.33" with my project on Play framework (Java). Following is a brief of the project configuration scalaVersion := "2.11.8" addSbtPlugin("com.typesafe.play" % "sbt-plugin" %…
lohiarahul
  • 1,432
  • 3
  • 22
  • 35
2
votes
1 answer

AWSMobileClient: Access Token not refreshed automatically

Documentation says: "The tokens are automatically refreshed by the library when necessary.". I call AWSMobileClient.getInstance().getTokens().getAccessToken().getTokenString(); everytime before calling the API with AccessToken. Here is what my…
2
votes
1 answer

AWS Lambda direct invocation sends two immediate responses

I have a lambda function that is triggered via the AWS SDK using lambda.invoke which is sending duplicate requests with the same request ID every single time. Currently running NodeJS with the lambdas in AWS. - AWS SDK version 2.557.0 - NodeJS…
Elbert Bae
  • 205
  • 3
  • 11
2
votes
1 answer

What does prefix mean in S3

the docs says, For example, your application can achieve at least 3,500 PUT/COPY/POST/DELETE and 5,500 GET/HEAD requests per second per prefix in a bucket. There are no limits to the number of prefixes in a bucket. You can increase your read or…
laxman
  • 1,781
  • 4
  • 14
  • 32
2
votes
1 answer

aws cdk ecs task scheduling specify existing securitygroup

When defining an ECS Task Schedule, I can't seem to find a way of specifying an existing security group. Any pointers on where this can be configured using aws cdk? In the code snippet below, you'll see I am able to create a cron, specify the…
Tarun Arora
  • 4,692
  • 4
  • 30
  • 40
2
votes
2 answers

Get the last inserted item using Document Model or Object Persistence Model using .Net core with DynamoDB

I am able to get the last inserted item using low level API as showed in code below using .net core But is it possible to get the last inserted item using high level API such as Document Model or Object Persistence Model? Prefer Object Persistence…
HExit
  • 696
  • 7
  • 17