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
using System.Collections.Generic;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var example = new Vault.TokenAuth.AuthBackendRole("example", new()
{
AllowedEntityAliases = new[]
{
"test_entity",
},
AllowedPolicies = new[]
{
"dev",
"test",
},
DisallowedPolicies = new[]
{
"default",
},
Orphan = true,
PathSuffix = "path-suffix",
Renewable = true,
RoleName = "my-role",
TokenExplicitMaxTtl = 115200,
TokenPeriod = 86400,
});
});
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v5/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{
AllowedEntityAliases: pulumi.StringArray{
pulumi.String("test_entity"),
},
AllowedPolicies: pulumi.StringArray{
pulumi.String("dev"),
pulumi.String("test"),
},
DisallowedPolicies: pulumi.StringArray{
pulumi.String("default"),
},
Orphan: pulumi.Bool(true),
PathSuffix: pulumi.String("path-suffix"),
Renewable: pulumi.Bool(true),
RoleName: pulumi.String("my-role"),
TokenExplicitMaxTtl: pulumi.Int(115200),
TokenPeriod: pulumi.Int(86400),
})
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.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()
.allowedEntityAliases("test_entity")
.allowedPolicies(
"dev",
"test")
.disallowedPolicies("default")
.orphan(true)
.pathSuffix("path-suffix")
.renewable(true)
.roleName("my-role")
.tokenExplicitMaxTtl("115200")
.tokenPeriod("86400")
.build());
}
}
import pulumi
import pulumi_vault as vault
example = vault.tokenauth.AuthBackendRole("example",
allowed_entity_aliases=["test_entity"],
allowed_policies=[
"dev",
"test",
],
disallowed_policies=["default"],
orphan=True,
path_suffix="path-suffix",
renewable=True,
role_name="my-role",
token_explicit_max_ttl=115200,
token_period=86400)
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const example = new vault.tokenauth.AuthBackendRole("example", {
allowedEntityAliases: ["test_entity"],
allowedPolicies: [
"dev",
"test",
],
disallowedPolicies: ["default"],
orphan: true,
pathSuffix: "path-suffix",
renewable: true,
roleName: "my-role",
tokenExplicitMaxTtl: 115200,
tokenPeriod: 86400,
});
resources:
example:
type: vault:tokenauth:AuthBackendRole
properties:
allowedEntityAliases:
- test_entity
allowedPolicies:
- dev
- test
disallowedPolicies:
- default
orphan: true
pathSuffix: path-suffix
renewable: true
roleName: my-role
tokenExplicitMaxTtl: 115200
tokenPeriod: 86400
Create AuthBackendRole Resource
new AuthBackendRole(name: string, args: AuthBackendRoleArgs, opts?: CustomResourceOptions);
@overload
def AuthBackendRole(resource_name: 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)
@overload
def AuthBackendRole(resource_name: str,
args: AuthBackendRoleArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
The AuthBackendRole resource accepts the following input properties:
- Role
Name string The name of the role.
- Allowed
Entity List<string>Aliases List of allowed entity aliases.
- Allowed
Policies List<string> List of allowed policies for given role.
- Allowed
Policies List<string>Globs Set of allowed policies with glob match for given role.
- Disallowed
Policies List<string> List of disallowed policies for given role.
- Disallowed
Policies 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
namespace
is 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 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.
- Token
Bound List<string>Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- Token
Explicit intMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttl
andtoken_max_ttl
would otherwise allow a renewal.- Token
Max intTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
No boolDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- Token
Num intUses The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
- Token
Period int If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token's TTL will be set to the value of this field. Specified in seconds.
- Token
Policies List<string> Generated Token's Policies
- Token
Ttl int The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
Type string The type of token that should be generated. Can be
service
,batch
, ordefault
to use the mount's tuned default (which unless changed will beservice
tokens). For token store roles, there are two additional possibilities:default-service
anddefault-batch
which specify the type to return unless the client requests a different type at generation time.
- Role
Name string The name of the role.
- Allowed
Entity []stringAliases List of allowed entity aliases.
- Allowed
Policies []string List of allowed policies for given role.
- Allowed
Policies []stringGlobs Set of allowed policies with glob match for given role.
- Disallowed
Policies []string List of disallowed policies for given role.
- Disallowed
Policies []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
namespace
is 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 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.
- Token
Bound []stringCidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- Token
Explicit intMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttl
andtoken_max_ttl
would otherwise allow a renewal.- Token
Max intTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
No boolDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- Token
Num intUses The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
- Token
Period int If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token's TTL will be set to the value of this field. Specified in seconds.
- Token
Policies []string Generated Token's Policies
- Token
Ttl int The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
Type string The type of token that should be generated. Can be
service
,batch
, ordefault
to use the mount's tuned default (which unless changed will beservice
tokens). For token store roles, there are two additional possibilities:default-service
anddefault-batch
which specify the type to return unless the client requests a different type at generation time.
- role
Name String The name of the role.
- allowed
Entity List<String>Aliases List of allowed entity aliases.
- allowed
Policies List<String> List of allowed policies for given role.
- allowed
Policies List<String>Globs Set of allowed policies with glob match for given role.
- disallowed
Policies List<String> List of disallowed policies for given role.
- disallowed
Policies 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
namespace
is 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.
- path
Suffix 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.
- token
Bound List<String>Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token
Explicit IntegerMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttl
andtoken_max_ttl
would otherwise allow a renewal.- token
Max IntegerTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
No BooleanDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token
Num IntegerUses The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
- token
Period Integer If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token's TTL will be set to the value of this field. Specified in seconds.
- token
Policies List<String> Generated Token's Policies
- token
Ttl Integer The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
Type String The type of token that should be generated. Can be
service
,batch
, ordefault
to use the mount's tuned default (which unless changed will beservice
tokens). For token store roles, there are two additional possibilities:default-service
anddefault-batch
which specify the type to return unless the client requests a different type at generation time.
- role
Name string The name of the role.
- allowed
Entity string[]Aliases List of allowed entity aliases.
- allowed
Policies string[] List of allowed policies for given role.
- allowed
Policies string[]Globs Set of allowed policies with glob match for given role.
- disallowed
Policies string[] List of disallowed policies for given role.
- disallowed
Policies 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
namespace
is 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.
- path
Suffix 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.
- token
Bound string[]Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token
Explicit numberMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttl
andtoken_max_ttl
would otherwise allow a renewal.- token
Max numberTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
No booleanDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token
Num numberUses The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
- token
Period number If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token's TTL will be set to the value of this field. Specified in seconds.
- token
Policies string[] Generated Token's Policies
- token
Ttl number The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
Type string The type of token that should be generated. Can be
service
,batch
, ordefault
to use the mount's tuned default (which unless changed will beservice
tokens). For token store roles, there are two additional possibilities:default-service
anddefault-batch
which specify the type to return unless the client requests a different type at generation time.
- 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
namespace
is 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 List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token_
explicit_ intmax_ ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttl
andtoken_max_ttl
would otherwise allow a renewal.- token_
max_ intttl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token_
no_ booldefault_ policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token_
num_ intuses The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
- token_
period int If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token's TTL will be set to the value of this field. Specified in seconds.
- token_
policies Sequence[str] Generated Token's Policies
- token_
ttl int The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token_
type str The type of token that should be generated. Can be
service
,batch
, ordefault
to use the mount's tuned default (which unless changed will beservice
tokens). For token store roles, there are two additional possibilities:default-service
anddefault-batch
which specify the type to return unless the client requests a different type at generation time.
- role
Name String The name of the role.
- allowed
Entity List<String>Aliases List of allowed entity aliases.
- allowed
Policies List<String> List of allowed policies for given role.
- allowed
Policies List<String>Globs Set of allowed policies with glob match for given role.
- disallowed
Policies List<String> List of disallowed policies for given role.
- disallowed
Policies 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
namespace
is 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.
- path
Suffix 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.
- token
Bound List<String>Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token
Explicit NumberMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttl
andtoken_max_ttl
would otherwise allow a renewal.- token
Max NumberTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
No BooleanDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token
Num NumberUses The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
- token
Period Number If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token's TTL will be set to the value of this field. Specified in seconds.
- token
Policies List<String> Generated Token's Policies
- token
Ttl Number The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
Type String The type of token that should be generated. Can be
service
,batch
, ordefault
to use the mount's tuned default (which unless changed will beservice
tokens). For token store roles, there are two additional possibilities:default-service
anddefault-batch
which specify the type to return unless the client requests a different type at generation time.
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) -> AuthBackendRole
func 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)
Resource lookup is not supported in YAML
- 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.
- Allowed
Entity List<string>Aliases List of allowed entity aliases.
- Allowed
Policies List<string> List of allowed policies for given role.
- Allowed
Policies List<string>Globs Set of allowed policies with glob match for given role.
- Disallowed
Policies List<string> List of disallowed policies for given role.
- Disallowed
Policies 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
namespace
is 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 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.
- Role
Name string The name of the role.
- Token
Bound List<string>Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- Token
Explicit intMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttl
andtoken_max_ttl
would otherwise allow a renewal.- Token
Max intTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
No boolDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- Token
Num intUses The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
- Token
Period int If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token's TTL will be set to the value of this field. Specified in seconds.
- Token
Policies List<string> Generated Token's Policies
- Token
Ttl int The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
Type string The type of token that should be generated. Can be
service
,batch
, ordefault
to use the mount's tuned default (which unless changed will beservice
tokens). For token store roles, there are two additional possibilities:default-service
anddefault-batch
which specify the type to return unless the client requests a different type at generation time.
- Allowed
Entity []stringAliases List of allowed entity aliases.
- Allowed
Policies []string List of allowed policies for given role.
- Allowed
Policies []stringGlobs Set of allowed policies with glob match for given role.
- Disallowed
Policies []string List of disallowed policies for given role.
- Disallowed
Policies []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
namespace
is 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 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.
- Role
Name string The name of the role.
- Token
Bound []stringCidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- Token
Explicit intMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttl
andtoken_max_ttl
would otherwise allow a renewal.- Token
Max intTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
No boolDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- Token
Num intUses The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
- Token
Period int If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token's TTL will be set to the value of this field. Specified in seconds.
- Token
Policies []string Generated Token's Policies
- Token
Ttl int The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
Type string The type of token that should be generated. Can be
service
,batch
, ordefault
to use the mount's tuned default (which unless changed will beservice
tokens). For token store roles, there are two additional possibilities:default-service
anddefault-batch
which specify the type to return unless the client requests a different type at generation time.
- allowed
Entity List<String>Aliases List of allowed entity aliases.
- allowed
Policies List<String> List of allowed policies for given role.
- allowed
Policies List<String>Globs Set of allowed policies with glob match for given role.
- disallowed
Policies List<String> List of disallowed policies for given role.
- disallowed
Policies 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
namespace
is 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.
- path
Suffix 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.
- role
Name String The name of the role.
- token
Bound List<String>Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token
Explicit IntegerMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttl
andtoken_max_ttl
would otherwise allow a renewal.- token
Max IntegerTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
No BooleanDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token
Num IntegerUses The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
- token
Period Integer If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token's TTL will be set to the value of this field. Specified in seconds.
- token
Policies List<String> Generated Token's Policies
- token
Ttl Integer The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
Type String The type of token that should be generated. Can be
service
,batch
, ordefault
to use the mount's tuned default (which unless changed will beservice
tokens). For token store roles, there are two additional possibilities:default-service
anddefault-batch
which specify the type to return unless the client requests a different type at generation time.
- allowed
Entity string[]Aliases List of allowed entity aliases.
- allowed
Policies string[] List of allowed policies for given role.
- allowed
Policies string[]Globs Set of allowed policies with glob match for given role.
- disallowed
Policies string[] List of disallowed policies for given role.
- disallowed
Policies 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
namespace
is 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.
- path
Suffix 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.
- role
Name string The name of the role.
- token
Bound string[]Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token
Explicit numberMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttl
andtoken_max_ttl
would otherwise allow a renewal.- token
Max numberTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
No booleanDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token
Num numberUses The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
- token
Period number If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token's TTL will be set to the value of this field. Specified in seconds.
- token
Policies string[] Generated Token's Policies
- token
Ttl number The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
Type string The type of token that should be generated. Can be
service
,batch
, ordefault
to use the mount's tuned default (which unless changed will beservice
tokens). For token store roles, there are two additional possibilities:default-service
anddefault-batch
which specify the type to return unless the client requests a different type at generation time.
- 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
namespace
is 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 List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token_
explicit_ intmax_ ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttl
andtoken_max_ttl
would otherwise allow a renewal.- token_
max_ intttl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token_
no_ booldefault_ policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token_
num_ intuses The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
- token_
period int If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token's TTL will be set to the value of this field. Specified in seconds.
- token_
policies Sequence[str] Generated Token's Policies
- token_
ttl int The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token_
type str The type of token that should be generated. Can be
service
,batch
, ordefault
to use the mount's tuned default (which unless changed will beservice
tokens). For token store roles, there are two additional possibilities:default-service
anddefault-batch
which specify the type to return unless the client requests a different type at generation time.
- allowed
Entity List<String>Aliases List of allowed entity aliases.
- allowed
Policies List<String> List of allowed policies for given role.
- allowed
Policies List<String>Globs Set of allowed policies with glob match for given role.
- disallowed
Policies List<String> List of disallowed policies for given role.
- disallowed
Policies 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
namespace
is 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.
- path
Suffix 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.
- role
Name String The name of the role.
- token
Bound List<String>Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token
Explicit NumberMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttl
andtoken_max_ttl
would otherwise allow a renewal.- token
Max NumberTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
No BooleanDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token
Num NumberUses The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
- token
Period Number If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token's TTL will be set to the value of this field. Specified in seconds.
- token
Policies List<String> Generated Token's Policies
- token
Ttl Number The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
Type String The type of token that should be generated. Can be
service
,batch
, ordefault
to use the mount's tuned default (which unless changed will beservice
tokens). For token store roles, there are two additional possibilities:default-service
anddefault-batch
which specify the type to return unless the client requests a different type at generation time.
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
Package Details
- Repository
- Vault pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
vault
Terraform Provider.