com.pulumi.vault.identity.kotlin.EntityAliasArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-vault-kotlin Show documentation
Show all versions of pulumi-vault-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.vault.identity.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.identity.EntityAliasArgs.builder
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* ## Example Usage
*
* ```typescript
* 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",
* });
* ```
* ```python
* 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")
* ```
* ```csharp
* 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",
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* 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.
* ```sh
* $ pulumi import vault:identity/entityAlias:EntityAlias test "3856fb4d-3c91-dcaf-2401-68f446796bfb"
* ```
* @property canonicalId Entity ID to which this alias belongs to.
* @property customMetadata Custom metadata to be associated with this alias.
* @property mountAccessor Accessor of the mount to which the alias should belong to.
* @property name 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.
* @property namespace 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](https://www.terraform.io/docs/providers/vault/index.html#namespace).
* *Available only for Vault Enterprise*.
*/
public data class EntityAliasArgs(
public val canonicalId: Output? = null,
public val customMetadata: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy