Nomad v2.3.0 published on Wednesday, Jun 5, 2024 by Pulumi
nomad.AclBindingRule
Explore with Pulumi AI
Create AclBindingRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AclBindingRule(name: string, args: AclBindingRuleArgs, opts?: CustomResourceOptions);
@overload
def AclBindingRule(resource_name: str,
args: AclBindingRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AclBindingRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
auth_method: Optional[str] = None,
bind_type: Optional[str] = None,
bind_name: Optional[str] = None,
description: Optional[str] = None,
selector: Optional[str] = None)
func NewAclBindingRule(ctx *Context, name string, args AclBindingRuleArgs, opts ...ResourceOption) (*AclBindingRule, error)
public AclBindingRule(string name, AclBindingRuleArgs args, CustomResourceOptions? opts = null)
public AclBindingRule(String name, AclBindingRuleArgs args)
public AclBindingRule(String name, AclBindingRuleArgs args, CustomResourceOptions options)
type: nomad:AclBindingRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AclBindingRuleArgs
- 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 AclBindingRuleArgs
- 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 AclBindingRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AclBindingRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AclBindingRuleArgs
- 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 aclBindingRuleResource = new Nomad.AclBindingRule("aclBindingRuleResource", new()
{
AuthMethod = "string",
BindType = "string",
BindName = "string",
Description = "string",
Selector = "string",
});
example, err := nomad.NewAclBindingRule(ctx, "aclBindingRuleResource", &nomad.AclBindingRuleArgs{
AuthMethod: pulumi.String("string"),
BindType: pulumi.String("string"),
BindName: pulumi.String("string"),
Description: pulumi.String("string"),
Selector: pulumi.String("string"),
})
var aclBindingRuleResource = new AclBindingRule("aclBindingRuleResource", AclBindingRuleArgs.builder()
.authMethod("string")
.bindType("string")
.bindName("string")
.description("string")
.selector("string")
.build());
acl_binding_rule_resource = nomad.AclBindingRule("aclBindingRuleResource",
auth_method="string",
bind_type="string",
bind_name="string",
description="string",
selector="string")
const aclBindingRuleResource = new nomad.AclBindingRule("aclBindingRuleResource", {
authMethod: "string",
bindType: "string",
bindName: "string",
description: "string",
selector: "string",
});
type: nomad:AclBindingRule
properties:
authMethod: string
bindName: string
bindType: string
description: string
selector: string
AclBindingRule 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 AclBindingRule resource accepts the following input properties:
- Auth
Method string (string: <required>)
- Name of the auth method for which this rule applies to.- Bind
Type string (string: <required>)
- Adjusts how this binding rule is applied at login time. Valid values arerole
,policy
, andmanagement
.- Bind
Name string (string: <optional>)
- Target of the binding. Ifbind_type
isrole
orpolicy
thenbind_name
is required. Ifbind_type
ismanagement
thanbind_name
must not be defined.- Description string
(string: "")
- Description for this ACL binding rule.- Selector string
(string: "")
- A boolean expression that matches against verified identity attributes returned from the auth method during login.
- Auth
Method string (string: <required>)
- Name of the auth method for which this rule applies to.- Bind
Type string (string: <required>)
- Adjusts how this binding rule is applied at login time. Valid values arerole
,policy
, andmanagement
.- Bind
Name string (string: <optional>)
- Target of the binding. Ifbind_type
isrole
orpolicy
thenbind_name
is required. Ifbind_type
ismanagement
thanbind_name
must not be defined.- Description string
(string: "")
- Description for this ACL binding rule.- Selector string
(string: "")
- A boolean expression that matches against verified identity attributes returned from the auth method during login.
- auth
Method String (string: <required>)
- Name of the auth method for which this rule applies to.- bind
Type String (string: <required>)
- Adjusts how this binding rule is applied at login time. Valid values arerole
,policy
, andmanagement
.- bind
Name String (string: <optional>)
- Target of the binding. Ifbind_type
isrole
orpolicy
thenbind_name
is required. Ifbind_type
ismanagement
thanbind_name
must not be defined.- description String
(string: "")
- Description for this ACL binding rule.- selector String
(string: "")
- A boolean expression that matches against verified identity attributes returned from the auth method during login.
- auth
Method string (string: <required>)
- Name of the auth method for which this rule applies to.- bind
Type string (string: <required>)
- Adjusts how this binding rule is applied at login time. Valid values arerole
,policy
, andmanagement
.- bind
Name string (string: <optional>)
- Target of the binding. Ifbind_type
isrole
orpolicy
thenbind_name
is required. Ifbind_type
ismanagement
thanbind_name
must not be defined.- description string
(string: "")
- Description for this ACL binding rule.- selector string
(string: "")
- A boolean expression that matches against verified identity attributes returned from the auth method during login.
- auth_
method str (string: <required>)
- Name of the auth method for which this rule applies to.- bind_
type str (string: <required>)
- Adjusts how this binding rule is applied at login time. Valid values arerole
,policy
, andmanagement
.- bind_
name str (string: <optional>)
- Target of the binding. Ifbind_type
isrole
orpolicy
thenbind_name
is required. Ifbind_type
ismanagement
thanbind_name
must not be defined.- description str
(string: "")
- Description for this ACL binding rule.- selector str
(string: "")
- A boolean expression that matches against verified identity attributes returned from the auth method during login.
- auth
Method String (string: <required>)
- Name of the auth method for which this rule applies to.- bind
Type String (string: <required>)
- Adjusts how this binding rule is applied at login time. Valid values arerole
,policy
, andmanagement
.- bind
Name String (string: <optional>)
- Target of the binding. Ifbind_type
isrole
orpolicy
thenbind_name
is required. Ifbind_type
ismanagement
thanbind_name
must not be defined.- description String
(string: "")
- Description for this ACL binding rule.- selector String
(string: "")
- A boolean expression that matches against verified identity attributes returned from the auth method during login.
Outputs
All input properties are implicitly available as output properties. Additionally, the AclBindingRule 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 AclBindingRule Resource
Get an existing AclBindingRule 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?: AclBindingRuleState, opts?: CustomResourceOptions): AclBindingRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auth_method: Optional[str] = None,
bind_name: Optional[str] = None,
bind_type: Optional[str] = None,
description: Optional[str] = None,
selector: Optional[str] = None) -> AclBindingRule
func GetAclBindingRule(ctx *Context, name string, id IDInput, state *AclBindingRuleState, opts ...ResourceOption) (*AclBindingRule, error)
public static AclBindingRule Get(string name, Input<string> id, AclBindingRuleState? state, CustomResourceOptions? opts = null)
public static AclBindingRule get(String name, Output<String> id, AclBindingRuleState 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.
- Auth
Method string (string: <required>)
- Name of the auth method for which this rule applies to.- Bind
Name string (string: <optional>)
- Target of the binding. Ifbind_type
isrole
orpolicy
thenbind_name
is required. Ifbind_type
ismanagement
thanbind_name
must not be defined.- Bind
Type string (string: <required>)
- Adjusts how this binding rule is applied at login time. Valid values arerole
,policy
, andmanagement
.- Description string
(string: "")
- Description for this ACL binding rule.- Selector string
(string: "")
- A boolean expression that matches against verified identity attributes returned from the auth method during login.
- Auth
Method string (string: <required>)
- Name of the auth method for which this rule applies to.- Bind
Name string (string: <optional>)
- Target of the binding. Ifbind_type
isrole
orpolicy
thenbind_name
is required. Ifbind_type
ismanagement
thanbind_name
must not be defined.- Bind
Type string (string: <required>)
- Adjusts how this binding rule is applied at login time. Valid values arerole
,policy
, andmanagement
.- Description string
(string: "")
- Description for this ACL binding rule.- Selector string
(string: "")
- A boolean expression that matches against verified identity attributes returned from the auth method during login.
- auth
Method String (string: <required>)
- Name of the auth method for which this rule applies to.- bind
Name String (string: <optional>)
- Target of the binding. Ifbind_type
isrole
orpolicy
thenbind_name
is required. Ifbind_type
ismanagement
thanbind_name
must not be defined.- bind
Type String (string: <required>)
- Adjusts how this binding rule is applied at login time. Valid values arerole
,policy
, andmanagement
.- description String
(string: "")
- Description for this ACL binding rule.- selector String
(string: "")
- A boolean expression that matches against verified identity attributes returned from the auth method during login.
- auth
Method string (string: <required>)
- Name of the auth method for which this rule applies to.- bind
Name string (string: <optional>)
- Target of the binding. Ifbind_type
isrole
orpolicy
thenbind_name
is required. Ifbind_type
ismanagement
thanbind_name
must not be defined.- bind
Type string (string: <required>)
- Adjusts how this binding rule is applied at login time. Valid values arerole
,policy
, andmanagement
.- description string
(string: "")
- Description for this ACL binding rule.- selector string
(string: "")
- A boolean expression that matches against verified identity attributes returned from the auth method during login.
- auth_
method str (string: <required>)
- Name of the auth method for which this rule applies to.- bind_
name str (string: <optional>)
- Target of the binding. Ifbind_type
isrole
orpolicy
thenbind_name
is required. Ifbind_type
ismanagement
thanbind_name
must not be defined.- bind_
type str (string: <required>)
- Adjusts how this binding rule is applied at login time. Valid values arerole
,policy
, andmanagement
.- description str
(string: "")
- Description for this ACL binding rule.- selector str
(string: "")
- A boolean expression that matches against verified identity attributes returned from the auth method during login.
- auth
Method String (string: <required>)
- Name of the auth method for which this rule applies to.- bind
Name String (string: <optional>)
- Target of the binding. Ifbind_type
isrole
orpolicy
thenbind_name
is required. Ifbind_type
ismanagement
thanbind_name
must not be defined.- bind
Type String (string: <required>)
- Adjusts how this binding rule is applied at login time. Valid values arerole
,policy
, andmanagement
.- description String
(string: "")
- Description for this ACL binding rule.- selector String
(string: "")
- A boolean expression that matches against verified identity attributes returned from the auth method during login.
Package Details
- Repository
- HashiCorp Nomad pulumi/pulumi-nomad
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nomad
Terraform Provider.