aws-sdk

AWS S3 - Move an object to a different folder

Deadly 提交于 2020-08-22 12:11:37
问题 Is there any way to move an object to a different folder in the same bucket using the AWS SDK (preferably for .Net)? Searching around all I can see is the suggestion of Copy to new location and Delete of the original (Which is easy enough via "CopyObjectRequest" and "DeleteObjectRequest") however I'm just wondering is this the only way? 回答1: Turns out you can use Amazon.S3.IO.S3FileInfo to get the object and then call the "MoveTo" method to move the object. S3FileInfo currentObject = new

AWS S3 - Move an object to a different folder

陌路散爱 提交于 2020-08-22 12:10:32
问题 Is there any way to move an object to a different folder in the same bucket using the AWS SDK (preferably for .Net)? Searching around all I can see is the suggestion of Copy to new location and Delete of the original (Which is easy enough via "CopyObjectRequest" and "DeleteObjectRequest") however I'm just wondering is this the only way? 回答1: Turns out you can use Amazon.S3.IO.S3FileInfo to get the object and then call the "MoveTo" method to move the object. S3FileInfo currentObject = new

Flutter / Dart and AWS SDK

自古美人都是妖i 提交于 2020-08-22 04:53:10
问题 I am thinking of writing a mobile app in Flutter (which uses dart). However I heavily use AWS and not being able to use their SDK would be troublesome. Is there any good way to make use of it? As far as I know there is not a Dart version of the SDK. I don't know if it's possible to interrop to other language's libs in Dart or something? Is my best bet to use the REST apis maybe? 回答1: There is no official support for Flutter from AWS yet (March 2019) BUT there is a community plugin that works

AWS cognito: adminUpdateUserAttributes not working and not giving an error , am i missing something?

怎甘沉沦 提交于 2020-08-09 09:35:21
问题 I can't get adminUpdateUserAttributes for Cognito to work. The cli works and I can have the user add/changed them not desired but wanted to see it working. I'm using the AmazonCognitoPowerUser an AWS managed policy on the lambda function and the lambda is triggering, is there something I'm missing this sounds and looks easy but it's just not working. also is there a way to get the default Created date without making my own. const AWS = require('aws-sdk'); const cognitoidentityserviceprovider

AWS cognito: adminUpdateUserAttributes not working and not giving an error , am i missing something?

为君一笑 提交于 2020-08-09 09:35:12
问题 I can't get adminUpdateUserAttributes for Cognito to work. The cli works and I can have the user add/changed them not desired but wanted to see it working. I'm using the AmazonCognitoPowerUser an AWS managed policy on the lambda function and the lambda is triggering, is there something I'm missing this sounds and looks easy but it's just not working. also is there a way to get the default Created date without making my own. const AWS = require('aws-sdk'); const cognitoidentityserviceprovider

How to synchronously upload files to S3 using aws-sdk?

一个人想着一个人 提交于 2020-08-08 18:16:31
问题 I'm attempting to upload files to my S3 bucket and then return out of my upload function. The problem is that I'm returning out of the function before the upload returns the stored data. I've attempted to use async/await with s3.upload , but I don't believe s3.upload is a promise so it doesn't do anything. ex: for (const file of files) { const params = { Bucket: BUCKET_NAME, Key: file.name, Body: file.data }; const stored = await s3.upload(params, (err, data) => { if (err) console.log("error"

Is it possible to use the amplify framework without using the cli?

怎甘沉沦 提交于 2020-08-05 04:17:31
问题 The amplify FAQ says specifically you can. But the github links now just redirect you to the main amplify page and the instructions only talk about using the cli. Q: Can I use the Amplify Framework libraries even if I do not use the CLI? Yes. The libraries can be used to access backend resources that were created without the Amplify CLI. https://aws.amazon.com/amplify/faqs/ https://docs.aws.amazon.com/amplify/?id=docs_gateway https://aws-amplify.github.io/docs/ 回答1: I have learned that you

Is it possible to use the amplify framework without using the cli?

不羁的心 提交于 2020-08-05 04:17:11
问题 The amplify FAQ says specifically you can. But the github links now just redirect you to the main amplify page and the instructions only talk about using the cli. Q: Can I use the Amplify Framework libraries even if I do not use the CLI? Yes. The libraries can be used to access backend resources that were created without the Amplify CLI. https://aws.amazon.com/amplify/faqs/ https://docs.aws.amazon.com/amplify/?id=docs_gateway https://aws-amplify.github.io/docs/ 回答1: I have learned that you

Error in using aws-java-sdk-s3

大憨熊 提交于 2020-07-29 06:36:23
问题 I am trying to s3 sdk with very basic test and getting below error. Caused by: java.lang.NoSuchFieldError: SIGNING_REGION at com.amazonaws.services.s3.AmazonS3Client.createRequest(AmazonS3Client.java:4227) at com.amazonaws.services.s3.AmazonS3Client.createRequest(AmazonS3Client.java:4203) at com.amazonaws.services.s3.AmazonS3Client.listBuckets(AmazonS3Client.java:929) at com.amazonaws.services.s3.AmazonS3Client.listBuckets(AmazonS3Client.java:936) aws-java-sdk-s3 <dependency> <groupId>com

Error in using aws-java-sdk-s3

ε祈祈猫儿з 提交于 2020-07-29 06:35:29
问题 I am trying to s3 sdk with very basic test and getting below error. Caused by: java.lang.NoSuchFieldError: SIGNING_REGION at com.amazonaws.services.s3.AmazonS3Client.createRequest(AmazonS3Client.java:4227) at com.amazonaws.services.s3.AmazonS3Client.createRequest(AmazonS3Client.java:4203) at com.amazonaws.services.s3.AmazonS3Client.listBuckets(AmazonS3Client.java:929) at com.amazonaws.services.s3.AmazonS3Client.listBuckets(AmazonS3Client.java:936) aws-java-sdk-s3 <dependency> <groupId>com