Pretty sure you have to be explicit. ComponentResource is really just code organization. Since Pulumi is just statically collecting your resource declarations within each Pulumi.Resource constructor it has no concept of where the resource was constructed in code