HashiCorp Nomad

v0.2.1 published on Tuesday, Dec 7, 2021 by Pulumi

AclToken

Create a AclToken Resource

new AclToken(name: string, args: AclTokenArgs, opts?: CustomResourceOptions);
@overload
def AclToken(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             global_: Optional[bool] = None,
             name: Optional[str] = None,
             policies: Optional[Sequence[str]] = None,
             type: Optional[str] = None)
@overload
def AclToken(resource_name: str,
             args: AclTokenArgs,
             opts: Optional[ResourceOptions] = None)
func NewAclToken(ctx *Context, name string, args AclTokenArgs, opts ...ResourceOption) (*AclToken, error)
public AclToken(string name, AclTokenArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args AclTokenArgs
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 AclTokenArgs
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 AclTokenArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AclTokenArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

AclToken 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 AclToken resource accepts the following input properties:

Type string
(string: <required>) - The type of token this is. Use client for tokens that will have policies associated with them. Use management for tokens that can perform any action.
Global bool
(bool: false) - Whether the token should be replicated to all regions, or if it will only be used in the region it was created in.
Name string
(string: "") - A human-friendly name for this token.
Policies List<string>
(set: []) - A set of policy names to associate with this token. Must be set on client-type tokens, must not be set on management-type tokens. Policies do not need to exist before being used here.
Type string
(string: <required>) - The type of token this is. Use client for tokens that will have policies associated with them. Use management for tokens that can perform any action.
Global bool
(bool: false) - Whether the token should be replicated to all regions, or if it will only be used in the region it was created in.
Name string
(string: "") - A human-friendly name for this token.
Policies []string
(set: []) - A set of policy names to associate with this token. Must be set on client-type tokens, must not be set on management-type tokens. Policies do not need to exist before being used here.
type string
(string: <required>) - The type of token this is. Use client for tokens that will have policies associated with them. Use management for tokens that can perform any action.
global boolean
(bool: false) - Whether the token should be replicated to all regions, or if it will only be used in the region it was created in.
name string
(string: "") - A human-friendly name for this token.
policies string[]
(set: []) - A set of policy names to associate with this token. Must be set on client-type tokens, must not be set on management-type tokens. Policies do not need to exist before being used here.
type str
(string: <required>) - The type of token this is. Use client for tokens that will have policies associated with them. Use management for tokens that can perform any action.
global_ bool
(bool: false) - Whether the token should be replicated to all regions, or if it will only be used in the region it was created in.
name str
(string: "") - A human-friendly name for this token.
policies Sequence[str]
(set: []) - A set of policy names to associate with this token. Must be set on client-type tokens, must not be set on management-type tokens. Policies do not need to exist before being used here.

Outputs

All input properties are implicitly available as output properties. Additionally, the AclToken resource produces the following output properties:

AccessorId string
(string) - A non-sensitive identifier for this token that can be logged and shared safely without granting any access to the cluster.
CreateTime string
(string) - The timestamp the token was created.
Id string
The provider-assigned unique ID for this managed resource.
SecretId string
(string) - The token value itself, which is presented for access to the cluster.
AccessorId string
(string) - A non-sensitive identifier for this token that can be logged and shared safely without granting any access to the cluster.
CreateTime string
(string) - The timestamp the token was created.
Id string
The provider-assigned unique ID for this managed resource.
SecretId string
(string) - The token value itself, which is presented for access to the cluster.
accessorId string
(string) - A non-sensitive identifier for this token that can be logged and shared safely without granting any access to the cluster.
createTime string
(string) - The timestamp the token was created.
id string
The provider-assigned unique ID for this managed resource.
secretId string
(string) - The token value itself, which is presented for access to the cluster.
accessor_id str
(string) - A non-sensitive identifier for this token that can be logged and shared safely without granting any access to the cluster.
create_time str
(string) - The timestamp the token was created.
id str
The provider-assigned unique ID for this managed resource.
secret_id str
(string) - The token value itself, which is presented for access to the cluster.

Look up an Existing AclToken Resource

Get an existing AclToken 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?: AclTokenState, opts?: CustomResourceOptions): AclToken
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        accessor_id: Optional[str] = None,
        create_time: Optional[str] = None,
        global_: Optional[bool] = None,
        name: Optional[str] = None,
        policies: Optional[Sequence[str]] = None,
        secret_id: Optional[str] = None,
        type: Optional[str] = None) -> AclToken
func GetAclToken(ctx *Context, name string, id IDInput, state *AclTokenState, opts ...ResourceOption) (*AclToken, error)
public static AclToken Get(string name, Input<string> id, AclTokenState? 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:

AccessorId string
(string) - A non-sensitive identifier for this token that can be logged and shared safely without granting any access to the cluster.
CreateTime string
(string) - The timestamp the token was created.
Global bool
(bool: false) - Whether the token should be replicated to all regions, or if it will only be used in the region it was created in.
Name string
(string: "") - A human-friendly name for this token.
Policies List<string>
(set: []) - A set of policy names to associate with this token. Must be set on client-type tokens, must not be set on management-type tokens. Policies do not need to exist before being used here.
SecretId string
(string) - The token value itself, which is presented for access to the cluster.
Type string
(string: <required>) - The type of token this is. Use client for tokens that will have policies associated with them. Use management for tokens that can perform any action.
AccessorId string
(string) - A non-sensitive identifier for this token that can be logged and shared safely without granting any access to the cluster.
CreateTime string
(string) - The timestamp the token was created.
Global bool
(bool: false) - Whether the token should be replicated to all regions, or if it will only be used in the region it was created in.
Name string
(string: "") - A human-friendly name for this token.
Policies []string
(set: []) - A set of policy names to associate with this token. Must be set on client-type tokens, must not be set on management-type tokens. Policies do not need to exist before being used here.
SecretId string
(string) - The token value itself, which is presented for access to the cluster.
Type string
(string: <required>) - The type of token this is. Use client for tokens that will have policies associated with them. Use management for tokens that can perform any action.
accessorId string
(string) - A non-sensitive identifier for this token that can be logged and shared safely without granting any access to the cluster.
createTime string
(string) - The timestamp the token was created.
global boolean
(bool: false) - Whether the token should be replicated to all regions, or if it will only be used in the region it was created in.
name string
(string: "") - A human-friendly name for this token.
policies string[]
(set: []) - A set of policy names to associate with this token. Must be set on client-type tokens, must not be set on management-type tokens. Policies do not need to exist before being used here.
secretId string
(string) - The token value itself, which is presented for access to the cluster.
type string
(string: <required>) - The type of token this is. Use client for tokens that will have policies associated with them. Use management for tokens that can perform any action.
accessor_id str
(string) - A non-sensitive identifier for this token that can be logged and shared safely without granting any access to the cluster.
create_time str
(string) - The timestamp the token was created.
global_ bool
(bool: false) - Whether the token should be replicated to all regions, or if it will only be used in the region it was created in.
name str
(string: "") - A human-friendly name for this token.
policies Sequence[str]
(set: []) - A set of policy names to associate with this token. Must be set on client-type tokens, must not be set on management-type tokens. Policies do not need to exist before being used here.
secret_id str
(string) - The token value itself, which is presented for access to the cluster.
type str
(string: <required>) - The type of token this is. Use client for tokens that will have policies associated with them. Use management for tokens that can perform any action.

Package Details

Repository
https://github.com/pulumi/pulumi-nomad
License
Apache-2.0
Notes
This Pulumi package is based on the nomad Terraform Provider.