Show / Hide Table of Contents

Class GroupPolicies

Manages policies for an Identity Group 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 @internal = new Vault.Identity.Group("internal", new Vault.Identity.GroupArgs
    {
        Type = "internal",
        ExternalPolicies = true,
        Metadata = 
        {
            { "version", "2" },
        },
    });
    var policies = new Vault.Identity.GroupPolicies("policies", new Vault.Identity.GroupPoliciesArgs
    {
        Policies = 
        {
            "default",
            "test",
        },
        Exclusive = true,
        GroupId = @internal.Id,
    });
}

}

Non-exclusive Policies

using Pulumi;
using Vault = Pulumi.Vault;

class MyStack : Stack
{
public MyStack()
{
    var @internal = new Vault.Identity.Group("internal", new Vault.Identity.GroupArgs
    {
        Type = "internal",
        ExternalPolicies = true,
        Metadata = 
        {
            { "version", "2" },
        },
    });
    var @default = new Vault.Identity.GroupPolicies("default", new Vault.Identity.GroupPoliciesArgs
    {
        Policies = 
        {
            "default",
            "test",
        },
        Exclusive = false,
        GroupId = @internal.Id,
    });
    var others = new Vault.Identity.GroupPolicies("others", new Vault.Identity.GroupPoliciesArgs
    {
        Policies = 
        {
            "others",
        },
        Exclusive = false,
        GroupId = @internal.Id,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
GroupPolicies
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Vault.Identity
Assembly: Pulumi.Vault.dll
Syntax
public class GroupPolicies : CustomResource

Constructors

View Source

GroupPolicies(String, GroupPoliciesArgs, CustomResourceOptions)

Create a GroupPolicies resource with the given unique name, arguments, and options.

Declaration
public GroupPolicies(string name, GroupPoliciesArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

GroupPoliciesArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Exclusive

Defaults to true.

Declaration
public Output<bool?> Exclusive { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

GroupId

Group ID to assign policies to.

Declaration
public Output<string> GroupId { get; }
Property Value
Type Description
Output<System.String>
View Source

GroupName

The name of the group that are assigned the policies.

Declaration
public Output<string> GroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

Policies

List of policies to assign to the group

Declaration
public Output<ImmutableArray<string>> Policies { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>

Methods

View Source

Get(String, Input<String>, GroupPoliciesState, CustomResourceOptions)

Get an existing GroupPolicies resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static GroupPolicies Get(string name, Input<string> id, GroupPoliciesState 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.

GroupPoliciesState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
GroupPolicies
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.