This message was deleted.
# multi-language-hackathon
s
This message was deleted.
b
@white-balloon-205 do you have an answer here? I don't 😞
g
After taking a look at how the underlying cloudfront CustomResource works [1], it seems like pulumi.Input can wrap standard typescript types (eg.
<<http://pulumi.as>|pulumi.Input<string>
as> well as other nested types (eg.
Pulumi.Input<inputs.cloudfront.DistributionDefaultCacheBehavior>
where inputs.cloudfront.DistributionCacheBehavior is defined in the
./types/input
file: https://raw.githubusercontent.com/pulumi/pulumi-aws/master/sdk/nodejs/types/input.ts [1] https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/cloudfront/distribution.ts
Note: thanks @flaky-ghost-73674 for pointing out that types can be added to the
schema.json
, just like the "bucket" type is provided here: https://github.com/pulumi/pulumi-component-provider-ts-boilerplate/blob/048f04a8c021e951eeac47b193a1ae819343c4e7/schema.json#L17
@flaky-ghost-73674, having trouble finding the resource definitions for other resource types, any ideas? ie.
/aws/v4.0.0/schema.json#/resources/aws:s3%2Fbucket:Bucket
for cloudfront.Distribution
b
f
that particular one is awscloudfront/distributionDistribution
In the future, I’ve found it’s helpful to search with the type name you’re looking for (“Distribution”) with a
:
in front (e.g.
:Distribution
)
🙌 1
This is definitely an area we need to improve