https://pulumi.com logo
#general
Title
# general
q

quick-lifeguard-72252

11/04/2021, 10:33 PM
What is a fully qualified type token? I see this term mentioned here a few times https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/#ComponentResource-constructor
l

little-cartoon-10569

11/04/2021, 10:36 PM
It's a string that's used to group resources of the same type. Afaik the only place it's used is to compose Pulumi URNs.
See this page: it's called "resource-type" in the first example of a URN.
q

quick-lifeguard-72252

11/04/2021, 10:37 PM
Also, is extending
ComponentResource
the way to group resources together similar to how a AWS
cdk.Stack
does? Specifically, I'm looking to create a class that contains some resources like `s3.Bucket`s.
l

little-cartoon-10569

11/04/2021, 10:37 PM
ComponentResources are for doing exactly this. And that's why the type token is required.
👍 1
It allows you have (for example) a bucket and a bucket policy with the same name.
You'd end up with two URNs which are very similar, but one would have "aws:s3/bucket" and one would have "aws:iam/policy" or similar
q

quick-lifeguard-72252

11/04/2021, 10:41 PM
awesome thanks