Token
Create a Token Resource
new Token(name: string, args?: TokenArgs, opts?: CustomResourceOptions);def Token(resource_name, opts=None, display_name=None, explicit_max_ttl=None, no_default_policy=None, no_parent=None, num_uses=None, period=None, pgp_key=None, policies=None, renew_increment=None, renew_min_lease=None, renewable=None, role_name=None, ttl=None, wrapping_ttl=None, __props__=None);public Token(string name, TokenArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args TokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TokenArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Token Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Token resource accepts the following input properties:
- Display
Name string String containing the token display name
- Explicit
Max stringTtl The explicit max TTL of this token
- No
Default boolPolicy Flag to not attach the default policy to this token
- No
Parent bool Flag to create a token without parent
- Num
Uses int The number of allowed uses of this token
- Period string
The period of this token
- Pgp
Key string The PGP key (base64 encoded) to encrypt the token.
- Policies List<string>
List of policies to attach to this token
- Renew
Increment int The renew increment
- Renew
Min intLease The minimal lease to renew this token
- Renewable bool
Flag to allow to renew this token
- Role
Name string The token role name
- Ttl string
The TTL period of this token
- Wrapping
Ttl string The TTL period of the wrapped token.
- Display
Name string String containing the token display name
- Explicit
Max stringTtl The explicit max TTL of this token
- No
Default boolPolicy Flag to not attach the default policy to this token
- No
Parent bool Flag to create a token without parent
- Num
Uses int The number of allowed uses of this token
- Period string
The period of this token
- Pgp
Key string The PGP key (base64 encoded) to encrypt the token.
- Policies []string
List of policies to attach to this token
- Renew
Increment int The renew increment
- Renew
Min intLease The minimal lease to renew this token
- Renewable bool
Flag to allow to renew this token
- Role
Name string The token role name
- Ttl string
The TTL period of this token
- Wrapping
Ttl string The TTL period of the wrapped token.
- display
Name string String containing the token display name
- explicit
Max stringTtl The explicit max TTL of this token
- no
Default booleanPolicy Flag to not attach the default policy to this token
- no
Parent boolean Flag to create a token without parent
- num
Uses number The number of allowed uses of this token
- period string
The period of this token
- pgp
Key string The PGP key (base64 encoded) to encrypt the token.
- policies string[]
List of policies to attach to this token
- renew
Increment number The renew increment
- renew
Min numberLease The minimal lease to renew this token
- renewable boolean
Flag to allow to renew this token
- role
Name string The token role name
- ttl string
The TTL period of this token
- wrapping
Ttl string The TTL period of the wrapped token.
- display_
name str String containing the token display name
- explicit_
max_ strttl The explicit max TTL of this token
- no_
default_ boolpolicy Flag to not attach the default policy to this token
- no_
parent bool Flag to create a token without parent
- num_
uses float The number of allowed uses of this token
- period str
The period of this token
- pgp_
key str The PGP key (base64 encoded) to encrypt the token.
- policies List[str]
List of policies to attach to this token
- renew_
increment float The renew increment
- renew_
min_ floatlease The minimal lease to renew this token
- renewable bool
Flag to allow to renew this token
- role_
name str The token role name
- ttl str
The TTL period of this token
- wrapping_
ttl str The TTL period of the wrapped token.
Outputs
All input properties are implicitly available as output properties. Additionally, the Token resource produces the following output properties:
- Client
Token string String containing the client token if stored in present file
- Encrypted
Client stringToken String containing the client token encrypted with the given
pgp_keyif stored in present file- Id string
- The provider-assigned unique ID for this managed resource.
- Lease
Duration int String containing the token lease duration if present in state file
- Lease
Started string String containing the token lease started time if present in state file
- Wrapped
Token string The client wrapped token.
- Wrapping
Accessor string The client wrapping accessor.
- Client
Token string String containing the client token if stored in present file
- Encrypted
Client stringToken String containing the client token encrypted with the given
pgp_keyif stored in present file- Id string
- The provider-assigned unique ID for this managed resource.
- Lease
Duration int String containing the token lease duration if present in state file
- Lease
Started string String containing the token lease started time if present in state file
- Wrapped
Token string The client wrapped token.
- Wrapping
Accessor string The client wrapping accessor.
- client
Token string String containing the client token if stored in present file
- encrypted
Client stringToken String containing the client token encrypted with the given
pgp_keyif stored in present file- id string
- The provider-assigned unique ID for this managed resource.
- lease
Duration number String containing the token lease duration if present in state file
- lease
Started string String containing the token lease started time if present in state file
- wrapped
Token string The client wrapped token.
- wrapping
Accessor string The client wrapping accessor.
- client_
token str String containing the client token if stored in present file
- encrypted_
client_ strtoken String containing the client token encrypted with the given
pgp_keyif stored in present file- id str
- The provider-assigned unique ID for this managed resource.
- lease_
duration float String containing the token lease duration if present in state file
- lease_
started str String containing the token lease started time if present in state file
- wrapped_
token str The client wrapped token.
- wrapping_
accessor str The client wrapping accessor.
Look up an Existing Token Resource
Get an existing Token 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?: TokenState, opts?: CustomResourceOptions): Tokenstatic get(resource_name, id, opts=None, client_token=None, display_name=None, encrypted_client_token=None, explicit_max_ttl=None, lease_duration=None, lease_started=None, no_default_policy=None, no_parent=None, num_uses=None, period=None, pgp_key=None, policies=None, renew_increment=None, renew_min_lease=None, renewable=None, role_name=None, ttl=None, wrapped_token=None, wrapping_accessor=None, wrapping_ttl=None, __props__=None);func GetToken(ctx *Context, name string, id IDInput, state *TokenState, opts ...ResourceOption) (*Token, error)public static Token Get(string name, Input<string> id, TokenState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Client
Token string String containing the client token if stored in present file
- Display
Name string String containing the token display name
- Encrypted
Client stringToken String containing the client token encrypted with the given
pgp_keyif stored in present file- Explicit
Max stringTtl The explicit max TTL of this token
- Lease
Duration int String containing the token lease duration if present in state file
- Lease
Started string String containing the token lease started time if present in state file
- No
Default boolPolicy Flag to not attach the default policy to this token
- No
Parent bool Flag to create a token without parent
- Num
Uses int The number of allowed uses of this token
- Period string
The period of this token
- Pgp
Key string The PGP key (base64 encoded) to encrypt the token.
- Policies List<string>
List of policies to attach to this token
- Renew
Increment int The renew increment
- Renew
Min intLease The minimal lease to renew this token
- Renewable bool
Flag to allow to renew this token
- Role
Name string The token role name
- Ttl string
The TTL period of this token
- Wrapped
Token string The client wrapped token.
- Wrapping
Accessor string The client wrapping accessor.
- Wrapping
Ttl string The TTL period of the wrapped token.
- Client
Token string String containing the client token if stored in present file
- Display
Name string String containing the token display name
- Encrypted
Client stringToken String containing the client token encrypted with the given
pgp_keyif stored in present file- Explicit
Max stringTtl The explicit max TTL of this token
- Lease
Duration int String containing the token lease duration if present in state file
- Lease
Started string String containing the token lease started time if present in state file
- No
Default boolPolicy Flag to not attach the default policy to this token
- No
Parent bool Flag to create a token without parent
- Num
Uses int The number of allowed uses of this token
- Period string
The period of this token
- Pgp
Key string The PGP key (base64 encoded) to encrypt the token.
- Policies []string
List of policies to attach to this token
- Renew
Increment int The renew increment
- Renew
Min intLease The minimal lease to renew this token
- Renewable bool
Flag to allow to renew this token
- Role
Name string The token role name
- Ttl string
The TTL period of this token
- Wrapped
Token string The client wrapped token.
- Wrapping
Accessor string The client wrapping accessor.
- Wrapping
Ttl string The TTL period of the wrapped token.
- client
Token string String containing the client token if stored in present file
- display
Name string String containing the token display name
- encrypted
Client stringToken String containing the client token encrypted with the given
pgp_keyif stored in present file- explicit
Max stringTtl The explicit max TTL of this token
- lease
Duration number String containing the token lease duration if present in state file
- lease
Started string String containing the token lease started time if present in state file
- no
Default booleanPolicy Flag to not attach the default policy to this token
- no
Parent boolean Flag to create a token without parent
- num
Uses number The number of allowed uses of this token
- period string
The period of this token
- pgp
Key string The PGP key (base64 encoded) to encrypt the token.
- policies string[]
List of policies to attach to this token
- renew
Increment number The renew increment
- renew
Min numberLease The minimal lease to renew this token
- renewable boolean
Flag to allow to renew this token
- role
Name string The token role name
- ttl string
The TTL period of this token
- wrapped
Token string The client wrapped token.
- wrapping
Accessor string The client wrapping accessor.
- wrapping
Ttl string The TTL period of the wrapped token.
- client_
token str String containing the client token if stored in present file
- display_
name str String containing the token display name
- encrypted_
client_ strtoken String containing the client token encrypted with the given
pgp_keyif stored in present file- explicit_
max_ strttl The explicit max TTL of this token
- lease_
duration float String containing the token lease duration if present in state file
- lease_
started str String containing the token lease started time if present in state file
- no_
default_ boolpolicy Flag to not attach the default policy to this token
- no_
parent bool Flag to create a token without parent
- num_
uses float The number of allowed uses of this token
- period str
The period of this token
- pgp_
key str The PGP key (base64 encoded) to encrypt the token.
- policies List[str]
List of policies to attach to this token
- renew_
increment float The renew increment
- renew_
min_ floatlease The minimal lease to renew this token
- renewable bool
Flag to allow to renew this token
- role_
name str The token role name
- ttl str
The TTL period of this token
- wrapped_
token str The client wrapped token.
- wrapping_
accessor str The client wrapping accessor.
- wrapping_
ttl str The TTL period of the wrapped token.
Package Details
- Repository
- https://github.com/pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vaultTerraform Provider.