EntityArgs

data class EntityArgs(val disabled: Output<Boolean>? = null, val externalPolicies: Output<Boolean>? = null, val metadata: Output<Map<String, String>>? = null, val name: Output<String>? = null, val namespace: Output<String>? = null, val policies: Output<List<String>>? = null) : ConvertibleToJava<EntityArgs>

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const test = new vault.identity.Entity("test", {
name: "tester1",
policies: ["test"],
metadata: {
foo: "bar",
},
});
import pulumi
import pulumi_vault as vault
test = vault.identity.Entity("test",
name="tester1",
policies=["test"],
metadata={
"foo": "bar",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var test = new Vault.Identity.Entity("test", new()
{
Name = "tester1",
Policies = new[]
{
"test",
},
Metadata =
{
{ "foo", "bar" },
},
});
});
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.NewEntity(ctx, "test", &identity.EntityArgs{
Name: pulumi.String("tester1"),
Policies: pulumi.StringArray{
pulumi.String("test"),
},
Metadata: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
})
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.Entity;
import com.pulumi.vault.identity.EntityArgs;
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 Entity("test", EntityArgs.builder()
.name("tester1")
.policies("test")
.metadata(Map.of("foo", "bar"))
.build());
}
}
resources:
test:
type: vault:identity:Entity
properties:
name: tester1
policies:
- test
metadata:
foo: bar

Import

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

$ pulumi import vault:identity/entity:Entity test "ae6f8ued-0f1a-9f6b-2915-1a2be20dc053"

Constructors

Link copied to clipboard
constructor(disabled: Output<Boolean>? = null, externalPolicies: Output<Boolean>? = null, metadata: Output<Map<String, String>>? = null, name: Output<String>? = null, namespace: Output<String>? = null, policies: Output<List<String>>? = null)

Properties

Link copied to clipboard
val disabled: Output<Boolean>? = null

True/false Is this entity currently disabled. Defaults to false

Link copied to clipboard
val externalPolicies: Output<Boolean>? = null

false by default. If set to true, this resource will ignore any policies return from Vault or specified in the resource. You can use vault.identity.EntityPolicies to manage policies for this entity in a decoupled manner.

Link copied to clipboard
val metadata: Output<Map<String, String>>? = null

A Map of additional metadata to associate with the user.

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

Name of the identity entity to create.

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 policies: Output<List<String>>? = null

A list of policies to apply to the entity.

Functions

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