vault.tokenauth.AuthBackendRole
Explore with Pulumi AI
Manages Token auth backend role in a Vault server. See the Vault documentation for more information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const example = new vault.tokenauth.AuthBackendRole("example", {
    roleName: "my-role",
    allowedPolicies: [
        "dev",
        "test",
    ],
    disallowedPolicies: ["default"],
    allowedEntityAliases: ["test_entity"],
    orphan: true,
    tokenPeriod: 86400,
    renewable: true,
    tokenExplicitMaxTtl: 115200,
    pathSuffix: "path-suffix",
});
import pulumi
import pulumi_vault as vault
example = vault.tokenauth.AuthBackendRole("example",
    role_name="my-role",
    allowed_policies=[
        "dev",
        "test",
    ],
    disallowed_policies=["default"],
    allowed_entity_aliases=["test_entity"],
    orphan=True,
    token_period=86400,
    renewable=True,
    token_explicit_max_ttl=115200,
    path_suffix="path-suffix")
package main
import (
	"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/tokenauth"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tokenauth.NewAuthBackendRole(ctx, "example", &tokenauth.AuthBackendRoleArgs{
			RoleName: pulumi.String("my-role"),
			AllowedPolicies: pulumi.StringArray{
				pulumi.String("dev"),
				pulumi.String("test"),
			},
			DisallowedPolicies: pulumi.StringArray{
				pulumi.String("default"),
			},
			AllowedEntityAliases: pulumi.StringArray{
				pulumi.String("test_entity"),
			},
			Orphan:              pulumi.Bool(true),
			TokenPeriod:         pulumi.Int(86400),
			Renewable:           pulumi.Bool(true),
			TokenExplicitMaxTtl: pulumi.Int(115200),
			PathSuffix:          pulumi.String("path-suffix"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() => 
{
    var example = new Vault.TokenAuth.AuthBackendRole("example", new()
    {
        RoleName = "my-role",
        AllowedPolicies = new[]
        {
            "dev",
            "test",
        },
        DisallowedPolicies = new[]
        {
            "default",
        },
        AllowedEntityAliases = new[]
        {
            "test_entity",
        },
        Orphan = true,
        TokenPeriod = 86400,
        Renewable = true,
        TokenExplicitMaxTtl = 115200,
        PathSuffix = "path-suffix",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.tokenauth.AuthBackendRole;
import com.pulumi.vault.tokenauth.AuthBackendRoleArgs;
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 example = new AuthBackendRole("example", AuthBackendRoleArgs.builder()
            .roleName("my-role")
            .allowedPolicies(            
                "dev",
                "test")
            .disallowedPolicies("default")
            .allowedEntityAliases("test_entity")
            .orphan(true)
            .tokenPeriod(86400)
            .renewable(true)
            .tokenExplicitMaxTtl(115200)
            .pathSuffix("path-suffix")
            .build());
    }
}
resources:
  example:
    type: vault:tokenauth:AuthBackendRole
    properties:
      roleName: my-role
      allowedPolicies:
        - dev
        - test
      disallowedPolicies:
        - default
      allowedEntityAliases:
        - test_entity
      orphan: true
      tokenPeriod: '86400'
      renewable: true
      tokenExplicitMaxTtl: '115200'
      pathSuffix: path-suffix
Create AuthBackendRole Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AuthBackendRole(name: string, args: AuthBackendRoleArgs, opts?: CustomResourceOptions);@overload
def AuthBackendRole(resource_name: str,
                    args: AuthBackendRoleArgs,
                    opts: Optional[ResourceOptions] = None)
@overload
def AuthBackendRole(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    role_name: Optional[str] = None,
                    renewable: Optional[bool] = None,
                    token_explicit_max_ttl: Optional[int] = None,
                    disallowed_policies: Optional[Sequence[str]] = None,
                    disallowed_policies_globs: Optional[Sequence[str]] = None,
                    namespace: Optional[str] = None,
                    orphan: Optional[bool] = None,
                    path_suffix: Optional[str] = None,
                    allowed_entity_aliases: Optional[Sequence[str]] = None,
                    allowed_policies_globs: Optional[Sequence[str]] = None,
                    allowed_policies: Optional[Sequence[str]] = None,
                    token_bound_cidrs: Optional[Sequence[str]] = None,
                    token_max_ttl: Optional[int] = None,
                    token_no_default_policy: Optional[bool] = None,
                    token_num_uses: Optional[int] = None,
                    token_period: Optional[int] = None,
                    token_policies: Optional[Sequence[str]] = None,
                    token_ttl: Optional[int] = None,
                    token_type: Optional[str] = None)func NewAuthBackendRole(ctx *Context, name string, args AuthBackendRoleArgs, opts ...ResourceOption) (*AuthBackendRole, error)public AuthBackendRole(string name, AuthBackendRoleArgs args, CustomResourceOptions? opts = null)
public AuthBackendRole(String name, AuthBackendRoleArgs args)
public AuthBackendRole(String name, AuthBackendRoleArgs args, CustomResourceOptions options)
type: vault:tokenauth:AuthBackendRole
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AuthBackendRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AuthBackendRoleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AuthBackendRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthBackendRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AuthBackendRoleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleauthBackendRoleResourceResourceFromTokenauthauthBackendRole = new Vault.TokenAuth.AuthBackendRole("exampleauthBackendRoleResourceResourceFromTokenauthauthBackendRole", new()
{
    RoleName = "string",
    Renewable = false,
    TokenExplicitMaxTtl = 0,
    DisallowedPolicies = new[]
    {
        "string",
    },
    DisallowedPoliciesGlobs = new[]
    {
        "string",
    },
    Namespace = "string",
    Orphan = false,
    PathSuffix = "string",
    AllowedEntityAliases = new[]
    {
        "string",
    },
    AllowedPoliciesGlobs = new[]
    {
        "string",
    },
    AllowedPolicies = new[]
    {
        "string",
    },
    TokenBoundCidrs = new[]
    {
        "string",
    },
    TokenMaxTtl = 0,
    TokenNoDefaultPolicy = false,
    TokenNumUses = 0,
    TokenPeriod = 0,
    TokenPolicies = new[]
    {
        "string",
    },
    TokenTtl = 0,
    TokenType = "string",
});
example, err := tokenauth.NewAuthBackendRole(ctx, "exampleauthBackendRoleResourceResourceFromTokenauthauthBackendRole", &tokenauth.AuthBackendRoleArgs{
	RoleName:            pulumi.String("string"),
	Renewable:           pulumi.Bool(false),
	TokenExplicitMaxTtl: pulumi.Int(0),
	DisallowedPolicies: pulumi.StringArray{
		pulumi.String("string"),
	},
	DisallowedPoliciesGlobs: pulumi.StringArray{
		pulumi.String("string"),
	},
	Namespace:  pulumi.String("string"),
	Orphan:     pulumi.Bool(false),
	PathSuffix: pulumi.String("string"),
	AllowedEntityAliases: pulumi.StringArray{
		pulumi.String("string"),
	},
	AllowedPoliciesGlobs: pulumi.StringArray{
		pulumi.String("string"),
	},
	AllowedPolicies: pulumi.StringArray{
		pulumi.String("string"),
	},
	TokenBoundCidrs: pulumi.StringArray{
		pulumi.String("string"),
	},
	TokenMaxTtl:          pulumi.Int(0),
	TokenNoDefaultPolicy: pulumi.Bool(false),
	TokenNumUses:         pulumi.Int(0),
	TokenPeriod:          pulumi.Int(0),
	TokenPolicies: pulumi.StringArray{
		pulumi.String("string"),
	},
	TokenTtl:  pulumi.Int(0),
	TokenType: pulumi.String("string"),
})
var exampleauthBackendRoleResourceResourceFromTokenauthauthBackendRole = new com.pulumi.vault.tokenauth.AuthBackendRole("exampleauthBackendRoleResourceResourceFromTokenauthauthBackendRole", com.pulumi.vault.tokenauth.AuthBackendRoleArgs.builder()
    .roleName("string")
    .renewable(false)
    .tokenExplicitMaxTtl(0)
    .disallowedPolicies("string")
    .disallowedPoliciesGlobs("string")
    .namespace("string")
    .orphan(false)
    .pathSuffix("string")
    .allowedEntityAliases("string")
    .allowedPoliciesGlobs("string")
    .allowedPolicies("string")
    .tokenBoundCidrs("string")
    .tokenMaxTtl(0)
    .tokenNoDefaultPolicy(false)
    .tokenNumUses(0)
    .tokenPeriod(0)
    .tokenPolicies("string")
    .tokenTtl(0)
    .tokenType("string")
    .build());
exampleauth_backend_role_resource_resource_from_tokenauthauth_backend_role = vault.tokenauth.AuthBackendRole("exampleauthBackendRoleResourceResourceFromTokenauthauthBackendRole",
    role_name="string",
    renewable=False,
    token_explicit_max_ttl=0,
    disallowed_policies=["string"],
    disallowed_policies_globs=["string"],
    namespace="string",
    orphan=False,
    path_suffix="string",
    allowed_entity_aliases=["string"],
    allowed_policies_globs=["string"],
    allowed_policies=["string"],
    token_bound_cidrs=["string"],
    token_max_ttl=0,
    token_no_default_policy=False,
    token_num_uses=0,
    token_period=0,
    token_policies=["string"],
    token_ttl=0,
    token_type="string")
const exampleauthBackendRoleResourceResourceFromTokenauthauthBackendRole = new vault.tokenauth.AuthBackendRole("exampleauthBackendRoleResourceResourceFromTokenauthauthBackendRole", {
    roleName: "string",
    renewable: false,
    tokenExplicitMaxTtl: 0,
    disallowedPolicies: ["string"],
    disallowedPoliciesGlobs: ["string"],
    namespace: "string",
    orphan: false,
    pathSuffix: "string",
    allowedEntityAliases: ["string"],
    allowedPoliciesGlobs: ["string"],
    allowedPolicies: ["string"],
    tokenBoundCidrs: ["string"],
    tokenMaxTtl: 0,
    tokenNoDefaultPolicy: false,
    tokenNumUses: 0,
    tokenPeriod: 0,
    tokenPolicies: ["string"],
    tokenTtl: 0,
    tokenType: "string",
});
type: vault:tokenauth:AuthBackendRole
properties:
    allowedEntityAliases:
        - string
    allowedPolicies:
        - string
    allowedPoliciesGlobs:
        - string
    disallowedPolicies:
        - string
    disallowedPoliciesGlobs:
        - string
    namespace: string
    orphan: false
    pathSuffix: string
    renewable: false
    roleName: string
    tokenBoundCidrs:
        - string
    tokenExplicitMaxTtl: 0
    tokenMaxTtl: 0
    tokenNoDefaultPolicy: false
    tokenNumUses: 0
    tokenPeriod: 0
    tokenPolicies:
        - string
    tokenTtl: 0
    tokenType: string
AuthBackendRole Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AuthBackendRole resource accepts the following input properties:
- RoleName string
- The name of the role.
- AllowedEntity List<string>Aliases 
- List of allowed entity aliases.
- AllowedPolicies List<string>
- List of allowed policies for given role.
- AllowedPolicies List<string>Globs 
- Set of allowed policies with glob match for given role.
- DisallowedPolicies List<string>
- List of disallowed policies for given role.
- DisallowedPolicies List<string>Globs 
- Set of disallowed policies with glob match for given role.
- Namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- Orphan bool
- If true, tokens created against this policy will be orphan tokens.
- PathSuffix string
- Tokens created against this role will have the given suffix as part of their path in addition to the role name.
- Renewable bool
- Whether to disable the ability of the token to be renewed past its initial TTL.
- TokenBound List<string>Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- TokenExplicit intMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- TokenMax intTtl 
- The maximum lifetime of the generated token
- TokenNo boolDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- TokenNum intUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- TokenPeriod int
- Generated Token's Period
- TokenPolicies List<string>
- Generated Token's Policies
- TokenTtl int
- The initial ttl of the token to generate in seconds
- TokenType string
- The type of token to generate, service or batch
- RoleName string
- The name of the role.
- AllowedEntity []stringAliases 
- List of allowed entity aliases.
- AllowedPolicies []string
- List of allowed policies for given role.
- AllowedPolicies []stringGlobs 
- Set of allowed policies with glob match for given role.
- DisallowedPolicies []string
- List of disallowed policies for given role.
- DisallowedPolicies []stringGlobs 
- Set of disallowed policies with glob match for given role.
- Namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- Orphan bool
- If true, tokens created against this policy will be orphan tokens.
- PathSuffix string
- Tokens created against this role will have the given suffix as part of their path in addition to the role name.
- Renewable bool
- Whether to disable the ability of the token to be renewed past its initial TTL.
- TokenBound []stringCidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- TokenExplicit intMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- TokenMax intTtl 
- The maximum lifetime of the generated token
- TokenNo boolDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- TokenNum intUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- TokenPeriod int
- Generated Token's Period
- TokenPolicies []string
- Generated Token's Policies
- TokenTtl int
- The initial ttl of the token to generate in seconds
- TokenType string
- The type of token to generate, service or batch
- roleName String
- The name of the role.
- allowedEntity List<String>Aliases 
- List of allowed entity aliases.
- allowedPolicies List<String>
- List of allowed policies for given role.
- allowedPolicies List<String>Globs 
- Set of allowed policies with glob match for given role.
- disallowedPolicies List<String>
- List of disallowed policies for given role.
- disallowedPolicies List<String>Globs 
- Set of disallowed policies with glob match for given role.
- namespace String
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- orphan Boolean
- If true, tokens created against this policy will be orphan tokens.
- pathSuffix String
- Tokens created against this role will have the given suffix as part of their path in addition to the role name.
- renewable Boolean
- Whether to disable the ability of the token to be renewed past its initial TTL.
- tokenBound List<String>Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- tokenExplicit IntegerMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- tokenMax IntegerTtl 
- The maximum lifetime of the generated token
- tokenNo BooleanDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- tokenNum IntegerUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- tokenPeriod Integer
- Generated Token's Period
- tokenPolicies List<String>
- Generated Token's Policies
- tokenTtl Integer
- The initial ttl of the token to generate in seconds
- tokenType String
- The type of token to generate, service or batch
- roleName string
- The name of the role.
- allowedEntity string[]Aliases 
- List of allowed entity aliases.
- allowedPolicies string[]
- List of allowed policies for given role.
- allowedPolicies string[]Globs 
- Set of allowed policies with glob match for given role.
- disallowedPolicies string[]
- List of disallowed policies for given role.
- disallowedPolicies string[]Globs 
- Set of disallowed policies with glob match for given role.
- namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- orphan boolean
- If true, tokens created against this policy will be orphan tokens.
- pathSuffix string
- Tokens created against this role will have the given suffix as part of their path in addition to the role name.
- renewable boolean
- Whether to disable the ability of the token to be renewed past its initial TTL.
- tokenBound string[]Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- tokenExplicit numberMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- tokenMax numberTtl 
- The maximum lifetime of the generated token
- tokenNo booleanDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- tokenNum numberUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- tokenPeriod number
- Generated Token's Period
- tokenPolicies string[]
- Generated Token's Policies
- tokenTtl number
- The initial ttl of the token to generate in seconds
- tokenType string
- The type of token to generate, service or batch
- role_name str
- The name of the role.
- allowed_entity_ Sequence[str]aliases 
- List of allowed entity aliases.
- allowed_policies Sequence[str]
- List of allowed policies for given role.
- allowed_policies_ Sequence[str]globs 
- Set of allowed policies with glob match for given role.
- disallowed_policies Sequence[str]
- List of disallowed policies for given role.
- disallowed_policies_ Sequence[str]globs 
- Set of disallowed policies with glob match for given role.
- namespace str
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- orphan bool
- If true, tokens created against this policy will be orphan tokens.
- path_suffix str
- Tokens created against this role will have the given suffix as part of their path in addition to the role name.
- renewable bool
- Whether to disable the ability of the token to be renewed past its initial TTL.
- token_bound_ Sequence[str]cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- token_explicit_ intmax_ ttl 
- Generated Token's Explicit Maximum TTL in seconds
- token_max_ intttl 
- The maximum lifetime of the generated token
- token_no_ booldefault_ policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- token_num_ intuses 
- The maximum number of times a token may be used, a value of zero means unlimited
- token_period int
- Generated Token's Period
- token_policies Sequence[str]
- Generated Token's Policies
- token_ttl int
- The initial ttl of the token to generate in seconds
- token_type str
- The type of token to generate, service or batch
- roleName String
- The name of the role.
- allowedEntity List<String>Aliases 
- List of allowed entity aliases.
- allowedPolicies List<String>
- List of allowed policies for given role.
- allowedPolicies List<String>Globs 
- Set of allowed policies with glob match for given role.
- disallowedPolicies List<String>
- List of disallowed policies for given role.
- disallowedPolicies List<String>Globs 
- Set of disallowed policies with glob match for given role.
- namespace String
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- orphan Boolean
- If true, tokens created against this policy will be orphan tokens.
- pathSuffix String
- Tokens created against this role will have the given suffix as part of their path in addition to the role name.
- renewable Boolean
- Whether to disable the ability of the token to be renewed past its initial TTL.
- tokenBound List<String>Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- tokenExplicit NumberMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- tokenMax NumberTtl 
- The maximum lifetime of the generated token
- tokenNo BooleanDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- tokenNum NumberUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- tokenPeriod Number
- Generated Token's Period
- tokenPolicies List<String>
- Generated Token's Policies
- tokenTtl Number
- The initial ttl of the token to generate in seconds
- tokenType String
- The type of token to generate, service or batch
Outputs
All input properties are implicitly available as output properties. Additionally, the AuthBackendRole resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AuthBackendRole Resource
Get an existing AuthBackendRole resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AuthBackendRoleState, opts?: CustomResourceOptions): AuthBackendRole@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        allowed_entity_aliases: Optional[Sequence[str]] = None,
        allowed_policies: Optional[Sequence[str]] = None,
        allowed_policies_globs: Optional[Sequence[str]] = None,
        disallowed_policies: Optional[Sequence[str]] = None,
        disallowed_policies_globs: Optional[Sequence[str]] = None,
        namespace: Optional[str] = None,
        orphan: Optional[bool] = None,
        path_suffix: Optional[str] = None,
        renewable: Optional[bool] = None,
        role_name: Optional[str] = None,
        token_bound_cidrs: Optional[Sequence[str]] = None,
        token_explicit_max_ttl: Optional[int] = None,
        token_max_ttl: Optional[int] = None,
        token_no_default_policy: Optional[bool] = None,
        token_num_uses: Optional[int] = None,
        token_period: Optional[int] = None,
        token_policies: Optional[Sequence[str]] = None,
        token_ttl: Optional[int] = None,
        token_type: Optional[str] = None) -> AuthBackendRolefunc GetAuthBackendRole(ctx *Context, name string, id IDInput, state *AuthBackendRoleState, opts ...ResourceOption) (*AuthBackendRole, error)public static AuthBackendRole Get(string name, Input<string> id, AuthBackendRoleState? state, CustomResourceOptions? opts = null)public static AuthBackendRole get(String name, Output<String> id, AuthBackendRoleState state, CustomResourceOptions options)resources:  _:    type: vault:tokenauth:AuthBackendRole    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AllowedEntity List<string>Aliases 
- List of allowed entity aliases.
- AllowedPolicies List<string>
- List of allowed policies for given role.
- AllowedPolicies List<string>Globs 
- Set of allowed policies with glob match for given role.
- DisallowedPolicies List<string>
- List of disallowed policies for given role.
- DisallowedPolicies List<string>Globs 
- Set of disallowed policies with glob match for given role.
- Namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- Orphan bool
- If true, tokens created against this policy will be orphan tokens.
- PathSuffix string
- Tokens created against this role will have the given suffix as part of their path in addition to the role name.
- Renewable bool
- Whether to disable the ability of the token to be renewed past its initial TTL.
- RoleName string
- The name of the role.
- TokenBound List<string>Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- TokenExplicit intMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- TokenMax intTtl 
- The maximum lifetime of the generated token
- TokenNo boolDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- TokenNum intUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- TokenPeriod int
- Generated Token's Period
- TokenPolicies List<string>
- Generated Token's Policies
- TokenTtl int
- The initial ttl of the token to generate in seconds
- TokenType string
- The type of token to generate, service or batch
- AllowedEntity []stringAliases 
- List of allowed entity aliases.
- AllowedPolicies []string
- List of allowed policies for given role.
- AllowedPolicies []stringGlobs 
- Set of allowed policies with glob match for given role.
- DisallowedPolicies []string
- List of disallowed policies for given role.
- DisallowedPolicies []stringGlobs 
- Set of disallowed policies with glob match for given role.
- Namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- Orphan bool
- If true, tokens created against this policy will be orphan tokens.
- PathSuffix string
- Tokens created against this role will have the given suffix as part of their path in addition to the role name.
- Renewable bool
- Whether to disable the ability of the token to be renewed past its initial TTL.
- RoleName string
- The name of the role.
- TokenBound []stringCidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- TokenExplicit intMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- TokenMax intTtl 
- The maximum lifetime of the generated token
- TokenNo boolDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- TokenNum intUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- TokenPeriod int
- Generated Token's Period
- TokenPolicies []string
- Generated Token's Policies
- TokenTtl int
- The initial ttl of the token to generate in seconds
- TokenType string
- The type of token to generate, service or batch
- allowedEntity List<String>Aliases 
- List of allowed entity aliases.
- allowedPolicies List<String>
- List of allowed policies for given role.
- allowedPolicies List<String>Globs 
- Set of allowed policies with glob match for given role.
- disallowedPolicies List<String>
- List of disallowed policies for given role.
- disallowedPolicies List<String>Globs 
- Set of disallowed policies with glob match for given role.
- namespace String
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- orphan Boolean
- If true, tokens created against this policy will be orphan tokens.
- pathSuffix String
- Tokens created against this role will have the given suffix as part of their path in addition to the role name.
- renewable Boolean
- Whether to disable the ability of the token to be renewed past its initial TTL.
- roleName String
- The name of the role.
- tokenBound List<String>Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- tokenExplicit IntegerMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- tokenMax IntegerTtl 
- The maximum lifetime of the generated token
- tokenNo BooleanDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- tokenNum IntegerUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- tokenPeriod Integer
- Generated Token's Period
- tokenPolicies List<String>
- Generated Token's Policies
- tokenTtl Integer
- The initial ttl of the token to generate in seconds
- tokenType String
- The type of token to generate, service or batch
- allowedEntity string[]Aliases 
- List of allowed entity aliases.
- allowedPolicies string[]
- List of allowed policies for given role.
- allowedPolicies string[]Globs 
- Set of allowed policies with glob match for given role.
- disallowedPolicies string[]
- List of disallowed policies for given role.
- disallowedPolicies string[]Globs 
- Set of disallowed policies with glob match for given role.
- namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- orphan boolean
- If true, tokens created against this policy will be orphan tokens.
- pathSuffix string
- Tokens created against this role will have the given suffix as part of their path in addition to the role name.
- renewable boolean
- Whether to disable the ability of the token to be renewed past its initial TTL.
- roleName string
- The name of the role.
- tokenBound string[]Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- tokenExplicit numberMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- tokenMax numberTtl 
- The maximum lifetime of the generated token
- tokenNo booleanDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- tokenNum numberUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- tokenPeriod number
- Generated Token's Period
- tokenPolicies string[]
- Generated Token's Policies
- tokenTtl number
- The initial ttl of the token to generate in seconds
- tokenType string
- The type of token to generate, service or batch
- allowed_entity_ Sequence[str]aliases 
- List of allowed entity aliases.
- allowed_policies Sequence[str]
- List of allowed policies for given role.
- allowed_policies_ Sequence[str]globs 
- Set of allowed policies with glob match for given role.
- disallowed_policies Sequence[str]
- List of disallowed policies for given role.
- disallowed_policies_ Sequence[str]globs 
- Set of disallowed policies with glob match for given role.
- namespace str
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- orphan bool
- If true, tokens created against this policy will be orphan tokens.
- path_suffix str
- Tokens created against this role will have the given suffix as part of their path in addition to the role name.
- renewable bool
- Whether to disable the ability of the token to be renewed past its initial TTL.
- role_name str
- The name of the role.
- token_bound_ Sequence[str]cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- token_explicit_ intmax_ ttl 
- Generated Token's Explicit Maximum TTL in seconds
- token_max_ intttl 
- The maximum lifetime of the generated token
- token_no_ booldefault_ policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- token_num_ intuses 
- The maximum number of times a token may be used, a value of zero means unlimited
- token_period int
- Generated Token's Period
- token_policies Sequence[str]
- Generated Token's Policies
- token_ttl int
- The initial ttl of the token to generate in seconds
- token_type str
- The type of token to generate, service or batch
- allowedEntity List<String>Aliases 
- List of allowed entity aliases.
- allowedPolicies List<String>
- List of allowed policies for given role.
- allowedPolicies List<String>Globs 
- Set of allowed policies with glob match for given role.
- disallowedPolicies List<String>
- List of disallowed policies for given role.
- disallowedPolicies List<String>Globs 
- Set of disallowed policies with glob match for given role.
- namespace String
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- orphan Boolean
- If true, tokens created against this policy will be orphan tokens.
- pathSuffix String
- Tokens created against this role will have the given suffix as part of their path in addition to the role name.
- renewable Boolean
- Whether to disable the ability of the token to be renewed past its initial TTL.
- roleName String
- The name of the role.
- tokenBound List<String>Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- tokenExplicit NumberMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- tokenMax NumberTtl 
- The maximum lifetime of the generated token
- tokenNo BooleanDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- tokenNum NumberUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- tokenPeriod Number
- Generated Token's Period
- tokenPolicies List<String>
- Generated Token's Policies
- tokenTtl Number
- The initial ttl of the token to generate in seconds
- tokenType String
- The type of token to generate, service or batch
Import
Token auth backend roles can be imported with auth/token/roles/ followed by the role_name, e.g.
$ pulumi import vault:tokenauth/authBackendRole:AuthBackendRole example auth/token/roles/my-role
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Vault pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the vaultTerraform Provider.