pulumi/tests/testdata/codegen/enum-reference/dotnet/MyModule/IamResource.cs

51 lines
2.0 KiB
C#

// *** WARNING: this file was generated by test. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.Example.MyModule
{
[ExampleResourceType("example:myModule:IamResource")]
public partial class IamResource : global::Pulumi.ComponentResource
{
/// <summary>
/// Create a IamResource resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public IamResource(string name, IamResourceArgs? args = null, ComponentResourceOptions? options = null)
: base("example:myModule:IamResource", name, args ?? new IamResourceArgs(), MakeResourceOptions(options, ""), remote: true)
{
}
private static ComponentResourceOptions MakeResourceOptions(ComponentResourceOptions? options, Input<string>? id)
{
var defaultOptions = new ComponentResourceOptions
{
Version = Utilities.Version,
};
var merged = ComponentResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
}
public sealed class IamResourceArgs : global::Pulumi.ResourceArgs
{
[Input("config")]
public Input<Pulumi.GoogleNative.IAM.V1.Inputs.AuditConfigArgs>? Config { get; set; }
public IamResourceArgs()
{
}
public static new IamResourceArgs Empty => new IamResourceArgs();
}
}