AWS Javascript SDK V3 with Typescript

0 votes

Has anyone used AWS javascript sdk v3 with typescript. I am trying to figure out how to use types in my lambda function. For example in this code snippet what should I use for the return type and how do I get/import type declations? Thank you

getAllIamUsers(): ?? {
        
        const input = {
            MaxItems: 100,
            Marker: null
        };     
        
       const command = new ListUsersCommand(input);
       const usersResponse = await client.send(command); 
       return usersResponse.Users;       

    }
Jul 5, 2022 in TypeSript by Nina
• 3,060 points

edited Mar 4 7 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP