// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** 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; using Pulumi; namespace Maxvojtkov.Dokploy { [DokployResourceType("dokploy:index/security:Security")] public partial class Security : global::Pulumi.CustomResource { /// /// Application these credentials protect. /// [Output("applicationId")] public Output ApplicationId { get; private set; } = null!; /// /// RFC 3339 timestamp of when the credentials were created. /// [Output("createdAt")] public Output CreatedAt { get; private set; } = null!; /// /// Basic auth password. /// [Output("password")] public Output Password { get; private set; } = null!; /// /// Basic auth username. /// [Output("username")] public Output Username { get; private set; } = null!; /// /// Create a Security resource with the given unique name, arguments, and options. /// /// /// The unique name of the resource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Security(string name, SecurityArgs args, CustomResourceOptions? options = null) : base("dokploy:index/security:Security", name, args ?? new SecurityArgs(), MakeResourceOptions(options, "")) { } private Security(string name, Input id, SecurityState? state = null, CustomResourceOptions? options = null) : base("dokploy:index/security:Security", name, state, MakeResourceOptions(options, id)) { } private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, PluginDownloadURL = "github://api.github.com/maxvojtkov/pulumi-dokploy", AdditionalSecretOutputs = { "password", }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return merged; } /// /// Get an existing Security resource's state with the given name, ID, and optional extra /// properties used to qualify the lookup. /// /// /// The unique name of the resulting resource. /// The unique provider ID of the resource to lookup. /// Any extra arguments used during the lookup. /// A bag of options that control this resource's behavior public static Security Get(string name, Input id, SecurityState? state = null, CustomResourceOptions? options = null) { return new Security(name, id, state, options); } } public sealed class SecurityArgs : global::Pulumi.ResourceArgs { /// /// Application these credentials protect. /// [Input("applicationId", required: true)] public Input ApplicationId { get; set; } = null!; [Input("password", required: true)] private Input? _password; /// /// Basic auth password. /// public Input? Password { get => _password; set { var emptySecret = Output.CreateSecret(0); _password = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); } } /// /// Basic auth username. /// [Input("username", required: true)] public Input Username { get; set; } = null!; public SecurityArgs() { } public static new SecurityArgs Empty => new SecurityArgs(); } public sealed class SecurityState : global::Pulumi.ResourceArgs { /// /// Application these credentials protect. /// [Input("applicationId")] public Input? ApplicationId { get; set; } /// /// RFC 3339 timestamp of when the credentials were created. /// [Input("createdAt")] public Input? CreatedAt { get; set; } [Input("password")] private Input? _password; /// /// Basic auth password. /// public Input? Password { get => _password; set { var emptySecret = Output.CreateSecret(0); _password = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); } } /// /// Basic auth username. /// [Input("username")] public Input? Username { get; set; } public SecurityState() { } public static new SecurityState Empty => new SecurityState(); } }