https://pulumi.com logo
Title
b

bland-tailor-50336

10/26/2022, 2:49 AM
Is there a list of all the Pulumi resource types to use with the import command? Do they follow the resource namespace in the docs?
l

little-cartoon-10569

10/26/2022, 2:56 AM
I'm not aware of a list. However they're fairly easy to find if you're in an IDE of any kind. You can open the Pulumi SDK's definition of the resource and search for
pulumiType
. For example, in aws/ses/EmailIdentity.js, near the bottom is this line:
EmailIdentity.__pulumiType = 'aws:ses/emailIdentity:EmailIdentity';
Most (all?) resource API docs include the type in the example import code, near the bottom of the page.
b

bland-tailor-50336

10/26/2022, 3:09 AM
awesome thanks
this helps as I'm using typescript
I wonder how hard it would be to add a search function / autocomplete to the cli... as some people aren't leveraging typed languages w/ ides
l

little-cartoon-10569

10/26/2022, 3:26 AM
Not hard. It'd be a 10 minute job to add a yarn / npm script to build the class-to-string map. Adding the autocomplete to your IDE would be fairly easy, I guess... I've never tried that sort of thing...