Class EntityPolicies
Manages policies for an Identity Entity for Vault. The Identity secrets engine is the identity management solution for Vault.
Example Usage
Exclusive Policies
using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var entity = new Vault.Identity.Entity("entity", new Vault.Identity.EntityArgs
{
ExternalPolicies = true,
});
var policies = new Vault.Identity.EntityPolicies("policies", new Vault.Identity.EntityPoliciesArgs
{
Policies =
{
"default",
"test",
},
Exclusive = true,
EntityId = entity.Id,
});
}
}
Non-exclusive Policies
using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var entity = new Vault.Identity.Entity("entity", new Vault.Identity.EntityArgs
{
ExternalPolicies = true,
});
var @default = new Vault.Identity.EntityPolicies("default", new Vault.Identity.EntityPoliciesArgs
{
Policies =
{
"default",
"test",
},
Exclusive = false,
EntityId = entity.Id,
});
var others = new Vault.Identity.EntityPolicies("others", new Vault.Identity.EntityPoliciesArgs
{
Policies =
{
"others",
},
Exclusive = false,
EntityId = entity.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Vault.Identity
Assembly: Pulumi.Vault.dll
Syntax
public class EntityPolicies : CustomResource
Constructors
View SourceEntityPolicies(String, EntityPoliciesArgs, CustomResourceOptions)
Create a EntityPolicies resource with the given unique name, arguments, and options.
Declaration
public EntityPolicies(string name, EntityPoliciesArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| EntityPoliciesArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceEntityId
Entity ID to assign policies to.
Declaration
public Output<string> EntityId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
EntityName
The name of the entity that are assigned the policies.
Declaration
public Output<string> EntityName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Exclusive
Defaults to true.
Declaration
public Output<bool?> Exclusive { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Policies
List of policies to assign to the entity
Declaration
public Output<ImmutableArray<string>> Policies { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Methods
View SourceGet(String, Input<String>, EntityPoliciesState, CustomResourceOptions)
Get an existing EntityPolicies resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static EntityPolicies Get(string name, Input<string> id, EntityPoliciesState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| EntityPoliciesState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| EntityPolicies |