df5273e549
Running `pulumi query` over state resources will require the ability to filter resources by type. This commit begins the process of making this possible simply, using the TypeScript user-defined type guards feature. This commit changes the `CustomResource` constructor to record the `t` argument in the `__pulumiType` field, which acts as a "sentinel" value in the resource base, which deriving classes need only check to ensure they are of that type. For example: aws.s3.Bucket.isInstance(someOb) would check the `aws.s3.Bucket.__pulumiType` field, and make sure that the type field lines up. |
||
---|---|---|
.. | ||
pulumi | ||
test | ||
MANIFEST.in | ||
setup.py |