github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/enum-reference/nodejs/mymodule/iamResource.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 utilities from "../utilities"; 6 7 import * as pulumiGoogleNative from "@pulumi/google-native"; 8 9 export class IamResource extends pulumi.ComponentResource { 10 /** @internal */ 11 public static readonly __pulumiType = 'example:myModule:IamResource'; 12 13 /** 14 * Returns true if the given object is an instance of IamResource. This is designed to work even 15 * when multiple copies of the Pulumi SDK have been loaded into the same process. 16 */ 17 public static isInstance(obj: any): obj is IamResource { 18 if (obj === undefined || obj === null) { 19 return false; 20 } 21 return obj['__pulumiType'] === IamResource.__pulumiType; 22 } 23 24 25 /** 26 * Create a IamResource resource with the given unique name, arguments, and options. 27 * 28 * @param name The _unique_ name of the resource. 29 * @param args The arguments to use to populate this resource's properties. 30 * @param opts A bag of options that control this resource's behavior. 31 */ 32 constructor(name: string, args?: IamResourceArgs, opts?: pulumi.ComponentResourceOptions) { 33 let resourceInputs: pulumi.Inputs = {}; 34 opts = opts || {}; 35 if (!opts.id) { 36 resourceInputs["config"] = args ? args.config : undefined; 37 } else { 38 } 39 opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); 40 super(IamResource.__pulumiType, name, resourceInputs, opts, true /*remote*/); 41 } 42 } 43 44 /** 45 * The set of arguments for constructing a IamResource resource. 46 */ 47 export interface IamResourceArgs { 48 config?: pulumi.Input<pulumiGoogleNative.types.input.iam.v1.AuditConfigArgs>; 49 }