skip to Main Content

Amazon web services – 'ListBucketsCommand' is not assignable to parameter of type 'Command

using "@aws-sdk/client-s3": "^3.481.0", and keep getting the error at send line let S3_Config = { region: process.env.S3_REGION, credentials: { accessKeyId: process.env.S3_ACCESS_KEY_ID, secretAccessKey: process.env.S3_ACCESS_SECRET_KEY, }, }; const s3_client = new S3Client(S3_Config); const s3_params = { Bucket: process.env.S3_BUCKET_NAME , // required MaxKeys:…

VIEW QUESTION

Amazon web services – UpdateItem dynamodb action results to duplication of entry in the table

I got this code public void saveOrUpdateImageRecords(String documentId, List<ImageDetail> imageDetails, LambdaLogger logger) { DynamoDbTable<ImageDetail> table = enhancedClient.table(System.getenv("COLUMBIA_IMAGES_TABLE"), TableSchema.fromBean(ImageDetail.class)); logger.log("inside saveOrUpdateImageRecords"); for (int i = 0; i < imageDetails.size(); i++) { ImageDetail imageDetail = imageDetails.get(i); // Set DocumentId and TrackPosition as…

VIEW QUESTION
Back To Top
Search