<reponame>pierskarsenbarg/pulumi-sdm<filename>sdk/dotnet/Config/Config.cs<gh_stars>0// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Immutable;

namespace PiersKarsenbarg.Sdm
{
    public static class Config
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "IDE1006", Justification = 
        "Double underscore prefix used to avoid conflicts with variable names.")]
        private sealed class __Value<T>
        {
            private readonly Func<T> _getter;
            private T _value = default!;
            private bool _set;

            public __Value(Func<T> getter)
            {
                _getter = getter;
            }

            public T Get() => _set ? _value : _getter();

            public void Set(T value)
            {
                _value = value;
                _set = true;
            }
        }

        private static readonly global::Pulumi.Config __config = new global::Pulumi.Config("sdm");

        private static readonly __Value<string?> _apiAccessKey = new __Value<string?>(() => __config.Get("apiAccessKey"));
        /// <summary>
        /// A GUID identifying the API key used to authenticate with the StrongDM API.
        /// </summary>
        public static string? ApiAccessKey
        {
            get => _apiAccessKey.Get();
            set => _apiAccessKey.Set(value);
        }

        private static readonly __Value<string?> _apiSecretKey = new __Value<string?>(() => __config.Get("apiSecretKey"));
        /// <summary>
        /// A base64 encoded secret key used to authenticate with the StrongDM API.
        /// </summary>
        public static string? ApiSecretKey
        {
            get => _apiSecretKey.Get();
            set => _apiSecretKey.Set(value);
        }

        private static readonly __Value<string?> _host = new __Value<string?>(() => __config.Get("host"));
        /// <summary>
        /// The host and port of the StrongDM API endpoint.
        /// </summary>
        public static string? Host
        {
            get => _host.Get();
            set => _host.Set(value);
        }

        private static readonly __Value<bool?> _retryRateLimitErrors = new __Value<bool?>(() => __config.GetBoolean("retryRateLimitErrors"));
        /// <summary>
        /// Whether experienced rate limits should cause the client to sleep instead of erroring out
        /// </summary>
        public static bool? RetryRateLimitErrors
        {
            get => _retryRateLimitErrors.Get();
            set => _retryRateLimitErrors.Set(value);
        }

    }
}
