1. Packages
  2. Nomad Provider
  3. API Docs
  4. AclBindingRule
Nomad v2.4.1 published on Wednesday, Oct 30, 2024 by Pulumi

nomad.AclBindingRule

Explore with Pulumi AI

nomad logo
Nomad v2.4.1 published on Wednesday, Oct 30, 2024 by Pulumi

    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

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

    The AclBindingRule resource accepts the following input properties:

    AuthMethod string
    (string: <required>) - Name of the auth method for which this rule applies to.
    BindType string
    (string: <required>) - Adjusts how this binding rule is applied at login time. Valid values are role, policy, and management.
    BindName string
    (string: <optional>) - Target of the binding. If bind_type is role or policy then bind_name is required. If bind_type is management than bind_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.
    AuthMethod string
    (string: <required>) - Name of the auth method for which this rule applies to.
    BindType string
    (string: <required>) - Adjusts how this binding rule is applied at login time. Valid values are role, policy, and management.
    BindName string
    (string: <optional>) - Target of the binding. If bind_type is role or policy then bind_name is required. If bind_type is management than bind_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.
    authMethod String
    (string: <required>) - Name of the auth method for which this rule applies to.
    bindType String
    (string: <required>) - Adjusts how this binding rule is applied at login time. Valid values are role, policy, and management.
    bindName String
    (string: <optional>) - Target of the binding. If bind_type is role or policy then bind_name is required. If bind_type is management than bind_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.
    authMethod string
    (string: <required>) - Name of the auth method for which this rule applies to.
    bindType string
    (string: <required>) - Adjusts how this binding rule is applied at login time. Valid values are role, policy, and management.
    bindName string
    (string: <optional>) - Target of the binding. If bind_type is role or policy then bind_name is required. If bind_type is management than bind_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 are role, policy, and management.
    bind_name str
    (string: <optional>) - Target of the binding. If bind_type is role or policy then bind_name is required. If bind_type is management than bind_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.
    authMethod String
    (string: <required>) - Name of the auth method for which this rule applies to.
    bindType String
    (string: <required>) - Adjusts how this binding rule is applied at login time. Valid values are role, policy, and management.
    bindName String
    (string: <optional>) - Target of the binding. If bind_type is role or policy then bind_name is required. If bind_type is management than bind_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.
    The following state arguments are supported:
    AuthMethod string
    (string: <required>) - Name of the auth method for which this rule applies to.
    BindName string
    (string: <optional>) - Target of the binding. If bind_type is role or policy then bind_name is required. If bind_type is management than bind_name must not be defined.
    BindType string
    (string: <required>) - Adjusts how this binding rule is applied at login time. Valid values are role, policy, and management.
    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.
    AuthMethod string
    (string: <required>) - Name of the auth method for which this rule applies to.
    BindName string
    (string: <optional>) - Target of the binding. If bind_type is role or policy then bind_name is required. If bind_type is management than bind_name must not be defined.
    BindType string
    (string: <required>) - Adjusts how this binding rule is applied at login time. Valid values are role, policy, and management.
    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.
    authMethod String
    (string: <required>) - Name of the auth method for which this rule applies to.
    bindName String
    (string: <optional>) - Target of the binding. If bind_type is role or policy then bind_name is required. If bind_type is management than bind_name must not be defined.
    bindType String
    (string: <required>) - Adjusts how this binding rule is applied at login time. Valid values are role, policy, and management.
    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.
    authMethod string
    (string: <required>) - Name of the auth method for which this rule applies to.
    bindName string
    (string: <optional>) - Target of the binding. If bind_type is role or policy then bind_name is required. If bind_type is management than bind_name must not be defined.
    bindType string
    (string: <required>) - Adjusts how this binding rule is applied at login time. Valid values are role, policy, and management.
    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. If bind_type is role or policy then bind_name is required. If bind_type is management than bind_name must not be defined.
    bind_type str
    (string: <required>) - Adjusts how this binding rule is applied at login time. Valid values are role, policy, and management.
    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.
    authMethod String
    (string: <required>) - Name of the auth method for which this rule applies to.
    bindName String
    (string: <optional>) - Target of the binding. If bind_type is role or policy then bind_name is required. If bind_type is management than bind_name must not be defined.
    bindType String
    (string: <required>) - Adjusts how this binding rule is applied at login time. Valid values are role, policy, and management.
    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.
    nomad logo
    Nomad v2.4.1 published on Wednesday, Oct 30, 2024 by Pulumi