pulumi/tests/testdata/codegen/kubernetes20/dotnet/Yaml/V2/ConfigGroup.cs

85 lines
3.2 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.Kubernetes.Yaml.V2
{
/// <summary>
/// A non-overlay component resource.
/// </summary>
[KubernetesResourceType("kubernetes:yaml/v2:ConfigGroup")]
public partial class ConfigGroup : global::Pulumi.ComponentResource
{
/// <summary>
/// Resources created by the ConfigGroup.
/// </summary>
[Output("resources")]
public Output<ImmutableArray<object>> Resources { get; private set; } = null!;
/// <summary>
/// Create a ConfigGroup 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 ConfigGroup(string name, Pulumi.Kubernetes.Types.Inputs.Yaml.V2.ConfigGroupArgs? args = null, ComponentResourceOptions? options = null)
: base("kubernetes:yaml/v2:ConfigGroup", name, args ?? new Pulumi.Kubernetes.Types.Inputs.Yaml.V2.ConfigGroupArgs(), 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;
}
}
}
namespace Pulumi.Kubernetes.Types.Inputs.Yaml.V2
{
public class ConfigGroupArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Set of paths or a URLs that uniquely identify files.
/// </summary>
[Input("files")]
public InputUnion<string, ImmutableArray<string>>? Files { get; set; }
/// <summary>
/// Objects representing Kubernetes resources.
/// </summary>
[Input("objs")]
public InputUnion<object, ImmutableArray<object>>? Objs { get; set; }
/// <summary>
/// An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName".
/// </summary>
[Input("resourcePrefix")]
public Input<string>? ResourcePrefix { get; set; }
/// <summary>
/// YAML text containing Kubernetes resource definitions.
/// </summary>
[Input("yaml")]
public InputUnion<string, ImmutableArray<string>>? Yaml { get; set; }
public ConfigGroupArgs()
{
}
public static new ConfigGroupArgs Empty => new ConfigGroupArgs();
}
}