/// <summary> /// > This content is derived from https://github.com/terraform-providers/terraform-provider-vault/blob/master/website/docs/d/generic_secret.html.markdown. /// </summary> public static Task <GetSecretResult> GetSecret(GetSecretArgs args, InvokeOptions?options = null) => Pulumi.Deployment.Instance.InvokeAsync <GetSecretResult>("vault:generic/getSecret:getSecret", args ?? InvokeArgs.Empty, options.WithVersion());
/// <summary> /// {{% examples %}} /// ## Example Usage /// {{% example %}} /// /// ```csharp /// using Pulumi; /// using Vault = Pulumi.Vault; /// /// class MyStack : Stack /// { /// public MyStack() /// { /// var rundeckAuth = Output.Create(Vault.Generic.GetSecret.InvokeAsync(new Vault.Generic.GetSecretArgs /// { /// Path = "secret/rundeck_auth", /// })); /// } /// /// } /// ``` /// {{% /example %}} /// {{% /examples %}} /// ## Required Vault Capabilities /// /// Use of this resource requires the `read` capability on the given path. /// </summary> public static Task <GetSecretResult> InvokeAsync(GetSecretArgs args, InvokeOptions?options = null) => Pulumi.Deployment.Instance.InvokeAsync <GetSecretResult>("vault:generic/getSecret:getSecret", args ?? new GetSecretArgs(), options.WithDefaults());