https://pulumi.com logo
#python
Title
# python
a

able-doctor-68496

09/30/2021, 5:19 PM
For example, currently I’m passing a Kubernetes namespace to a “parent”
ComponentResource
that I’ve created. I’m passing it like so:
Copy code
def __init__(..., namespace: Namespace, ...):
  super().__init__(
    ...,
    props={'namespace': namespace},
    ...
  )
Is that the correct way to use
props
? My thinking was that this would let the Pulumi “engine” know that there is an ordering requirement between the namespace and my
ComponentResource
. Is that how it works? If not, then what are
props
for?