millions-river-14466
10/28/2024, 7:22 PMexport 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