1. Packages
  2. Nomad Provider
  3. API Docs
  4. AclRole
Nomad v2.5.0 published on Thursday, Apr 17, 2025 by Pulumi

nomad.AclRole

Explore with Pulumi AI

Create AclRole Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AclRole(name: string, args: AclRoleArgs, opts?: CustomResourceOptions);
@overload
def AclRole(resource_name: str,
            args: AclRoleArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def AclRole(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            policies: Optional[Sequence[AclRolePolicyArgs]] = None,
            description: Optional[str] = None,
            name: Optional[str] = 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.

Parameters

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

Constructor example

The following reference example uses placeholder values for all input properties.

var aclRoleResource = new Nomad.AclRole("aclRoleResource", new()
{
    Policies = new[]
    {
        new Nomad.Inputs.AclRolePolicyArgs
        {
            Name = "string",
        },
    },
    Description = "string",
    Name = "string",
});
Copy
example, err := nomad.NewAclRole(ctx, "aclRoleResource", &nomad.AclRoleArgs{
	Policies: nomad.AclRolePolicyArray{
		&nomad.AclRolePolicyArgs{
			Name: pulumi.String("string"),
		},
	},
	Description: pulumi.String("string"),
	Name:        pulumi.String("string"),
})
Copy
var aclRoleResource = new AclRole("aclRoleResource", AclRoleArgs.builder()
    .policies(AclRolePolicyArgs.builder()
        .name("string")
        .build())
    .description("string")
    .name("string")
    .build());
Copy
acl_role_resource = nomad.AclRole("aclRoleResource",
    policies=[{
        "name": "string",
    }],
    description="string",
    name="string")
Copy
const aclRoleResource = new nomad.AclRole("aclRoleResource", {
    policies: [{
        name: "string",
    }],
    description: "string",
    name: "string",
});
Copy
type: nomad:AclRole
properties:
    description: string
    name: string
    policies:
        - name: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AclRole resource accepts the following input properties:

Policies This property is required. List<AclRolePolicy>
(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 This property is required. []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 This property is required. List<AclRolePolicy>
(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 This property is required. AclRolePolicy[]
(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 This property is required. 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 This property is required. 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)
resources:  _:    type: nomad:AclRole    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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<AclRolePolicy>
(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<AclRolePolicy>
(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 AclRolePolicy[]
(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
, AclRolePolicyArgs

Name This property is required. string
(string: <required>) - A human-friendly name for this ACL Role.
Name This property is required. string
(string: <required>) - A human-friendly name for this ACL Role.
name This property is required. String
(string: <required>) - A human-friendly name for this ACL Role.
name This property is required. string
(string: <required>) - A human-friendly name for this ACL Role.
name This property is required. str
(string: <required>) - A human-friendly name for this ACL Role.
name This property is required. 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.