github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/plain-object-disable-defaults/nodejs/provider.ts (about) 1 // *** WARNING: this file was generated by test. *** 2 // *** Do not edit by hand unless you're certain you know what you are doing! *** 3 4 import * as pulumi from "@pulumi/pulumi"; 5 import * as inputs from "./types/input"; 6 import * as outputs from "./types/output"; 7 import * as utilities from "./utilities"; 8 9 /** 10 * The provider type for the kubernetes package. 11 */ 12 export class Provider extends pulumi.ProviderResource { 13 /** @internal */ 14 public static readonly __pulumiType = 'example'; 15 16 /** 17 * Returns true if the given object is an instance of Provider. This is designed to work even 18 * when multiple copies of the Pulumi SDK have been loaded into the same process. 19 */ 20 public static isInstance(obj: any): obj is Provider { 21 if (obj === undefined || obj === null) { 22 return false; 23 } 24 return obj['__pulumiType'] === Provider.__pulumiType; 25 } 26 27 28 /** 29 * Create a Provider resource with the given unique name, arguments, and options. 30 * 31 * @param name The _unique_ name of the resource. 32 * @param args The arguments to use to populate this resource's properties. 33 * @param opts A bag of options that control this resource's behavior. 34 */ 35 constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions) { 36 let resourceInputs: pulumi.Inputs = {}; 37 opts = opts || {}; 38 { 39 resourceInputs["helmReleaseSettings"] = pulumi.output(args ? (args.helmReleaseSettings ? pulumi.output(args.helmReleaseSettings).apply(inputs.helmReleaseSettingsArgsProvideDefaults) : undefined) : undefined).apply(JSON.stringify); 40 } 41 opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); 42 super(Provider.__pulumiType, name, resourceInputs, opts); 43 } 44 } 45 46 /** 47 * The set of arguments for constructing a Provider resource. 48 */ 49 export interface ProviderArgs { 50 /** 51 * BETA FEATURE - Options to configure the Helm Release resource. 52 */ 53 helmReleaseSettings?: pulumi.Input<inputs.HelmReleaseSettingsArgs>; 54 }