AuthBackendConfigArgs

data class AuthBackendConfigArgs(val backend: Output<String>? = null, val clientId: Output<String>? = null, val clientSecret: Output<String>? = null, val environment: Output<String>? = null, val namespace: Output<String>? = null, val resource: Output<String>? = null, val tenantId: Output<String>? = null) : ConvertibleToJava<AuthBackendConfigArgs>

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const example = new vault.AuthBackend("example", {type: "azure"});
const exampleAuthBackendConfig = new vault.azure.AuthBackendConfig("example", {
backend: example.path,
tenantId: "11111111-2222-3333-4444-555555555555",
clientId: "11111111-2222-3333-4444-555555555555",
clientSecret: "01234567890123456789",
resource: "https://vault.hashicorp.com",
});
import pulumi
import pulumi_vault as vault
example = vault.AuthBackend("example", type="azure")
example_auth_backend_config = vault.azure.AuthBackendConfig("example",
backend=example.path,
tenant_id="11111111-2222-3333-4444-555555555555",
client_id="11111111-2222-3333-4444-555555555555",
client_secret="01234567890123456789",
resource="https://vault.hashicorp.com")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var example = new Vault.AuthBackend("example", new()
{
Type = "azure",
});
var exampleAuthBackendConfig = new Vault.Azure.AuthBackendConfig("example", new()
{
Backend = example.Path,
TenantId = "11111111-2222-3333-4444-555555555555",
ClientId = "11111111-2222-3333-4444-555555555555",
ClientSecret = "01234567890123456789",
Resource = "https://vault.hashicorp.com",
});
});
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault"
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/azure"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := vault.NewAuthBackend(ctx, "example", &vault.AuthBackendArgs{
Type: pulumi.String("azure"),
})
if err != nil {
return err
}
_, err = azure.NewAuthBackendConfig(ctx, "example", &azure.AuthBackendConfigArgs{
Backend: example.Path,
TenantId: pulumi.String("11111111-2222-3333-4444-555555555555"),
ClientId: pulumi.String("11111111-2222-3333-4444-555555555555"),
ClientSecret: pulumi.String("01234567890123456789"),
Resource: pulumi.String("https://vault.hashicorp.com"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.AuthBackend;
import com.pulumi.vault.AuthBackendArgs;
import com.pulumi.vault.azure.AuthBackendConfig;
import com.pulumi.vault.azure.AuthBackendConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new AuthBackend("example", AuthBackendArgs.builder()
.type("azure")
.build());
var exampleAuthBackendConfig = new AuthBackendConfig("exampleAuthBackendConfig", AuthBackendConfigArgs.builder()
.backend(example.path())
.tenantId("11111111-2222-3333-4444-555555555555")
.clientId("11111111-2222-3333-4444-555555555555")
.clientSecret("01234567890123456789")
.resource("https://vault.hashicorp.com")
.build());
}
}
resources:
example:
type: vault:AuthBackend
properties:
type: azure
exampleAuthBackendConfig:
type: vault:azure:AuthBackendConfig
name: example
properties:
backend: ${example.path}
tenantId: 11111111-2222-3333-4444-555555555555
clientId: 11111111-2222-3333-4444-555555555555
clientSecret: '01234567890123456789'
resource: https://vault.hashicorp.com

Import

Azure auth backends can be imported using auth/, the backend path, and /config e.g.

$ pulumi import vault:azure/authBackendConfig:AuthBackendConfig example auth/azure/config

Constructors

Link copied to clipboard
constructor(backend: Output<String>? = null, clientId: Output<String>? = null, clientSecret: Output<String>? = null, environment: Output<String>? = null, namespace: Output<String>? = null, resource: Output<String>? = null, tenantId: Output<String>? = null)

Properties

Link copied to clipboard
val backend: Output<String>? = null

The path the Azure auth backend being configured was mounted at. Defaults to azure.

Link copied to clipboard
val clientId: Output<String>? = null

The client id for credentials to query the Azure APIs. Currently read permissions to query compute resources are required.

Link copied to clipboard
val clientSecret: Output<String>? = null

The client secret for credentials to query the Azure APIs.

Link copied to clipboard
val environment: Output<String>? = null

The Azure cloud environment. Valid values: AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud. Defaults to AzurePublicCloud.

Link copied to clipboard
val namespace: Output<String>? = null

The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.

Link copied to clipboard
val resource: Output<String>? = null

The configured URL for the application registered in Azure Active Directory.

Link copied to clipboard
val tenantId: Output<String>? = null

The tenant id for the Azure Active Directory organization.

Functions

Link copied to clipboard
open override fun toJava(): AuthBackendConfigArgs