github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/enum-reference/dotnet/MyModule/IamResource.cs (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 using System; 5 using System.Collections.Generic; 6 using System.Collections.Immutable; 7 using System.Threading.Tasks; 8 using Pulumi.Serialization; 9 10 namespace Pulumi.Example.MyModule 11 { 12 [ExampleResourceType("example:myModule:IamResource")] 13 public partial class IamResource : global::Pulumi.ComponentResource 14 { 15 /// <summary> 16 /// Create a IamResource resource with the given unique name, arguments, and options. 17 /// </summary> 18 /// 19 /// <param name="name">The unique name of the resource</param> 20 /// <param name="args">The arguments used to populate this resource's properties</param> 21 /// <param name="options">A bag of options that control this resource's behavior</param> 22 public IamResource(string name, IamResourceArgs? args = null, ComponentResourceOptions? options = null) 23 : base("example:myModule:IamResource", name, args ?? new IamResourceArgs(), MakeResourceOptions(options, ""), remote: true) 24 { 25 } 26 27 private static ComponentResourceOptions MakeResourceOptions(ComponentResourceOptions? options, Input<string>? id) 28 { 29 var defaultOptions = new ComponentResourceOptions 30 { 31 Version = Utilities.Version, 32 }; 33 var merged = ComponentResourceOptions.Merge(defaultOptions, options); 34 // Override the ID if one was specified for consistency with other language SDKs. 35 merged.Id = id ?? merged.Id; 36 return merged; 37 } 38 } 39 40 public sealed class IamResourceArgs : global::Pulumi.ResourceArgs 41 { 42 [Input("config")] 43 public Input<Pulumi.GoogleNative.IAM.V1.Inputs.AuditConfigArgs>? Config { get; set; } 44 45 public IamResourceArgs() 46 { 47 } 48 public static new IamResourceArgs Empty => new IamResourceArgs(); 49 } 50 }