EntityAlias

class EntityAlias : KotlinCustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const test = new vault.identity.EntityAlias("test", {
name: "user_1",
mountAccessor: "token_1f2bd5",
canonicalId: "49877D63-07AD-4B85-BDA8-B61626C477E8",
});
import pulumi
import pulumi_vault as vault
test = vault.identity.EntityAlias("test",
name="user_1",
mount_accessor="token_1f2bd5",
canonical_id="49877D63-07AD-4B85-BDA8-B61626C477E8")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var test = new Vault.Identity.EntityAlias("test", new()
{
Name = "user_1",
MountAccessor = "token_1f2bd5",
CanonicalId = "49877D63-07AD-4B85-BDA8-B61626C477E8",
});
});
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/identity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := identity.NewEntityAlias(ctx, "test", &identity.EntityAliasArgs{
Name: pulumi.String("user_1"),
MountAccessor: pulumi.String("token_1f2bd5"),
CanonicalId: pulumi.String("49877D63-07AD-4B85-BDA8-B61626C477E8"),
})
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.identity.EntityAlias;
import com.pulumi.vault.identity.EntityAliasArgs;
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 test = new EntityAlias("test", EntityAliasArgs.builder()
.name("user_1")
.mountAccessor("token_1f2bd5")
.canonicalId("49877D63-07AD-4B85-BDA8-B61626C477E8")
.build());
}
}
resources:
test:
type: vault:identity:EntityAlias
properties:
name: user_1
mountAccessor: token_1f2bd5
canonicalId: 49877D63-07AD-4B85-BDA8-B61626C477E8

Import

Identity entity alias can be imported using the id, e.g.

$ pulumi import vault:identity/entityAlias:EntityAlias test "3856fb4d-3c91-dcaf-2401-68f446796bfb"

Properties

Link copied to clipboard
val canonicalId: Output<String>

Entity ID to which this alias belongs to.

Link copied to clipboard

Custom metadata to be associated with this alias.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val mountAccessor: Output<String>

Accessor of the mount to which the alias should belong to.

Link copied to clipboard
val name: Output<String>

Name of the alias. Name should be the identifier of the client in the authentication source. For example, if the alias belongs to userpass backend, the name should be a valid username within userpass backend. If alias belongs to GitHub, it should be the GitHub username.

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

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>