NomadSecretRole
Import
Nomad secret role can be imported using the backend
, e.g.
$ pulumi import vault:index/nomadSecretRole:NomadSecretRole bob nomad/role/bob
Create a NomadSecretRole Resource
new NomadSecretRole(name: string, args: NomadSecretRoleArgs, opts?: CustomResourceOptions);
def NomadSecretRole(resource_name: str, opts: Optional[ResourceOptions] = None, backend: Optional[str] = None, global_: Optional[bool] = None, policies: Optional[Sequence[str]] = None, role: Optional[str] = None, type: Optional[str] = None)
func NewNomadSecretRole(ctx *Context, name string, args NomadSecretRoleArgs, opts ...ResourceOption) (*NomadSecretRole, error)
public NomadSecretRole(string name, NomadSecretRoleArgs args, CustomResourceOptions? opts = null)
- name string
- The unique name of the resource.
- args NomadSecretRoleArgs
- 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 NomadSecretRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NomadSecretRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
NomadSecretRole Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The NomadSecretRole resource accepts the following input properties:
- Backend string
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- Role string
The name to identify this role within the backend. Must be unique within the backend.
- Global bool
Specifies if the generated token should be global. Defaults to false.
- Policies List<string>
List of policies attached to the generated token. This setting is only used when
type
is ‘client’.- Type string
Specifies the type of token to create when using this role. Valid settings are ‘client’ and ‘management’. Defaults to ‘client’.
- Backend string
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- Role string
The name to identify this role within the backend. Must be unique within the backend.
- Global bool
Specifies if the generated token should be global. Defaults to false.
- Policies []string
List of policies attached to the generated token. This setting is only used when
type
is ‘client’.- Type string
Specifies the type of token to create when using this role. Valid settings are ‘client’ and ‘management’. Defaults to ‘client’.
- backend string
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- role string
The name to identify this role within the backend. Must be unique within the backend.
- global boolean
Specifies if the generated token should be global. Defaults to false.
- policies string[]
List of policies attached to the generated token. This setting is only used when
type
is ‘client’.- type string
Specifies the type of token to create when using this role. Valid settings are ‘client’ and ‘management’. Defaults to ‘client’.
- backend str
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- role str
The name to identify this role within the backend. Must be unique within the backend.
- global_ bool
Specifies if the generated token should be global. Defaults to false.
- policies Sequence[str]
List of policies attached to the generated token. This setting is only used when
type
is ‘client’.- type str
Specifies the type of token to create when using this role. Valid settings are ‘client’ and ‘management’. Defaults to ‘client’.
Outputs
All input properties are implicitly available as output properties. Additionally, the NomadSecretRole 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 str
- The provider-assigned unique ID for this managed resource.
Look up an Existing NomadSecretRole Resource
Get an existing NomadSecretRole 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?: NomadSecretRoleState, opts?: CustomResourceOptions): NomadSecretRole
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, backend: Optional[str] = None, global_: Optional[bool] = None, policies: Optional[Sequence[str]] = None, role: Optional[str] = None, type: Optional[str] = None) -> NomadSecretRole
func GetNomadSecretRole(ctx *Context, name string, id IDInput, state *NomadSecretRoleState, opts ...ResourceOption) (*NomadSecretRole, error)
public static NomadSecretRole Get(string name, Input<string> id, NomadSecretRoleState? 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:
- Backend string
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- Global bool
Specifies if the generated token should be global. Defaults to false.
- Policies List<string>
List of policies attached to the generated token. This setting is only used when
type
is ‘client’.- Role string
The name to identify this role within the backend. Must be unique within the backend.
- Type string
Specifies the type of token to create when using this role. Valid settings are ‘client’ and ‘management’. Defaults to ‘client’.
- Backend string
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- Global bool
Specifies if the generated token should be global. Defaults to false.
- Policies []string
List of policies attached to the generated token. This setting is only used when
type
is ‘client’.- Role string
The name to identify this role within the backend. Must be unique within the backend.
- Type string
Specifies the type of token to create when using this role. Valid settings are ‘client’ and ‘management’. Defaults to ‘client’.
- backend string
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- global boolean
Specifies if the generated token should be global. Defaults to false.
- policies string[]
List of policies attached to the generated token. This setting is only used when
type
is ‘client’.- role string
The name to identify this role within the backend. Must be unique within the backend.
- type string
Specifies the type of token to create when using this role. Valid settings are ‘client’ and ‘management’. Defaults to ‘client’.
- backend str
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- global_ bool
Specifies if the generated token should be global. Defaults to false.
- policies Sequence[str]
List of policies attached to the generated token. This setting is only used when
type
is ‘client’.- role str
The name to identify this role within the backend. Must be unique within the backend.
- type str
Specifies the type of token to create when using this role. Valid settings are ‘client’ and ‘management’. Defaults to ‘client’.
Package Details
- Repository
- https://github.com/pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vault
Terraform Provider.