Dynamic Provider question: looking for code exampl...
# typescript
m
Dynamic Provider question: looking for code examples of a dynamic provider where the Output has more properties than the Input, because I'm trying to debug why my CustomResource does not fully populate the Output after the resource already exists. Example:
Copy code
export interface WrappedInputs {
   name: pulumi.Input<string>
}
interface UnwrappedInputs {
   name: string
}
// note Output has more properties than Input
interface UnwrappedOutputs {
   name: string
   activation_code: string
}

class MyProvider implements pulumi.dynamic.ResourceProvider {
   async create(inputs: UnwrappedInput): Promise<pulumi.dynamic.CreateResult> {
      const newObject = ...assume call to external API here...
      return {
          id: newObject.id,
          outs: {
              name: newObject.name,
              activation_code: newObject.code