nomad.AclRole

Create AclRole Resource

new AclRole(name: string, args: AclRoleArgs, opts?: CustomResourceOptions);
@overload
def AclRole(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            policies: Optional[Sequence[AclRolePolicyArgs]] = None)
@overload
def AclRole(resource_name: str,
            args: AclRoleArgs,
            opts: Optional[ResourceOptions] = None)
func NewAclRole(ctx *Context, name string, args AclRoleArgs, opts ...ResourceOption) (*AclRole, error)
public AclRole(string name, AclRoleArgs args, CustomResourceOptions? opts = null)
public AclRole(String name, AclRoleArgs args)
public AclRole(String name, AclRoleArgs args, CustomResourceOptions options)
type: nomad:AclRole
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AclRoleArgs
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 AclRoleArgs
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 AclRoleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AclRoleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AclRoleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Policies List<AclRolePolicyArgs>

(set: <required>) - A set of policy names to associate with this ACL Role. It may be used multiple times.

Description string

(string: "") - A description of the ACL Role.

Name string

(string: <required>) - A human-friendly name for this ACL Role.

Policies []AclRolePolicyArgs

(set: <required>) - A set of policy names to associate with this ACL Role. It may be used multiple times.

Description string

(string: "") - A description of the ACL Role.

Name string

(string: <required>) - A human-friendly name for this ACL Role.

policies List<AclRolePolicyArgs>

(set: <required>) - A set of policy names to associate with this ACL Role. It may be used multiple times.

description String

(string: "") - A description of the ACL Role.

name String

(string: <required>) - A human-friendly name for this ACL Role.

policies AclRolePolicyArgs[]

(set: <required>) - A set of policy names to associate with this ACL Role. It may be used multiple times.

description string

(string: "") - A description of the ACL Role.

name string

(string: <required>) - A human-friendly name for this ACL Role.

policies Sequence[AclRolePolicyArgs]

(set: <required>) - A set of policy names to associate with this ACL Role. It may be used multiple times.

description str

(string: "") - A description of the ACL Role.

name str

(string: <required>) - A human-friendly name for this ACL Role.

policies List<Property Map>

(set: <required>) - A set of policy names to associate with this ACL Role. It may be used multiple times.

description String

(string: "") - A description of the ACL Role.

name String

(string: <required>) - A human-friendly name for this ACL Role.

Outputs

All input properties are implicitly available as output properties. Additionally, the AclRole 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 AclRole Resource

Get an existing AclRole 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?: AclRoleState, opts?: CustomResourceOptions): AclRole
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        policies: Optional[Sequence[AclRolePolicyArgs]] = None) -> AclRole
func GetAclRole(ctx *Context, name string, id IDInput, state *AclRoleState, opts ...ResourceOption) (*AclRole, error)
public static AclRole Get(string name, Input<string> id, AclRoleState? state, CustomResourceOptions? opts = null)
public static AclRole get(String name, Output<String> id, AclRoleState 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.
The following state arguments are supported:
Description string

(string: "") - A description of the ACL Role.

Name string

(string: <required>) - A human-friendly name for this ACL Role.

Policies List<AclRolePolicyArgs>

(set: <required>) - A set of policy names to associate with this ACL Role. It may be used multiple times.

Description string

(string: "") - A description of the ACL Role.

Name string

(string: <required>) - A human-friendly name for this ACL Role.

Policies []AclRolePolicyArgs

(set: <required>) - A set of policy names to associate with this ACL Role. It may be used multiple times.

description String

(string: "") - A description of the ACL Role.

name String

(string: <required>) - A human-friendly name for this ACL Role.

policies List<AclRolePolicyArgs>

(set: <required>) - A set of policy names to associate with this ACL Role. It may be used multiple times.

description string

(string: "") - A description of the ACL Role.

name string

(string: <required>) - A human-friendly name for this ACL Role.

policies AclRolePolicyArgs[]

(set: <required>) - A set of policy names to associate with this ACL Role. It may be used multiple times.

description str

(string: "") - A description of the ACL Role.

name str

(string: <required>) - A human-friendly name for this ACL Role.

policies Sequence[AclRolePolicyArgs]

(set: <required>) - A set of policy names to associate with this ACL Role. It may be used multiple times.

description String

(string: "") - A description of the ACL Role.

name String

(string: <required>) - A human-friendly name for this ACL Role.

policies List<Property Map>

(set: <required>) - A set of policy names to associate with this ACL Role. It may be used multiple times.

Supporting Types

AclRolePolicy

Name string

(string: <required>) - A human-friendly name for this ACL Role.

Name string

(string: <required>) - A human-friendly name for this ACL Role.

name String

(string: <required>) - A human-friendly name for this ACL Role.

name string

(string: <required>) - A human-friendly name for this ACL Role.

name str

(string: <required>) - A human-friendly name for this ACL Role.

name String

(string: <required>) - A human-friendly name for this ACL Role.

Package Details

Repository
HashiCorp Nomad pulumi/pulumi-nomad
License
Apache-2.0
Notes

This Pulumi package is based on the nomad Terraform Provider.