This isn't any different in component resources compared to top level resources. The tricky thing is dependsOn doesn't currently support this so you have to work the wait condition into one of the other inputs. See
https://github.com/pulumi/pulumi/issues/2545