aws-sdk-js

Listing users and their groups from AWS.CognitoIdentityServiceProvider.listUsers in a NodeJS Lambda function?

﹥>﹥吖頭↗ 提交于 2021-01-05 06:56:27
问题 So I need to display a list of users as well as their individual groups in a custom admin screen for a client. I'm returning the results of AWS.CognitoIdentityServiceProvider.listUsers in a Lambda function and that's listing users fine, but I'm not sure on the best way to fetch the groups for each user and add them to the response. It seems a bit surprising to me that they don't provide a listUsers like method that includes that information, personally, as it seems like it would be a common

Listing users and their groups from AWS.CognitoIdentityServiceProvider.listUsers in a NodeJS Lambda function?

送分小仙女□ 提交于 2021-01-05 06:55:35
问题 So I need to display a list of users as well as their individual groups in a custom admin screen for a client. I'm returning the results of AWS.CognitoIdentityServiceProvider.listUsers in a Lambda function and that's listing users fine, but I'm not sure on the best way to fetch the groups for each user and add them to the response. It seems a bit surprising to me that they don't provide a listUsers like method that includes that information, personally, as it seems like it would be a common

Listing users and their groups from AWS.CognitoIdentityServiceProvider.listUsers in a NodeJS Lambda function?

白昼怎懂夜的黑 提交于 2021-01-05 06:55:35
问题 So I need to display a list of users as well as their individual groups in a custom admin screen for a client. I'm returning the results of AWS.CognitoIdentityServiceProvider.listUsers in a Lambda function and that's listing users fine, but I'm not sure on the best way to fetch the groups for each user and add them to the response. It seems a bit surprising to me that they don't provide a listUsers like method that includes that information, personally, as it seems like it would be a common

Listing users and their groups from AWS.CognitoIdentityServiceProvider.listUsers in a NodeJS Lambda function?

我的未来我决定 提交于 2021-01-05 06:54:57
问题 So I need to display a list of users as well as their individual groups in a custom admin screen for a client. I'm returning the results of AWS.CognitoIdentityServiceProvider.listUsers in a Lambda function and that's listing users fine, but I'm not sure on the best way to fetch the groups for each user and add them to the response. It seems a bit surprising to me that they don't provide a listUsers like method that includes that information, personally, as it seems like it would be a common

Listing users and their groups from AWS.CognitoIdentityServiceProvider.listUsers in a NodeJS Lambda function?

佐手、 提交于 2021-01-05 06:54:20
问题 So I need to display a list of users as well as their individual groups in a custom admin screen for a client. I'm returning the results of AWS.CognitoIdentityServiceProvider.listUsers in a Lambda function and that's listing users fine, but I'm not sure on the best way to fetch the groups for each user and add them to the response. It seems a bit surprising to me that they don't provide a listUsers like method that includes that information, personally, as it seems like it would be a common

dynamodb.put().promise() not returning the put object

China☆狼群 提交于 2020-12-08 05:23:27
问题 I am trying to make use of the async/await functionality with regard to aws and dynamo db. Below is an example of how to put an object pre asyn await, as you can see in the callback you have access to data which contains the put object. However in the second block of code which uses async and promise the result is an empty object, any thoughts? https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.NodeJs.03.html Non Promise Version var docClient = new AWS.DynamoDB

dynamodb.put().promise() not returning the put object

爱⌒轻易说出口 提交于 2020-12-08 05:22:46
问题 I am trying to make use of the async/await functionality with regard to aws and dynamo db. Below is an example of how to put an object pre asyn await, as you can see in the callback you have access to data which contains the put object. However in the second block of code which uses async and promise the result is an empty object, any thoughts? https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.NodeJs.03.html Non Promise Version var docClient = new AWS.DynamoDB